开发者

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?

  1. I have created a new controller named let's say new_template
  2. The control开发者_如何学编程ler class has the signature:

    abstract class Controller_Admintemplate extends Kohana_Controller_Template

  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜