Hi,

why this not work?

Zend_Controller_Front::run('./application/controllers');

All pages are routed to indexAction in the indexController.

I have tried this:
$router = new Zend_Controller_RewriteRouter();
$ctrl = Zend_Controller_Front::getInstance();
$ctrl->setRouter($router);
$ctrl->run('./application/controllers');

And I get:

Fatal error: Call to undefined method Zend_Controller_Front::getinstance()

I get that after upgraded from 0.1.5 to 0.2

Thanks.

Citando David Brännlund <[EMAIL PROTECTED]>:

Thanks! It worked like a charm.


David Brännlund
Web & Database Development
COMSOL AB, Sweden

Dylan Arnold wrote:
I had to set my rewrite base manually. Maybe you are having the same problem.

On 11/2/06, *David Brännlund* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

   Hi Everyone,

   We've just upgraded from 0.1.5 to 0.2, and now all pages are routed to
   indexAction in the indexController. I thought all major changes to the
   MVC part was in the incubator, but we're using the library. I haven't
   seen any other posts about this, so I'm probably missing something very
   basic here.

   We use the following code, and it worked fine until we upgraded. We
   don't use any custom fronts, routers or dispatchers.

   -------------------------------------------------

   $router = new Zend_Controller_RewriteRouter();
   $ctrl = Zend_Controller_Front::getInstance();
   $ctrl->setRouter($router);
   $ctrl->run('../application/controllers');

   -------------------------------------------------

   Would be great if someone can point me in the right direction.


   Thanks,

   David Brännlund
   Web & Database Development
   COMSOL AB, Sweden




Reply via email to