Install Codeigniter in a server online ERROR |
Hi everybody
I wish to install Codeigniter in a servor on line It contain no data step 1 : send files with ftp step 2 : - configuration autoload , route , dababase - configuration config : -----> base_url = www.xxxxxxx.com ----->sess_save_path : BASEPATH.'projet/cache' ----->uri_protocol : REQUEST_URI ----->index_page : 'index.php' htacess : RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] Everything ok but when I add a new function in my main controller ,for exemple public function test() { $this->load->view('test',$data); } it return nothing,i can see the changement in the url : www.xxxxxxx.com/index.php/Controller/test but the page cannot load, Can anyone help me Thank you very much
10-03-2016, 03:49 AM
(This post was last modified: 10-03-2016, 03:50 AM by InsiteFX. Edit Reason: spelling error )
1) Make sure when you save your files in your editor that they are not saved with the BOM encoding mark!
SEE: The byte-order mark (BOM) in HTML 2) Make sure you do not have any white space before the opening php tag. 3) Your online server may be case sensitive and require all lower case filenames. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(10-03-2016, 03:49 AM)InsiteFX Wrote: 1) Make sure when you save your files in your editor that they are not saved with the BOM encoding mark! thanks for your anwser while i save my files i think that i 've done forever without the BOM,and all my opening php tag doesn't contain space before and it may be true about the case sensitive and requires all lower case filenames but now ,my project doesn't work ,i see many tutorial but it s not htacess,session,or configuration;but i don't know what,it's not too the database because when i change the function in the routes.php,it show me aparts of data in database
make sure that your base_url has an ending / slash on it.
Also make sure that your index.php file has the application and system paths set correctly. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |