Welcome Guest, Not a member yet? Register   Sign In
Smarty in CodeIgnitor
#1

[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


Messages In This Thread
Smarty in CodeIgnitor - by El Forum - 10-03-2008, 04:25 PM
Smarty in CodeIgnitor - by El Forum - 10-03-2008, 04:30 PM
Smarty in CodeIgnitor - by El Forum - 10-03-2008, 04:34 PM
Smarty in CodeIgnitor - by El Forum - 10-03-2008, 04:36 PM
Smarty in CodeIgnitor - by El Forum - 10-03-2008, 05:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB