Vheissu / Ci-Smarty

Smarty templating engine integration for Codeigniter 3.0+ with inbuilt theming and asset management.
http://ilikekillnerds.com
179 stars 43 forks source link

Made 2 quick changes. #2

Closed Icehawg closed 13 years ago

Icehawg commented 13 years ago

I removed the hardcoded default of "tpl" as the template extension in My_Parser and replaced it with a config variable set in the smarty config file. Instead of re-loading the smarty config in the parser to get at the variable, I just added a variable in the smarty class and called that variable in the parser.

I also added that $data line wrapped in an "is_array" check.

Vheissu commented 13 years ago

Thanks Icehawg, you're the man! I've committed them to the Codebase.