Welcome Guest, Not a member yet? Register   Sign In
Call a controller from a library
#4

Quote:With a code like this there is no way to make a library...

Libraries sound cool but much of the time Models are the better solution.
when you are first developing start by just working in the controller. its faster to get something working that way. then refactor the code into your model(s).

Use application/config/autoload.php right away so you don't have to wonder if some library or helper has been loaded or not, like
PHP Code:
$autoload['libraries'] = array('database''form_validation','session','table''email'); 
Reply


Messages In This Thread
Call a controller from a library - by Psygnosis - 01-29-2016, 03:38 AM
RE: Call a controller from a library - by Narf - 01-29-2016, 03:45 AM
RE: Call a controller from a library - by cartalot - 01-29-2016, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB