Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Smarty usage in Vanilla

edited February 2011 in Vanilla 2.0 - 2.8
Looking at code, I want to ask strange question.
Do we really need Smarty in Vanilla default themes (or Vanilla at all)?
In current version, only mobile and embedded themes use smarty, and in such a way that it can be converted very fast to php similar to views approach.
For me, it just looks like overkill.


  • Options
    LincLinc Detroit Admin
    Smarty is optional. Some people like it.
  • Options
    Is it possible to make Smarty-free version of mobile and embedded themes then?
    Making php files out of this templates.
  • Options
    There is a setting inside smarty that makes you use PHP inside smarty templates.
    If you use the mobile and embedded themes, in the smarty compile cache the files with rendered PHP contents will be generated.
    Save those files and convert them to your PHP only templates.
    The Clean theme has a nice example of mixing PHP into the template.

    There was an error rendering this rich post.

  • Options
    Can you help with one example with Mobile?
    I'll make same thing with others.
    I want to eliminate Smarty completely from my version.
  • Options
    I haven't seen the mobile theme.
    What would you like to change from smarty to PHP in the mobile theme? The menu?

    There was an error rendering this rich post.

  • Options
    edited February 2011
    I don't want to change anything (so, to end user all will be the same), I'll just eliminate smarty class, lines in bootstrap and smarty inself, using php only.
Sign In or Register to comment.