[Solar-talk] helper stack
Rodrigo Moraes
rodrigo.moraes at gmail.com
Sun Aug 27 23:55:38 PDT 2006
On 8/25/06, Paul M Jones wrote:
> You want to add it to the view object the controller uses
> automatically, not create your own view. The way to do this is to
> override _getView() in your app.
>
> public function _getView()
> {
> // build a $stack, and then...
> $view = parent::_getView();
> $view->addHelperClass($stack);
> return $view;
> }
I'm starting to use dynamic layout paths and have been trying to do
the same for views/layouts. The only way I had success adding a
different path for a layout was to add it directly in the layout:
<body>
<?php
$this->addTemplatePath($this->layout_path);
include $this->template('layout.php');
?>
</body>
I would prefer to manipulate the template path outside of the layout,
of course. But I'm very confused about how to do this. :-|
rodrigo
More information about the solar-talk
mailing list