How to create admin panel |
[eluser]JasmineFlower[/eluser]
My .htaccess file Code: RewriteEngine on it is correct or not ?
[eluser]JasmineFlower[/eluser]
Hi InsiteFX, In my application/config/config.php file having auto load function
[eluser]CrossMotion[/eluser]
You don't need to add rules to the .htaccess file for this. you just need to send everything to index.php so that the CodeIgniter route class can handle it. Just change your .htaccess file to this. Code: RewriteEngine on In the RewriteCond part you can add directories and files that you dont want to get handled by CodeIgniter. add things like your images, css and javascript folders here. you can separate them with a pipe.
[eluser]CrossMotion[/eluser]
[quote author="JasmineFlower" date="1306337198"]Hi InsiteFX, In my application/config/config.php file having auto load function[/quote] You can autoload functions in your application/config/autoload.php file. Check http://ellislab.com/codeigniter/user-gui...oader.html. Simply put, in application/config/autoload.php, change this: Code: $autoload['helper'] = array(); Code: $autoload['helper'] = array('url'); By the way, if you don't know basic stuff like this. Maybe you should start with the tutorials. They give you a basic understanding of how CodeIgniter works.
[eluser]CrossMotion[/eluser]
You're welcome. Did this solve the problem for you?
[eluser]JasmineFlower[/eluser]
Hi Cross, I solved this problem by using .htaccess & routes.php file my .htaccess file Code: RewriteEngine on and my routes.php Code: $route['default_controller'] = 'home';
|
Welcome Guest, Not a member yet? Register Sign In |