> The ViewRenderer currently checks the path stack to see if a path
> exists prior to adding it. This is causing a small bug for me.
[snip]
> What I'm trying to accomplish is actions firing in a specific
> sequence. If we are out of sequence, need to forward to the correct
> action and then come back.
>
> Simple fix is to just add paths to the view script stack WITHOUT
> checking if it first exists. That is my current temp fix (I just
> commented out $pathExists = true).
>
Funnily enough, I was helping someone with a slightly different
problem only 2 days ago. In his case, he wanted a different path at
the top of the stack and the controller's view/scripts directory to be
second. As the view renderer adds the controller's view/scripts
directory in render(), the only way you can get the path order you
want is to manually put in the view/scripts directory earlier in the
sequence.
i.e. whilst you consider it bug, someone else considers it an
essential feature.
Regards,
Rob...
没有评论:
发表评论