It turned out I didn't have the class correct in the
IndexController.php, I should have been able to figure that out from the
errors. I just had IndexController instead of Lead_IndexController. 

Thanks for the help!! 

On Wed, 2007-02-28 at 10:58 -0500, Matthew Weier O'Phinney wrote:

> -- Phillip B. Roberts <[EMAIL PROTECTED]> wrote
> (on Wednesday, 28 February 2007, 09:51 AM -0500):
> > I apologize if I am hitting the wrong list.
> > 
> > I am trying to use modules with Zend Framework 0.8.0 but having  a 
> > multitude of
> > problems. Was hoping ANYONE could offer some help.
> > 
> > Right now, if I go to the address www.theroopgroup.com I can get to the 
> > default
> > module fine (which is currently just a really bad temp page). However, if I 
> > go
> > to www.theroopgroup.com/lead or www.theroopgroup.com/lead/ I see 
> > exceptions. I
> > can't figure them out to save my own life though :)
> > 
> > Bootstrap: (I took out comments to save some space!!)
> > <?php
> > 
> > error_reporting(E_ALL|E_STRICT);
> > 
> > include 'Zend.php';
> > 
> > 
> > function __autoload($class)
> > {
> > Zend::loadClass($class);
> > }
> > 
> > 
> > $view = new Zend_View();
> > $view->addScriptPath('/home/roopgroup/application/Default/views/');
> > $view->addScriptPath('/home/roopgroup/application/Lead/views/');
> > Zend::register('view', $view);
> > 
> > 
> > $frontController = Zend_Controller_Front::getInstance()
> > ->setParam('useGlobalDefault', false)
> > ->setParam('useModule', true)
> > ->addControllerDirectory('/home/roopgroup/application/Default/controllers',
> > 'default')
> > ->addControllerDirectory('/home/roopgroup/application/Lead/controllers',
> > 'lead');
> > 
> > $frontController->throwExceptions(true);
> > $frontController->dispatch();
> > 
> > The exceptions I am getting are:
> > Fatal error: Uncaught exception 'Zend_Exception' with message 'File "Lead/
> > IndexController.php" was not found.' in /home/roopgroup/library/Zend.php:175
> 
> Does the following file exist:
> 
>     /home/roopgroup/application/Lead/controllers/IndexController.php
> 
> and does it contain the class 'Lead_IndexController'?
> 
> Modules are prefixed with the module name -- in your case, the 'lead'
> module means that the controller class will be prefixed with 'Lead_'.
> 
> Check that, and let me know if you still have issues.
> 

Phillip B. Roberts
the BMP group
(410) 749-1501 ph
(410) 726-6356 cell
[EMAIL PROTECTED]
www.thebmpgroup.com

Reply via email to