Class not found

3 messages Options
Embed this post
Permalink
Pool1 () Class not found
Reply Threaded More More options
Print post
Permalink
Hi,

I am new to Zend and trying to build a small test application.

My structure is something like this

development
->application
   ->config
   ->models
   ->modules
->library
   ->plugins
       ->Environment
            initialize.php
->public
    ->index.php


in my bootstrap(index.php)  I've specified where to find my own library

set_include_path(
        '.'
        . PATH_SEPARATOR . 'path to Zend framework\ZendFramework-1.8.4\library'
        . PATH_SEPARATOR . '..\library'                
        . PATH_SEPARATOR . '..\application\models' // Location of Models
        );

require_once 'Zend/Loader/Autoloader.php';
$objFront = Zend_Loader_Autoloader::getInstance();
       
$objFront = Zend_Controller_Front::getInstance()
           ->addModuleDirectory( "..\application\modules" )
           ->setBaseUrl( '/' )
           ->throwExceptions( true );

$objFront->registerPlugin( new plugins_Environment_initialize() );

try
{
    $objFront->dispatch();
}
catch(Zend_Controller_Action_Exception $e)
{
        Zend::dump($e);
        exit();
}

When i debug it says
Fatal error: Class 'plugins_Environment_initialize' not found

Any help would be appreicated.

Thanks


Christoph Dorn () Re: Class not found
Reply Threaded More More options
Print post
Permalink
This forum covers support for FirePHP only.

The best place for your question is the Zend Framework General Mailing List.
Pool1 () Re: Class not found
Reply Threaded More More options
Print post
Permalink
Thanks, i've posted my message there.