require_once "Zend/Layout.php";

Looks like you already manually included the file, but the autoloader is
trying to load it. I'd comment this line out and try again.

Kevin


On 10/3/08 2:33 PM, "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote:

> -- mezoni <[EMAIL PROTECTED]> wrote
> (on Friday, 03 October 2008, 11:00 AM -0700):
>> PluginLoader cannot load Zend_Layout.
>> 
>> In my bootstrap.ph I use the following code:
>> 
>> require_once "Zend/Layout.php";
>>         Zend_Layout::startMvc(array('layoutPath' => self::$path .
>> '/application/modules/default/views/scripts'));
>>         Zend_Layout::getMvcInstance()->getView()->addScriptPath(self::$path
>> . '/application/modules/default/views/scripts');
>> 
>> But in layout.phtm at this line...
>> 
>> <?= $this->layout()->content ?>
>> 
>> ...PluginLoader to do the following...
>> 
>> Zend_Loader::loadFile($classFile, $paths);
>> 
>> ...and Zend_Loader add to paths paths from get_include_path()
>> 
>> An I get the error
>> 
>> Cannot redeclare class Zend_Layout
> 
> Can you send your include_path, plus the helper paths from your view
> object ($view->getHelperPaths()), and indicate on what path your ZF
> install is? That wil help us diagnose better.
> 
> Also, what version of ZF are you using? if it's from svn, can you tell
> us what revision ('svn info' in the top of the ZF checkout will give
> that info).

Reply via email to