Welcome Guest, Not a member yet? Register   Sign In
General library question
#14

[eluser]tonanbarbarian[/eluser]
Ok here are a few of my thoughts on this

1. I have nothing wrong with using your own coding structure, but if I wanted to release my code I would make it fit more with CI. That doesn't exclude what you are doing though, there are ways around it

2. Having fiddled with the loader class and attempting to allow loading libraries from sub folders i fould the easiest way to do things is create a seperate library that loads my sub libraries

so for example you might create a factory library that existed in the application/libraries folder like all good libraries do, then use the factory library to load the files necessary from the sub folders
Code:
$this->load->library('factory');
$this->factory->load('cat');
the factory load might be able to detect that cat needs animal and load it do
I have used something similar in a code library I hope to release one day.

3. Finally I know this will started a heated debate, but you are using PHP5+ specific code by having abstract classes etc. If you release this code library to someone else it will not work on PHP 4 like the rest of the CI core does. If you never plan to release it then this is not an issue.


Messages In This Thread
General library question - by El Forum - 02-05-2008, 05:11 PM
General library question - by El Forum - 02-05-2008, 08:31 PM
General library question - by El Forum - 02-05-2008, 09:03 PM
General library question - by El Forum - 02-05-2008, 10:02 PM
General library question - by El Forum - 02-05-2008, 10:58 PM
General library question - by El Forum - 02-06-2008, 09:41 AM
General library question - by El Forum - 02-06-2008, 10:40 AM
General library question - by El Forum - 02-06-2008, 11:13 AM
General library question - by El Forum - 02-06-2008, 11:26 AM
General library question - by El Forum - 02-06-2008, 11:37 AM
General library question - by El Forum - 02-06-2008, 12:00 PM
General library question - by El Forum - 02-06-2008, 12:05 PM
General library question - by El Forum - 02-06-2008, 05:08 PM
General library question - by El Forum - 02-06-2008, 05:25 PM
General library question - by El Forum - 02-06-2008, 05:26 PM
General library question - by El Forum - 02-06-2008, 11:14 PM
General library question - by El Forum - 02-07-2008, 07:06 PM
General library question - by El Forum - 02-07-2008, 07:27 PM
General library question - by El Forum - 02-10-2008, 11:24 AM
General library question - by El Forum - 02-10-2008, 10:31 PM
General library question - by El Forum - 02-10-2008, 10:34 PM
General library question - by El Forum - 02-11-2008, 08:52 AM
General library question - by El Forum - 02-11-2008, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB