• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

unable to load your default controller on Codeigniter

phpcodeigniterroutes


PHP Snippet 1:

example.com/class/function/id/

PHP Snippet 2:

$route['default_controller'] = "home/index";

PHP Snippet 3:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

PHP Snippet 4:

$application_folder = 'application';

PHP Snippet 5:

$application_folder = 'application/home';

PHP Snippet 6:

controllers->Home.php

PHP Snippet 7:

$route['default_controller'] = "home";

Related Snippets

How to get multiple values with same key from an array PHP

Set quantity minimum, maximum and step at product level in Woocommerce

Only on Firefox "Loading failed for the <script> with source"

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

how to check version of codeigniter framework?

retrieve data from database using session

How to properly start Laravel 8 with Bootstrap & authentication

Wordpress add responsive srcset header image to theme

Session timeout in Yii2

PHPUnit (Phar) Fatal Error Only When Test Fails

Laravel eloquent update record without loading from database

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Laravel Blade checkbox not checked

how to search for a file with php

add " ? " in url via htaccess RewriteRule

About Contact Privacy policy Terms and conditions