Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I recommend to avoid "cracking" CodeIgniter core files. Better use its native extending possibilities and try to fit into them.</p> <p>The same rule I would recommend for any PHP library / CMS. This rule has few reasons: - ability to quiclky upgrade without takint into account thousands of notes where and how was cracked in core files; - portability; - possibility to share your code - eg, this will be usable by both you and your friends in case of need, and it will help them to keep their library up to date, the same as you.</p> <p>In other words, this is much more professional and it pays to you in the future by usability, portability and by update application possibility.</p> <p>Regarding your personal question...</p> <p>As for me, there is nothing bad to create your own library with everything you need to extend native CodeIgniter Controller, then load this library in Controller's constructor and you are done. The only thing to make better usability is to give short name to your library.</p> <p>This way you can even divide what you need in different pieces and put into separate libraries: WebFeatures AdminFeatures etc.</p> <p>Then you just load needed libraries in your controller's constructor and you are done.</p> <p>P.S. I know that proposed way does not fit into "right" OOP concept, but in the same time you must never forget about the integrity of the libraries used.</p> <p>Everything above is just one more view of mine 7-years experience in professional web development, so I hope it will be helpful if not to follow, then at least to take into account.</p> <p>Regards, Anton</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload