CodeIgniter Forums
Documentation typo error in CLI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Documentation typo error in CLI (/showthread.php?tid=77359)



Documentation typo error in CLI - jjinkou2 - 08-21-2020

Hello
i found an error in the documentation for the CLI

hereĀ https://codeigniter.com/user_guide/cli/cli.html

this
Code:
use CodeIgniter\Controller;

class Tools extends Controller {

should be

Code:
use CodeIgniter\BaseController;

class Tools extends BaseController {



RE: Documentation typo error in CLI - jreklund - 08-21-2020

Hi, may I ask what ain't working with Controller, that you need BaseController?


RE: Documentation typo error in CLI - jjinkou2 - 09-02-2020

It didn't worked when i try the code on the documentation. I did that changes and it worked .
but now that i'm reading your answer i should have tested more.


RE: Documentation typo error in CLI - jreklund - 09-02-2020

The reason I'm wondering are that BaseController dosen't do anything, it just extends Controller.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/app/Controllers/BaseController.php