-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:30 AM -0700):
> still cant see a thing.
> 
> I read every piece of documentation and not in a single one there is a
> good example of what the bootstrap file looks like under new 0.9. This
> is discouraging, since it worked fine under 0.8 and all docs are for
> previous versions.  I am tempted to just abandon using ZF if there is
> lack of proper documentation!

I'd rather you help me improve the documentation!

As mentioned in previous emails, there have been no real changes to the
MVC since 0.8 -- only some additional, optional features (which would
not affect what you're seeing, as they are only invoked when called),
and one minor under-the-hood change (all content is aggregated into the
response object by default using output buffering). The only updated
docs will be documentation of new features; the basic operation remains
the same.

Can you try the following for me?

    require_once 'Zend/Controller/Front.php';
    $front = Zend_Controller_Front::getInstance();
    $front->setParam('disableOutputBuffering', true)
          ->throwExceptions(true)
          ->setControllerDirectory('../application/controllers');
    $front->dispatch();

and report back what you see? I'm wondering if the output buffering is
swallowing the exception message. It shouldn't, but this will let me
know.

> Matthew Weier O wrote:
> > 
> > -- ZegeeDotCom <[EMAIL PROTECTED]> wrote
> > (on Monday, 19 March 2007, 07:57 AM -0700):
> > > 
> > > I am not seeing anything. No errors, no html and I thought that maybe I
> > > am
> > > setting up the controller incorrectly:
> > > 
> > > include "Zend/Loader.php";                        
> > >           Zend_Loader::loadClass('Zend_Controller_Front');
> > >           $front = 
> > > Zend_Controller_Front::run('../application/controllers');
> > >           $front-> throwExceptions(true);         
> > > 
> > > does this look good enough?
> > 
> > No. run() does all dispatching, so by the time you're calling
> > throwExceptions(), the exceptions have already been thrown and caught.
> > 
> > If you *need* to use run(), try:
> > 
> >     $front = Zend_Controller_Front::getInstance();
> >     $front-> throwExceptions(true);         
> >     Zend_Controller_Front::run('../application/controllers');

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to