php - how to load my default controller in codeigniter using bootstrap? -


I have a view with a bootstrap template that is available on my view / reportlist.php (localhost / project / index.fp) Is embedded. The problem is that every time I do CRUD, the codeigner has rewrote me for the defiant Yuri. For example, when I edit a report from my list, I will be redirected to my view / reportlist.php (/Project/index.php/report/edit). So my bootstrap template has been ruined, I will have to go back to the project / index.php to load everything back. Please, if you know, post some thoughts that are in this way today, I can not get a relevant answer.

There is no connection between the codeigniter path and the bootstrap. You can set the default controller in line 41: Application & gt; Config & gt; Route.php file

On the other hand you can set base_url in line 17: Application & gt; Config & gt; Config.php:

  $ config ['base_url'] = "http: //". $ _ Server ['HTTP_HOST']; $ Config ['base_url']. = Preg_replace ('@ / + $ @', '', dirname ($ _ SERVER ['SCRIPT_NAME'])). '/';   

I'm sure you call the list view again in the edit mode to edit the method: D. If you want to avoid index.php from the url you can modify the code in your .htdocs files:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -