开发者

Smarty and Kohana

Is there a standard "official" way of using Smarty wit开发者_JS百科h Kohana 3? I see there are some options that seem less than ideal and will probably break when either Smarty or Kohana's minor version number increases.

(as a side question, is it a good idea to use Smarty with Kohana? I'm only trying to have it installed because I'm very familiarized with Smarty and I'm afraid Kohana won't provide all the stuff I love about Smarty..)


Ko3 supports plain php views "from the box", any other template engine can be added as module. This is "standard official" way to extend Ko3 framework features.

If you need a better module, you can modify/extend existing one for your purposes. A lot of people are using templates like Smarty, Dwoo, Twig etc, so dont afraid ;)


You will need to use or create a module that overrides the built in Kohana::View. There is an existing module already available so you don't need to create one yourself:

KSmarty: https://bitbucket.org/dfox/ksmarty/wiki/Home

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜