From axeld at pinc-software.de Mon Mar 13 16:08:49 2017 From: axeld at pinc-software.de (=?UTF-8?Q?Axel_D=c3=b6rfler?=) Date: Mon, 13 Mar 2017 16:08:49 +0100 Subject: [TYPO3-dev] Extension with custom entry point Message-ID: Hi there, I'm trying to update an existing (internal) extension to work with 7.6.15. I need to set up the backend in order to update the database and create/update pages automatically via an URL within my extension. I used to do the following: -----------8<----------- define('TYPO3_cliMode', TRUE); define('PATH_thisScript', __FILE__); define('TYPO3_MOD_PATH', '../typo3conf/ext/myext/'); $MCONF['name'] = '_CLI_myext'; $BACK_PATH = '../../../typo3/'; require(dirname(PATH_thisScript) . '/' . $BACK_PATH . 'init.php'); -----------8<----------- This used to work fine, but no longer does (besides the fact that using init.php is now deprecated). I tried to follow the deprecation ticket for init.php as a first step [1], but that does not work, most notably, it rightfully complaints that it does not have a method called "run". I've now changed it as follows, which at least seems to work at first: -----------8<----------- $classLoader = require dirname(PATH_thisScript) . '/' . $BACK_PATH . '/../vendor/autoload.php'; require dirname(PATH_thisScript) . '/' . $BACK_PATH . '/sysext/core/Classes/Core/Bootstrap.php'; \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->setEarlyInstance("Composer\Autoload\ClassLoader", $classLoader); \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->baseSetup('typo3conf/ext/esign_mm/'); -----------8<----------- However, the first try to access $GLOBALS['TYPO3_DB'] fails, which hints to the fact that the above is not correct either. Is there any backend only way to authenticate a user, btw? I failed to find any documentation of how to any of this properly. Thanks for any help! Kind regards, Axel. [1] https://docs.typo3.org/typo3cms/extensions/core/Changelog/7.4/Deprecation-67471-InitPhp.html From axeld at pinc-software.de Tue Mar 14 15:44:08 2017 From: axeld at pinc-software.de (=?UTF-8?Q?Axel_D=c3=b6rfler?=) Date: Tue, 14 Mar 2017 15:44:08 +0100 Subject: [TYPO3-dev] Extension with custom entry point In-Reply-To: References: Message-ID: Am 13/03/2017 um 16:08 schrieb Axel D?rfler: > However, the first try to access $GLOBALS['TYPO3_DB'] fails, which hints > to the fact that the above is not correct either. I've managed to get it working simply by adding: \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->configure(); Kind regards, Axel. From todorutac at gmail.com Wed Mar 29 09:02:37 2017 From: todorutac at gmail.com (Andrei Todorut) Date: Wed, 29 Mar 2017 09:02:37 +0200 Subject: [TYPO3-dev] =?utf-8?q?_Re=3A_Plugin_Config_Flexform?= References: Message-ID: Go in backend and check which value you have in the select box for selecting the value related to your plugin. See there for example i.imgur.com/UE1G8pk.png. Just put the pluginSignature key as it is your value in select box and should work.