• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smarty in CodeIgnitor


I have read some topics about including Smarty in CodeIgnitor. All of them seams to be very advanced so i tried to include it by my self. I did get the connection between CodeIgnitor and Smarty to work but the problem now is that Smarty can't find the tpl files.

This is how i did it:

1. Create the file srt.php in /application/libraries/.
2. Added Smarty folder in /application/libraries/smarty/.
3. Including Smarty class in srt.php
4. Set correct dir to tpl folder
$this->template_dir = BASEPATH . '/application/views';

What have i done wrong, the message i get is "Unable to read resource"

Best regards,

[eluser]Tom Schlick[/eluser]
i have a fully fuctional smary libarary with integrated tag files and a way to load new tags. ive been thinking about packaging it up for a while i guess i will if someone would want it... does anyone want it?

Yes, please!

[eluser]Tom Schlick[/eluser]
ok ill throw something together. its not the prettiest thing but it definatly works and works well. give me a little while and ill post it

I solved this problem!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.