Smarty and Kohana
Asked Answered
R

2

8

Is there a standard "official" way of using Smarty with 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..)

Realtor answered 16/12, 2010 at 3:49 Comment(1)
You might want to consider using Twig instead of Smarty. There is already a module for it.Selfdefense
T
6

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 ;)

Tisiphone answered 16/12, 2010 at 8:27 Comment(0)
M
2

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

Milk answered 23/12, 2010 at 13:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.