• 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

If action is on a different page do I use fwrite function

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

correct PHP headers for pdf file download

PHP my timezone is no setting up in PHP.ini File in xampp

Laravel views are showing from cache on one server but works fine on other server

Correctly determine if date string is a valid date in that format

Call to undefined function openssl_decrypt

How do I Post to .txt document before form submits

Laravel update hasMany relationship using saveMany

get attribute from class not working php 7

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

HTML and PHP in one file

How to identify whether webp image is static or animated?

Telegram bot doesn't answer

Dynamic dropdown Ajax PHP request

About Contact Privacy policy Terms and conditions