I want to add some classes to the CodeIgniter project that are not models, views, or controllers. Most likely, they will be built in models / controllers and will be used in various ways. Where should I store these classes and what is the best way to implement them in CodeIgniter? (Or, more generally, on any MVC basis?).
EDIT: Looking through some of the codeIgniter documentation, it seems like adding objects to the helper is the way to go, right?
CI MVC , . , :
()/require() . , . CI , . , . "libs", , , CI.
/ CI- > load(). , - . CI .
. CI.
, , objects_helper.php, , , , Library, .
factory, - :
$this->factory->createUserObject( $name, $rank, $serial );
, hooks, , .require/include, , ( / ) . , , .
$this- > load- > library(); , : http://codeigniter.com/user_guide/general/creating_libraries.html
. -, , , .
Source: https://habr.com/ru/post/1735613/More articles:how to copy a sequential set of empty characters in vim - vimMoving a website to a new domain and its associated Google index error - seoMoq and attribute attribute attribute - inheritanceIs there a difference between WAS and AppFabric - .netFirefox navigation issue. excellent in IE and Chrome, random scrollbars - cssHow to protect passwords in an Android application - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1735615/trying-to-understand-bzr-repository&usg=ALkJrhgaS8dXmVvD_XwuBjCGvrw1Na7QWATransactionScope and stored procedure? - oracleWhat is the best way to manipulate huge amounts of data in SQL Server? - databaseASP.NET - using System.IO.File.Delete () to delete files from a directory inside wwwroot? - file-ioAll Articles