Link from admin dashboard are not working. |
Hi
I hope some one can help me :-D My problem is, when I click in the admin menu, to get to another admin pages, I get a error about the page "404 Page Not Found/The page you requested was not found." Its only on the admin dashboard I have the issue, all other link works fine. Its happen after I have update the CodeIgniter. routes.php Code: Route::any('admin', 'admin/dashboard'); navigator.php Code: <ul class="treeview-menu menu-open" style="display: block;"> /application/controllers/admin/dashboard.php Code: class Dashboard extends Admin_Controller
@ [email protected],
What version of CI are you using? Also, I noticed that your controller is all lowercase. The file is suppose to have the first character capitalized (.../admin/Dashboard.php instead of .../admin/dashboard.php).
Not sure if you remove index.php or not, but this:
PHP Code: <a href="<?php echo base_url();?>admin/dashboard/countries"><span>Countries</span></a> Should be this: PHP Code: <a href="<?php echo site_url('admin/dashboard/countries); ?>"><span>Countries</span></a> base_url will only add domain, and site_url will add domain and index.php, if needed. When you link to CodeIgniter page or controller, use site_url, when you link to resource files like CSS or JS or images, use base_url. (08-13-2018, 04:34 PM)php_rocs Wrote: @ [email protected], I use version 3.18, and I have controll again :-D, and all the controller, are the first character are capitalized. Have you other ideas :-D (08-14-2018, 12:24 AM)Pertti Wrote: Not sure if you remove index.php or not, but this: Its the same, all the url link not working, on the admin site. Can I move the controllers to another folder ? |
Welcome Guest, Not a member yet? Register Sign In |