I installed latest CodeIgniter and copied welcome.php to backend.php, and changed the class variable to Backend however when I go to /backend it says controller not found. The contents of my .htaccess are as follows.
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]
I also tried to change the uri method to request uri, still the same issue.
The index controller works, but not the backend which was created from the index. (welcome.php)
Check if the class name defined in backend.php is
Backend:Make sure you have a method
index(default action) in theBackendcontroller:PS: You could also create a new directory
backendand put there ALL your controllers that you need in the backend. This would make things easier if you have complex functionality in the backend area.