Thanks Fred, Regards,
Fábio TC dogo wrote: > > Fábio T. da Costa a écrit : >> My directory structure: >> >> application/ >> albuns/ >> controllers/ >> IndexController.php (named Albuns_IndexController.php) >> models/ >> views/ >> >> >> My bootstrap file: >> >> $frontController->setControllerDirectory(array( >> 'default' => './application/controllers', >> 'albuns' => './application/albuns/controllers' >> )); >> >> >> In "application/albuns/controllers/IndexController.php" I have the >> function >> "addAction()". >> But, to call this I have tho use: "localhost/my_app/albuns/index/add". >> Why??? >> >> I want to use only "localhost/my_app/albuns/add", without the "/index/". >> >> >> >> >> >> >> ------------------------------- >> Sorry for my bad english >> Regards from Brasil >> ------------------------------- >> Fábio Tadeu da Costa >> >> >> >> >> > Hi, > > In your use case, index is the name of the controller, imagine that you > have another controller in the album module, which has an addAction as > well. How would you determine which one to use ? If it really bothers > you I guess you could use a plugin controller so that you could write > some code which parses all the controllers within a module in order to > find the right action... > > regards > > fred > > -- View this message in context: http://www.nabble.com/Controller-URL-question-tf3492764s16154.html#a9761436 Sent from the Zend Framework mailing list archive at Nabble.com.
