Thank you, let me do the last question: how can I "configure the Autoloader to find the namespace MyApp" ?
Thanks All Elia C. Jurian Sluiman wrote: > > Op Thursday 28 May 2009 15:21:45 schreef umpirsky: >> Is library in include path? >> How are you finding it, do you use autoload? >> >> Regards, >> Sasa Stamenkovic. >> >> Elia C. wrote: >> > I create Admin folder in library path, moved AdminControllerAction.php >> in >> > that folder, then >> > I have renamed AdminControllerAction class in >> Admin_AdminControllerAction >> > and declare Admin_IndexController extends Admin_AdminControllerAction. >> > >> > It can NOT found it again! >> > >> > (I think i have to use Zend_Application_Module_Bootstrap) >> > >> > umpirsky wrote: >> >> Hi. >> >> >> >> Here is one way to do it. If you have your lib in library folder, for >> >> example My, move it there and rename to My_ AdminControllerAction. >> >> >> >> Regards, >> >> Sasa Stamenkovic. > > *If* you want to place the class in your library folder, it's better to do > it > in a logical place. Create the folder /library/MyApp/Controller/Action/ > and > create inside the folder a Abstract.php. The class you need to create is > an > abstract class MyApp_Controller_Action_Abstract. > Extend your IndexController with MyApp_Controller_Action_Abstract and it > will > work (of course you need to configure the Autoloader to find the namespace > MyApp). > > But if your abstract class is more module specific, it's better to place > the > abstract folder into the module controller directory. > > Regards, Jurian > -- > Jurian Sluiman > Soflomo.com > > -- View this message in context: http://www.nabble.com/Using-Zend-Action-Controller-Subclass-tp23761046p23761870.html Sent from the Zend Framework mailing list archive at Nabble.com.
