Welcome Guest, Not a member yet? Register   Sign In
Accessing models from custom library
#9

[eluser]jedd[/eluser]
[quote author="stef25" date="1255284647"]
I'm not always sure what the function is I'm looking for though, so that's why I prefer to have a file with say 500 lines I can quickly scroll through.
[/quote]

PHPdocumentor or Doxygen might be worth having a look at, then - makes life easier while developing, as well as being an easy way of providing decent maintenance docs, but might not be as fast as scanning through a controller.

Quote:I could change the URL's. Right now i have example.com/client/product/update. Client is the file with 2000 lines and I would have been better of just having a controller called Product (and the same for factory, user and all the other 2nd segments). Problem is I don't really have the courage to start changing URL's with deadlines and all, even though it probably would be quite painless.

$ git branch controller_split
... then pick one component to split up, relocate your views into a new sub-directory that matches the new controller .. maybe an hour or two to determine how much work would be involved in doing a few. You're right, though, that deadline-pending moments are not the best to experiment.

Quote:No, but I'll give another shot and get back to you. Yes I did check the manual and tried $CI =& get_instance();

Oh, do you remember what kind of errors you were getting? Most of the time it's people subsequently using $this-> rather than $CI-> , or creating something weird like $this->CI and then getting confused when they look at references in the CI manual.


Messages In This Thread
Accessing models from custom library - by El Forum - 10-10-2009, 07:36 AM
Accessing models from custom library - by El Forum - 10-10-2009, 08:39 AM
Accessing models from custom library - by El Forum - 10-10-2009, 10:22 AM
Accessing models from custom library - by El Forum - 10-10-2009, 06:00 PM
Accessing models from custom library - by El Forum - 10-10-2009, 06:28 PM
Accessing models from custom library - by El Forum - 10-11-2009, 02:37 AM
Accessing models from custom library - by El Forum - 10-11-2009, 06:55 AM
Accessing models from custom library - by El Forum - 10-11-2009, 07:10 AM
Accessing models from custom library - by El Forum - 10-11-2009, 07:27 AM
Accessing models from custom library - by El Forum - 10-11-2009, 07:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB