⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to Move Example file in View



MD Fadilah

MD Fadilah
  • profile picture
  • Member

Posted 31 October 2012 - 19:52 PM

Hi all..

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.

noskov.biz

noskov.biz
  • profile picture
  • Member

Posted 31 October 2012 - 20:46 PM

Hi MD Fadilah and welcome to the forum!
Sorry, I don't understand exactly for what do you want move the view file into subfolder?

victor

victor
  • profile picture
  • Member

Posted 31 October 2012 - 21:13 PM

If your css and js files are in the "views/templates" change the path in these template files.
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