Welcome Guest, Not a member yet? Register   Sign In
BaseController and controller documentation mismatch
#1

CodeIgniter's official distribution provides the BaseController class. The class name has two uppercase characters. Although
 in CodeIgniter's documentation is written (section controllers and Routing - Controllers):


Quote:!IMPORTANT

Controller class names MUST start with an uppercase letter and ONLY the first character can be uppercase.


Furthermore is mentioned that this example is not valid:


Quote:<?php namespace App\Controllers;

use CodeIgniter\Controller;

class HelloWorld extends Controller {

}
Actually BaseController has been exactly implemented as what is described to be invalid. Though it seems to be that BaseController works but not base_controller or anything similar. Huh


Who is right?
Reply


Messages In This Thread
BaseController and controller documentation mismatch - by HardyW - 04-15-2020, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB