[TYPO3-mvc] plug called 5 times per view?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Feb 10 13:52:17 CET 2011
Hey Stefano,
> i'm just testing my first ext with ExtBase (created the basic structure
> with ExtBase Kickstarter.. now i'm adding my stuff)
>
> what i don't understad is why (putting a simple t3lib_div::devLog in
>
> public function listAction() {
> $products = $this->productRepository->findAll();
> t3lib_div::devLog('preProcessFieldArray', 'myext', 0, array('test'));
> $this->view->assign('products', $products);
> }
>
> it creates 5 records everytime i view the plug in FE.
>
> it's the default controller, defined by:
...
> any idea?
> is it normal?
no, that's not normal at all. What happens if you add some print_r or
t3lib_div::debug calls there? Are they also executed 5 times?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list