|
|||
|
I am using Zend Framework RC 1 and I am trying to get modules working correctly, this is my directory structure:
Quote:
Code:
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Controller_Front');
Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Db_Table');
$controller = Zend_Controller_Front::getInstance();
$controller->addModuleDirectory('./application/modules');
$controller->dispatch();
Also, both are giving me the following error (it appears below my echo statement in the default indexcontroller): Quote:
__________________
www.glasscube.co.za Last edited by blunt : 05-31-2007 at 12:14 PM. |
|
|||
|
Try putting the following controller in your default section:
PHP Code:
|
|
|||
|
I had the same problem. But I solved it. In declaring Admin Controller, make sure you use thise declaration in IndexController.php in Admin/Controllers
Code:
class Admin_IndexController extends Zend_Controller_Action {
public function indexAction(){
}
}
Hope it helps |
|
||||
|
Actually the folder index and the file index.phtml are not required if you decide not to use the ViewRenderer helper.
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|