New to smarty i need to create Codeigniter HMVC with smarty front-end without module expansion, smarty working fine in Normal MVC Structure.But i am confronting trouble when i create utilizing "HMVC" its giving problem please guide.
-
2Plz explain ur problem – Yes Kay Selva Mar 04 '15 at 12:18
-
i have to develop project in CodeIgniter with HMVC and front end as Smarty.HMVC working fine i can able to create modules and it will performing the operations clearly.but I dont know how to use smarty in HMVC.where should i use smarty libraries, which files i should edit. – Bharath Raj Mar 04 '15 at 12:26
2 Answers
You could try these examples here
https://github.com/Vheissu/Ci-Smarty
http://www.coolphptools.com/codeigniter-smarty
codeigniter + hmvc + smarty or using common libraries within modules
Using Smarty 3, Code Igniter 2, and HMVC together with smarty's inheritance?
You need to just Google a bit more if in doubt ask on http://forum.codeigniter.com

- 1
- 1
-
this i tried they using $this->parser->parse() instead of using $this->load->view(). – Bharath Raj Mar 04 '15 at 12:45
I'm using CI3 with HMVC. Today I found an excellent tutorial for implementing Smarty 3. It involves implementing a lot of files and will require some tweaking because it throws up template errors. However, there is a fix for this. You need to follow the initial instructions exactly.
Working with Codeigniter HMVC-Smarty
For the fix it is in the same forum
I added a test function to make sure it really works. I'm about to test it out for template inheritance...

- 1
- 1
- 2