⚠ 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

change base_url()



Sandeep Jung Thapa
  • profile picture
  • Member

Posted 11 December 2014 - 07:00 AM

how do i change the default_Asets_path / css_path /js path for the grocerryCRUD.

 

my default path comes with a index.php because of base_url 

 

either I wanna change my base_url for grocerry crud

or any way to change the defualy assets folder, i tried customizing the library, with ../assets/  _____   but it didnt worked.

 

 I did : protected $default_assets_path = '../assets/grocery_crud';  in library file   [[ added  ../ to go one step back ] but not working 

my base_url gives a url with index.php, i cannot change it now because my whole application uses that url.

 

 

my base_url :  www.mydomain.com/index.php

 

 

what i want = www.mydomain.com/

 

I know it is possible but since my program uses the url with index.php so i need to change the base_url only for grocerry crud .

 

how is that possible, please I want help, 


Amit Shah
  • profile picture
  • Member

Posted 12 December 2014 - 05:53 AM

first off all .. checkout how to make clean url in CI with .htaccess ...

then second thing .. remove anything from base url in the config file.. leave it empty

then when u use it - it will automatically pickup the base_url -u wont need to set things up.