On 3/12/07, Adler Medrado <[EMAIL PROTECTED]> wrote:

Hello all.
I don't know if this is the correct list to post this. If it is not, i am
sorry.

I've upgraded my app to the Zend Framework Previw to 0.8.0 and my app work
fine with the 0.7.0 version.

The source code is:
$frontController = Zend_Controller_Front::getInstance();
$frontController->setParam('useModules', true);


You do not need to set useModules to true because default router and
dispatcher support modules by default.

$frontController->setBaseUrl($baseUrl);
$frontController->setControllerDirectory('./application/controllers');
$frontController->throwExceptions(true);

Please, what am i doing wrong?


I think that in your case the router consider "pesquisa" as a controller
name of the "default" module because the "pesquisa" controller is not
defined. So you need to specify the folder with controllers of each module
as follows:
$front->setControllerDirectory(array('default' =>
'./application/controllers', 'pesquisa' =>
'./application/pesquisa/controllers', ...));
You can find a more information about modular directory structure at
http://framework.zend.com/manual/en/zend.controller.modular.html.

Sincerely,

--
Alexander
http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and
Ajax.

Reply via email to