Reputation: 13
I'm relatively new to CodeIgniter and after going through couple of basic tutorials, here is what i did:
1.Modified .htaccess to removed index.php page as below:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /digischool/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
Modified config.php as below:
$config['base_url'] = 'localhost/testci/';
$config['index_page'] = '';
Modifed Routes.php as :
$route['default_controller'] = 'dashboard';
Now for authentication system I thought of using Tank Auth,and all I have did is downloaded the library, imported database and copied all files to respective folder.
Now when I am trying to access http://localhost/testci/auth/login, or /testci/dashboard/auth/login I'm getting 404 not found error.
I tried to search solution for this,but documentation and communicty support seems to be poor for Tank Auth integration. Any help will be highly appreciated.
Edit: My Fodler Structure My Folder Structure
Upvotes: 0
Views: 464
Reputation: 13
At last solution and fixed issue. Posting solution here for future use:
As per CI user guide naming convention,
Class files must be named in a Ucfirst-like manner, while any other file name (configurations, views, generic scripts, etc.) should be in all lowercase.
But Tank Auth uses controller and model class names in lower case. So had to rename Tank Auth controller and model files to upper case and change the references according which worked for me.
Thanks @wolfgang1983 for your link to user guide naming convention which helped me in fixing the issue.
Upvotes: 1