-- vkimura <[EMAIL PROTECTED]> wrote
(on Sunday, 30 December 2007, 11:59 AM -0800):
> I attempted to fix all the errors by using ini_set function in the Front.php
> controller and in other files since other files began failing to open when I
> rectified one problem:
> ini_set('include_path', 'C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Action');
Don't; every time you change the include_path, you'll break things for
other class files that need to be loaded. Set it once, and do so in your
.htaccess file or your bootstrap file. Based on what you have above, I'd
recommend:
ini_set('include_path', '.;C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\zend\library');
If you do the above in your bootstrap file, make sure it's the *first*
line, before any other includes are done.
> But what ended up happening is the following error:
> Compile Error: Zend\Controller\Action\Exception.php line 33 - Cannot
> redeclare class Zend_Controller_Exception
>
> Very strange. I'm giving up on the Zend document tutorial. If you try it
> could you let me know what happens on your end?
>
> Here's the tutorial:
> http://framework.zend.com/manual/en/zend.controller.html#zend.controller.quickstart
>
> Much thanks,
> Victor
>
>
> Rob Allen-3 wrote:
> >
> > Hi,
> >
> > At a guess, the zend/library directory that contains the Zend/
> > directory is not in your PHP's include_path.
> >
> > Regards,
> >
> > Rob...
> >
> > --
> > http://akrabat.com/zend-framework-tutorial
> >
> >
> > On 30 Dec 2007, at 18:09, vkimura wrote:
> >
> >>
> >> Just wondering if anyone has encountered this problem:
> >> Compile Error: zend\library\Zend\Controller\Front.php line 26 -
> >> require_once() [ function.require function.require ]: Failed opening
> >> required 'Zend/Controller/Action/HelperBroker.php'
> >> (include_path='.;c:\php\includes;C:\Program Files\Apache Software
> >> Foundation\Apache2.2\htdocs\zend\library\Zend;C:\Program
> >> Files\Zend\ZendStudio-5.5.0\bin\ZendFramework\library;C:\Program
> >> Files\Apache Software
> >> Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Action;C:
> >> \Program
> >> Files\Apache Software
> >> Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Action
> >> \Helper;...)
> >>
> >> I've been trying to follow the instruction on the Zend framework
> >> documents:
> >> http://framework.zend.com/manual/en/zend.controller.html#zend.controller.quickstart
> >>
> >> The strange thing is in the controller Front.php the Loader.php is
> >> loaded
> >> which is the require_once statement immediately before the
> >> require_once
> >> statement HelperBroker.php. The HelperBroker should be found since
> >> it's in
> >> my include path but it's not loading.
> >>
> >> I tried to include the path in my php.ini file as denoted above but
> >> it's not
> >> opening. Here's my index.php file:
> >>
> >> <?php
> >> require_once 'zend/library/Zend/Controller/Front.php';
> >> Zend_Controller_Front::run('zend/application/controllers');
> >> ?>
> >>
> >> Any one encounter this problem?
> >>
> >> Any help is appreciated.:)
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Failed-opening-required-%27Zend-Controller-Action-HelperBroker.php%27-tp14549563s16154p14549563.html
> >> Sent from the Zend Framework mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Failed-opening-required-%27Zend-Controller-Action-HelperBroker.php%27-tp14549563s16154p14550582.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/