[eluser]blaff[/eluser]
Hello,
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
Code:
require("smarty/class.smarty.php");
4. Set correct dir to tpl folder
Code:
$this->template_dir = BASEPATH . '/application/views';
What have i done wrong, the message i get is "Unable to read resource"
Best regards,
Mikael