place images/css/js in views folder (codeigniter) -


i developing small project has user , admin sides. in controllers folder there 2 folders admin , user. in views folder there 2 folders admin , user. both admin , user ends have different templates. have placed css/images/js in assets folder placed in root folder (parallel system folder). not want make 2 different folders in assets folder admin , user. instead want place respective css/js/images in views/admin , views/user folders. way can remove assets folder , html/css/images etc in same folder , able make different themes user side. possible?? if yes how?? please guide me in detail.

edit: want place admin.css in application/views/admin , user.css in application/views/users

anyone want place css/js/images in views can try this.

for example want place css file in views folder give css file path this

href="<? echo base_url() ?>application/views/assets/css/admin.css" 

now forbidden access error. error cause of .htaccess file in application folder. open .htaccess file , copy paste following.

rewritebase / rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.*)$ index.php?url=$1 [qsa,l]   

you ready go..


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -