« Return to Thread: Zend_View_Stream does not exist

Re: Zend_View_Stream does not exist

by weierophinney :: Rate this Message:

Reply to Author | View in Thread

-- dinoboff <dinoboff@...> wrote
(on Sunday, 30 March 2008, 08:54 AM -0700):
> Aften  http://akrabat.com/2008/02/05/a-view-stream-with-zend_view/ Rob Allen
> post about stream wrapper  
>
> I wrote one:
> http://code.google.com/p/simple-php-template/source/browse/trunk/src/library/Spt/Stream/View.php
>
> It allow customization of the replacement patterns and cache the template.

Interesting approach, particularly caching. Would you want to consider
proposing caching functionality for Zend_View? I think it can actually
done higher than the streams layer, as the cache check could be done
prior to any inclusion of a view script. This is the sort of thing that
can add value to Zend_View while keeping Zend_View_Abstract constrained
to base functionality (loading plugins, registering escapers, etc.).

> Matthew Weier O'Phinney-3 wrote:
> >
> > -- Pieter Kokx <pieter@...> wrote
> > (on Sunday, 30 March 2008, 02:20 AM -0700):
> > > When I did update my trunk version of the incubator this morning, I was
> > > getting an error with the message
> > > "Zend_View::require_once(Zend/View/Stream.php)
> > > [function.Zend-View-require-once]: failed to open stream: No such file or
> > > directory".
> >
> > Oop! I forgot to add Zend_View_Stream to the repo, as well as some
> > changes to the PluginLoader to facilitate its usage by Zend_View; these
> > are added now.
> >
> > > It seemed that it depends on the 'short_open_tags' php.ini directive,
> > > I did turn it off (because I don't use it anyway), but I think that
> > > this could be a larger problem for those who are using the short open
> > > tags.
> > >
> > > This is also a bug currently, because I thought that Zend_View_Stream
> > > should emulate short open tags, so it should be enabled when the
> > > short_open_tags directive is is turned Off, and not when it is turned
> > > On.
> >
> > I had it enabled for when short_open_tags was on simply so I could test
> > without tweaking INI settings; however, I've now updated it to only use
> > the stream wrapper when they are off.
> >
> > Please remember that the incubator is a moving target, and often in an
> > unusable state. :-)

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/

 « Return to Thread: Zend_View_Stream does not exist