Different Controller extends different template in Kohana
i have a kohana based website and many controllers.
I want that some controllers (and automatically the afferent views) to extend (and use) a different template (some other template than the default one).
What have i done for that?
- I have created a new controller named let's say new_template
The control开发者_如何学编程ler class has the signature:
abstract class Controller_Admintemplate extends Kohana_Controller_Template
i have created a new view for the new template: newtemplate.php ()
The problem: the views associated with the controllers that extend the new template, are not dislaying using the new template.
Where i am wrong? Thank you!
Follow these three and you'll be okey. =]
http://kohanaframework.org/3.1/guide/kohana/tutorials/templates
精彩评论