Welcome Guest, Not a member yet? Register   Sign In
General Load->Library Question
#1

[eluser]The Wizard[/eluser]
Hello Friends Smile


ive a question about the general workflow of load->library function.
In the XAJAX and CodeIgniter webpage and in the Wiki for it,
here http://codeigniter.com/wiki/XAJAX/ to be exact, ive seen that
the XAJAX files are just downloaded, renamed and then put into
CodeIgniter libraries folder and then are loaded with a line like:

$this->load->library('xajax');

and then should be avaible for using it.

My question is:
is any other library accessible like this?
are there any special changes made to a lib that
we want to use like this?

is there anything special we dont know about?

thanks in advance Smile
#2

[eluser]Colin Williams[/eluser]
In my experience, no, there usually isn't a whole lot you have to do to turn a good ol' fashioned PHP Class into a CI library (because CI libraries are just good ol' fashioned PHP Classes!)

The only thing special about CI Libraries is the way they're loaded and instantiated by the Loader class. That and the convention for extending and overriding core Classes.
#3

[eluser]The Wizard[/eluser]
ah... i see Smile

your template library looks promising,
why not integrate it directly into CI ?

IMHO CI really NEEDS a new template system.
#4

[eluser]Colin Williams[/eluser]
Thanks herrkaleun. My goal with Template was to have an alternative interface to Views. I wouldn't call it a templating system myself, but if you were going to write an app that was going to have a templating system, I think Template could be considered for the basis of it.

Quote:IMHO CI really NEEDS a new template system.

I've got a different slant on that. I think CMSs or blog applications need templating systems, but not CI, an "application development framework." Kinda the same reason I don't think CI needs core User authentication/access control capabilities. It already has the stuff needed to build these things.
#5

[eluser]The Wizard[/eluser]
yes and no but,
at least




Theme © iAndrew 2016 - Forum software by © MyBB