Hi 

I've got the MVC fired up and running, but from som special case I'd like to
use some of the actions in a controller without the whole MVC. So I hope it
is possible to instantiate the Controller and call an action, does anyone
know how?

I've got the following code so far:

$front = Zend_Controller_Front::getInstance();
$r = $front->getRouter();
$r->addRoute('somename', new
Zend_Controller_Router_Route('period/2008-01-01',array('controller' =>
'CreatePDF','action' => 'RenderAndOutputPDF')));
$front->setRouter($r);

But I can't get it to work probably  :(   Hope you can point me to a simple
example.

thanx


./ask
-- 
View this message in context: 
http://www.nabble.com/use-Zend_Controller-without-MVC--tp19724450p19724450.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to