Problem to run the app on the server |
[eluser]Unknown[/eluser]
Ok... on my webhosting service I have www folder where i put my index.html file. Than when i type www.mydomain.eu I get this index.html file. Than I have subfolder www/folder/index.html Than when i type www.mydomain.eu/folder i get this page so it is ok. Than i have www/folder2/<here i unzip CodeIgniter framework> and when i type www.mydomain.eu/folder2, 404 Page Not Found appears. The error is not general error from browser but generated from the CI framework. I have created my own controler in application/controllers/mycontroller.php <?php class Mycontroller extends CI_Controller { public function view($page = 'enter_form') { $data['title'] = ucfirst($page); // Capitalize the first letter $this->load->view('templates/header', $data); $this->load->view('pages/'.$page, $data); $this->load->view('templates/footer', $data); } } And I have following structure of views: views/pages/enter_form.php views/templates/header.php and footer.php 1) $config['base_url'] = ''; but I have tried 'http://mydomain.eu/' and 'http://mydomain.eu/www/' or 'http://mydomain.eu/www/folder2/' 2) $route['default_controller'] = 'mycontroller/view'; $route['(:any)'] = 'mycontroller/view/$1'; 3) I found only .htaccess file in application folder. This file contain only this string - Deny from all Still I am not possible to run it as on localhost... Thank you for any help |
Messages In This Thread |
Problem to run the app on the server - by El Forum - 04-19-2014, 02:38 PM
Problem to run the app on the server - by El Forum - 04-20-2014, 04:51 AM
Problem to run the app on the server - by El Forum - 04-21-2014, 03:10 PM
|