Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#1925 by vikram
19 Sep 2015, 12:31
Hi,

I want to access orders placed by an user in my extension.

I have done the following:
added to ext_localconf.php
Code: Select all$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['extDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Extensions/';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['confDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Private/Config/';


copied /aimeos/Resources/Private/Config to my extension

And then
class SaleController extends \Aimeos\Aimeos\Controller\AbstractController {

but the actions do not output any thing. Echo/print_r works but not the fluid templates output.

What did I miss ?

regards
Vikram
#1927 by vikram
22 Sep 2015, 03:23
I missed the TS.. after adding the TS I get the following:
Code: Select allFatal error: Call to a member function assign() on a non-object


Someone please suggest where can I look for some solution.
#1933 by aimeos
22 Sep 2015, 08:39
vikram wrote:I missed the TS.. after adding the TS I get the following:
Code: Select allFatal error: Call to a member function assign() on a non-object

Someone please suggest where can I look for some solution.


The TYPO3 Aimeos abstract controller removes the Fluid view for performance reasons. You can re-enable it if you add this method:
Code: Select allprotected function resolveView()
{
   return \TYPO3\CMS\Extbase\Mvc\Controller\ActionController::resolveView();
}