How to Move Example file in View
- Single Page
Posted 31 October 2012 - 19:52 PM
i'm new CI and GC too, but in strutcture of folder views like this as default:
–––––––– views/
–––––––––––– example.php
–––––––––––– index.html
–––––––––––– welcome_message.php
change to:
–––––––– views/
------------Templates/
––––––––––––---- example.php
––––––––––––---- index.html
–––––––––––– welcome_message.php
but, i need to change sub-folder of views, and i get error, javascript and css can't loaded.
what should i do, sorry for weird question.
Thanx so much.
Posted 31 October 2012 - 20:46 PM
Sorry, I don't understand exactly for what do you want move the view file into subfolder?
Posted 31 October 2012 - 21:13 PM
For example:
<link rel="stylesheet" type="text/css" href="<?=base_url()?>views/template/your_js_file.js"/>.
Grocerycrud loading css and js from other directory automatically