Hi Jude,

I went with this approach, but I got stuck directly :) Now I have:

/controllers/IndexControll.php
/controllers/admin/IndexController.php

In the bootstrap I have:

$o_frontController->setControllerDirectory(array(
      'default' => './application/controllers',
      'admin'    => './application/controllers/admin'
));

But how do I control where the views will be located?

The /application/views/scripts has the following content:

./footer.phtml
./menu.phtml
./index/index.phtml
./header.phtml

But still I get this error:

Fatal error: Uncaught exception 'Zend_View_Exception' with message
'script 'index/index.phtml' not found in path
(./application/controllers/views/scripts/)'
in /var/www/html/unimechgroups.com/httpdocs/library/Zend/View/Abstract.php:857 
Stack trace: #0 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/View/Abstract.php(765): 
Zend_View_Abstract->_script('index/index.pht...') #1 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/Controller/Action/Helper/ViewRenderer.php(742):
 Zend_View_Abstract->render('index/index.pht...') #2 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/Controller/Action/Helper/ViewRenderer.php(763):
 Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.pht...', 
NULL) #3 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/Controller/Action/Helper/ViewRenderer.php(811):
 Zend_Controller_Action_Helper_ViewRenderer->render() #4 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/Controller/Action/HelperBroker.php(160):
 Zend_Controller_Action_Helper_ViewRenderer->postDispatch( in 
/var/www/html/unimechgroups.com/httpdocs/library/Zend/View/Abstract.php on line 
857

What can I do now? :/

/Peter

On Mon, 2007-11-12 at 09:10 +0900, Jude Aakjaer wrote:
> Hi Peter,
> 
> I've done a similar thing, I used the module setup
> 
> http://framework.zend.com/manual/en/zend.controller.modular.html
> 
> and created a module called cms, so I had
> 
> /controllers/IndexController.php
> /controllers/NewsController.php
> ...
> /cms/controllers/IndexController.php
> /cms/controllers/NewsController.php
> ...
> 
> 
> Jude A.
> 
> 
> On Mon, 12 Nov 2007 05:07:41 +0900, Peter Lauri <[EMAIL PROTECTED]>  
> wrote:
> 
> > Hi,
> >
> > I am familiar with the basics how ZF is working when it comes to
> > Controller/Action etc. For example I will have:
> >
> > faq
> > faq/show/id/1
> > ...
> >
> > But, for the admin section I want:
> >
> > admin/faq/listall
> > admin/faq/add
> > admin/faq/delete/id/2
> > admin/faq/edit/id/5
> > ..
> >
> > How should I do that. Do I need to put an extra index.php in the
> > subfolder admin and do as normal? Or any other commonly used approach?
> >
> > /Peter
> >
> >
> 
> 

Reply via email to