[TYPO3-mvc] Scheduler & ext_base?

Braulio J. Solano-Rojas braulio at solsoft.biz
Thu Jul 22 21:42:14 CEST 2010


Hello.

I would like to know if it is possible to dispatch a controller inside a 
task (before I try).  I would like to do something like this:

class Tx_Magazine_Task_EmailTask extends tx_scheduler_Task {
	public function execute() {
		// Create a Tx_Extbase_MVC_Request $request object.
		// Set parameters for request.
		// Create a response object $response.
		$controller = 
t3lib_div::makeInstance('Tx_Extbase_MVC_Controller_ActionController');
		$controller.processRequest($request, $response);
		// use t3lib_div to email $response.getContent();
		return True;
	}
}

Am I understanding fine the API?

I will appreciate very much any help.

Best regards,

B.


More information about the TYPO3-project-typo3v4mvc mailing list