Hi all. I have this in my bootstrap:

$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory(array('default' => MY_MVC.'/modules/default/controllers', 'user' => MY_MVC.'/modules/user/controllers')); $routes = array(); $routes['default'] = new Zend_Controller_Router_Route(':lang/:controller/:action/*', array('lang' => 'it', 'controller' => 'index', 'action' => 'index')); $routes['user'] = new Zend_Controller_Router_Route(':lang/user/:controller/:action/*', array('lang' => 'it', 'module' => 'user', 'controller' => 'index', 'action' => 'index'));
       $router = new Zend_Controller_Router_Rewrite();
       $router->addRoutes($routes);
       /* -- set it in a controller -- */
       $controller->setRouter($router);
// run!
       $controller->dispatch();

I need to execute some _forward() from my action() methods but everytime that I use _forward() Zend Framework say me (via exception) that the action that I call does not exesist.
I think that the problem  is "lang:".

For example try to think about a loginAction(): I want that loginAction call myViewFormAcrion when the Login Action() is called without $_POST. I don't want a redirect because it change my url.

How can I use _forward() function with my "route" ?

Tnx.

--
Michel 'ZioBudda' Morelli                       [EMAIL PROTECTED]
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: [EMAIL PROTECTED] JABBER: [EMAIL PROTECTED]

Reply via email to