• 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

Require a class from another class - php

How to make dot match newline characters using regular expressions

Laravel PackageManifest.php: Undefined index: name

Using spatie/media-library, how to rename a collection of uploaded files?

Unable to match results of php hash_hmac() and coldfusion hmac()

PHP DOTENV unable to load env vars

Is there a way to use Foundry Model for Authentification inside Functional Tests?

xdebug 3 not working in ubuntu 20.04 with docker

MISSING UPDATES FOR: MEDIA Drupal 9

Creating a config file in PHP

Call to undefined function openssl_decrypt

Laravel Passport - Not able to get token string in response?

WooCommerce: Add/display Product or Variation custom field everywhere

How in Laravel run JavaScript code stored in php variable?

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

About Contact Privacy policy Terms and conditions