Re: How to render a template from another model.

2007-09-02 Thread welja
Sorry, found the answer. In needed a absolute path to the template, so in my case the following worked: $file = APP . 'plugins' . DS . $this->params['plugin'] . DS . 'views' . DS . $view . DS . 'test.tpl'; $this->render( null, null, $file ); Cake Rocks! --~--~-~--~~--

How to render a template from another model.

2007-09-02 Thread welja
I am trying to render a template form another model. Something like: // controller of ExampleA using a Template from ExampleB $this->render(null,null, '/../example_b/view.thtml'); This doesn't work, sadly. maybe because its not very MVC like? But is it possible (without using the requestActio