Welcome Guest, Not a member yet? Register   Sign In
Where to put Smarty, Styles, Scripts, etc?
#3

[eluser]jonyr[/eluser]
I use an assets folders at the same level as my CI/system folder.

/assets
--->js
--->css
--->img

About Smarty, on a linux server I install Smary using "$ sudo aptitude smarty" and later I create my own library for use Smarty in CodeIgniter.

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');


require_once('/usr/share/php/smarty/Smarty.class.php');

class CI_Smarty extends Smarty {

function CI_Smarty()
{
parent::Smarty();
}

//Your code here
}

This is a good approach for use in a server enviroment. Smarty classes will be shared with other web apps.

JonyR


Messages In This Thread
Where to put Smarty, Styles, Scripts, etc? - by El Forum - 02-07-2010, 07:31 AM
Where to put Smarty, Styles, Scripts, etc? - by El Forum - 02-07-2010, 08:37 AM
Where to put Smarty, Styles, Scripts, etc? - by El Forum - 02-20-2010, 04:35 AM
Where to put Smarty, Styles, Scripts, etc? - by El Forum - 02-20-2010, 09:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB