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

helper conflict img() #27

Closed robkampen closed 11 years ago

robkampen commented 11 years ago

I have just started with codeigniter and thus a bit green / novice. Loaded the CI-Smarty integrator and have the smartytest and smartytest/inheritance working just fine. To get it working, I needed to remove the html helper in my config file as it conflicts with a function img() declaration. Please advise remedy - thanks for the code assist, it looks like it will make life a little easier, although moving from $this->load->view() to $this->parser->parse() will take a bit of getting used to as I have only just grasped the first. TIA Rob

Vheissu commented 11 years ago

Hey Rob,

Sorry about that, the conflict has been resolved. I renamed the function to image instead and added in some function_exists conditionals to check if the function or functions are already defined.

The parser system is great because it means you get to keep the ->view functionality if you need it and use the parser for more advanced loading like themes and templates.

robkampen commented 11 years ago

Thanks Dwayne, appreciate the quick response - this is the kind of support you cannot get paid help to give. Got to love open source community - much better ethos - we care about the stuff we do. I assume one now calls image() to load an image anchor reference. I'll make a note accordingly.