Yes, I know that. But my questions was that you have the public folder in the document root which consists of the images, css files js files. Does ZF let you set up the public folder as follows:
public /admin /css /images /js /blog /css /images /js /default /css /images /js Or do you need to do that and set it up yourself? Like are there any methods like getPublicPath or setPublicPath like there is for controllers and modules? Thanks. On Wed, Mar 4, 2009 at 1:10 PM, Vibhor Singh <[email protected]> wrote: > yes. > I am developing an application with several modules. So I have the > following dir structure: > zfproject > --backend > --frontend > --layouts > --scripts > --modules > --default > --controllers > --models > --cms > --controllers > --models > --views > --forms > --designs > --controllers --models > --views > --forms > ..... > ANd this is how you let ZF know your modules path > > //set this in bootstrap: > defined('FRONT_APPLICATION_PATH') or define('FRONT_APPLICATION_PATH', > dirname(__FILE__)); > $frontController = Zend_Controller_Front::getInstance(); > $frontController->addModuleDirectory(FRONT_APPLICATION_PATH.'/modules'); > > Thanks, > Vibhor > > > ----- Original Message ----- > *From:* vadim gavrilov <[email protected]> > *To:* Zend Framework - General <[email protected]> > *Sent:* Wednesday, March 04, 2009 4:30 PM > *Subject:* [fw-general] Public folder but application uses modules > > If i have several modules like default, admin, blog etc... > will i need to create several directories in the public/ folder for each > module? how would i access the files there? do i need to set those myself or > is there any way of doing that using the ZF? > > Thanks. > > -- > Vincent Gabriel. > Lead Developer, Senior Support. > Zend Certified Engineer. > > > > > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer.
