[TYPO3-mvc] Extbase 1.3.0 and scheduler

Braulio J. Solano-Rojas braulio at solsoft.biz
Thu Feb 3 16:14:54 CET 2011


El 03/02/2011 03:15 a.m., roberto blanko escribió:
> Hi Franz,
> hi Braulio,
>
> thanks for your responses. But in order for that to work, my Task
> Controllers and Actions must be assigned to a Frontend Plugin first, right?

No.

> Since tasks are to be run within a CLI context only, I don't think this is
> quite reasonable.
>
> Or can I at least assign my Crontroller to a backend module? But how would
> the configuration for that look like?

TYPO3 will do this automatically.  You have to do something like in the 
blog example:

  # Module configuration
module.tx_blogexample {
	settings < plugin.tx_blogexample.settings
	persistence < plugin.tx_blogexample.persistence
	view < plugin.tx_blogexample.view
	view {
		templateRootPath = {$module.tx_blogexample.view.templateRootPath}
		partialRootPath = {$module.tx_blogexample.view.partialRootPath}
		layoutRootPath = {$module.tx_blogexample.view.layoutRootPath}
	}
}

This is just in order to separate templates of your scheduler task and 
to pass variables to your task like persistence.storageId.

Remember that tasks does not display anything.  They just do stuff and 
return true or false.

Roberto, I recommend you to use Xdebug and an IDE capable of remote 
debugging.

Bests,

B.


More information about the TYPO3-project-typo3v4mvc mailing list