/codeigniter3-namespaced-controller

CodeIgniter3 Namespaced Controller

Primary LanguageHTMLMIT LicenseMIT

CodeIgniter3 Namespaced Controller

This repository provides namespaced controller to CodeIgniter 3.0.

Requirements

  • PHP 5.4.0 or later

Including

  • CodeIgniter 3.0.6
  • ci-phpunit-test v0.12.2-dev

Usage

You can configure namespace for controllers with $config['controller_namespace'] in application/config/config.php. The default namespace is app\controllers.

If you have app\controllers\abc\def\Ghi controller, the path of the file must be application/controllers/abc/def/Ghi.php.

  • All sub folder names must be lower case.
  • All sub namespace names must be the exact same case as folder names.

Related Projects for CodeIgniter 3.0