• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IDEA: Default core class extensions

#1
Hi all! So after this thread we decided to create BaseController, an extended controller shipping by default in /app/Controllers (see the pull request). I'm now working on my next library which includes extending the Model and Entity classes, which got me thinking...  Should we be providing default extensions in /app for the common core classes? It seems a win-win for everyone:
  • the new/casual user won't extend anyways, it won't make a difference
  • the intermediate user (or one needing to extend later in development) will appreciate having it ready and their classes already using the /app versions
  • the power user will implement the provided classes, make their own extended versions, or bypass it and extend the /system version if they are worried about the extra parent class
Controller, Model, and Entity are the ones that stick out to me, but maybe also Filters? others?
Curious everyone's thoughts on this...
Reply

#2
No objections, splendid! Smile
Since it won’t be much work I might just go ahead and submit a pull request and we can discuss it there.
Reply

#3
Possibly make Url Segments available?
CI4 Develop Site - progressing nicely - Thank you Smile
https://johns-jokes.cf/pictures

Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.