[Solar-talk] yui-ext set view path
Jeff Surgeson
solar at 3hex.com
Thu Nov 2 02:27:46 PST 2006
Hi Rodrigo
I downloaded you latest svn this morning and I see that you have made a few
changes, great stuff.
Just one thing, previously setting $view->addTemplatePath('Vendor/App/View');
in _setViewLayout() allowed the helpers to find template views in other class
paths as well, but I see now it is looking for them in the layout directory
only, see my path stack array below.
0 => 'Vendor/App/View/', [ as set in _setViewLayout() ]
1 => 'Vendor/App/News/Layout/',
2 => 'Vendor/App/Layout/',
3 => 'Solar/App/Layout/'
I can solve it by adding
$view->addTemplatePath('Vendor/App/CLASS_NAME/View'); in _setViewLayout()
but I would then have to add a path for each class.
Is this the way it now works or is something wrong, as I am sure it
added /View and not /Layout to path stack array before, or maybe both?
--
Jeff Surgeson / South Africa
More information about the solar-talk
mailing list