Welcome Guest, Not a member yet? Register   Sign In
Autoload model with a different object name
#14

[eluser]TheFuzzy0ne[/eluser]
OK, I'm having some problems with getting this implemented with libraries. The problem is that for autoloaded models, CodeIgniter just passes the array straight through, but the library loader does not, it passes each array segment in one at a time, making it difficult to differentiate between the two formats (an array of library names, and an array containing the configuration).

As it stands, I will have to override the _ci_autoloader() method to get libraries loading properly, but I'm trying to either achieve this by only overriding the _ci_autoloader method(), or by overriding both the library() and model() methods without touching the _ci_autoloader() method (if that makes sense...).

I'm not quite sure on which path to take just yet, but when I figure it out, I'll post my solution.


Messages In This Thread
Autoload model with a different object name - by El Forum - 04-07-2009, 07:05 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 08:32 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 08:38 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 08:54 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 08:59 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 09:45 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 09:50 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 09:52 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 10:10 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 10:11 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 10:52 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 11:04 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 11:19 AM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:16 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:19 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:19 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:21 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:39 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:44 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 12:52 PM
Autoload model with a different object name - by El Forum - 04-07-2009, 01:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB