Welcome Guest, Not a member yet? Register   Sign In
Help Needed with Documentation
#15

(This post was last modified: 11-17-2021, 08:06 PM by kenjis.)

(06-24-2021, 01:50 AM)acutetech Wrote: My question was: is the online documentation up to date, or out of date? As a complete newbie I notice the documentation says "A fresh install has six directories: /app, /system, /public, /writable, /tests and possibly /docs." But my fresh installation (via Scriptaculous) is different. It has these top-level directories: /app, /public, /tests, /vendor, /writable This makes me think the documenation is not up to date, which is of some concern as I will have to rely on docs (and forum).

Thank you!

I sent a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/5347

(06-24-2021, 01:50 AM)acutetech Wrote: Also, the "First Application" tutorial Pages.php has this:

Code:
namespace App\Controllers;
use CodeIgniter\Controller;
class Pages extends Controller

which differs from the fresh installation Home.php which has this:

Code:
namespace App\Controllers;
class Home extends BaseController

Should I be concerned by these differences? Are they deliberate or do they represent out of date documentation?

I sent a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/5348

Using BaseController is recommended. Because if you want to add something to all your controller later,
you could do it with BaseController.

But if you don't use BaseController, extend Controller, your controller is completely fine.
Reply


Messages In This Thread
Help Needed with Documentation - by kilishan - 06-04-2021, 07:07 AM
RE: Help Needed with Documentation - by demyr - 06-05-2021, 07:58 AM
RE: Help Needed with Documentation - by kilishan - 06-06-2021, 08:32 PM
RE: Help Needed with Documentation - by kilishan - 06-21-2021, 08:34 AM
RE: Help Needed with Documentation - by acutetech - 06-24-2021, 01:50 AM
RE: Help Needed with Documentation - by sudeepjd - 08-20-2021, 08:44 PM
RE: Help Needed with Documentation - by kenjis - 11-17-2021, 09:28 PM
RE: Help Needed with Documentation - by kenjis - 11-17-2021, 08:01 PM
RE: Help Needed with Documentation - by sudeepjd - 07-29-2021, 02:52 AM
RE: Help Needed with Documentation - by renela - 08-20-2021, 12:02 PM
RE: Help Needed with Documentation - by kenjis - 12-01-2021, 05:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB