Please give me the folder structure for Code Igniter -2.0.2 with smarty-3.0.8 |
[eluser]SamJJS[/eluser]
I am new to CI. Please give me the folder structure and sample files for CI with smarty. TIA - Sam
[eluser]praveens[/eluser]
Go through below url, http://codeigniter.com/wiki/Better_Server_Setup_for_CI/ Cheers!
[eluser]SamJJS[/eluser]
Thanks Praveen. But i need CI-2.0.2 with smarty-3.0.8 folder structure
[eluser]echo sara[/eluser]
Hi What is smarty used for if you don't mind me asking Sara
[eluser]praveens[/eluser]
Go through below url http://codesamplez.com/development/codei...2-features
[eluser]echo sara[/eluser]
That link didnt explain what smarty is. it explained about codeigniter2.0 tho :-)
[eluser]praveens[/eluser]
Create one directory named ‘applications/init’. create one file named ‘applications/init/init_mysmarty.php’ paste following in it: Code: if ( ! class_exists('MySmarty')) create one file named ‘applications/libraries/MySmarty.php’ paste following in the class : Code: class MySmarty extends CI_Smarty{ paste “applications/libraries/libs” of smarty in libraries of application : refer to MySmarty.php class for the path. Create ‘templates_c’ and ‘templates’ in views directory Try this controller: Code: function Blog() Cheers!!!!!!!!!
[eluser]echo sara[/eluser]
praveens good job with the example, but i'm confused on how all the files function with each other. Can you explain your example above pleasee. isnt smarty to make a cleaner viewer so there isnt alot of php cluttered in there?
[eluser]praveens[/eluser]
Sara smarty is PHP Template Engine, for more info go through below url www.smarty.net
|
Welcome Guest, Not a member yet? Register Sign In |