Welcome Guest, Not a member yet? Register   Sign In
Extend library with own class
#2

[eluser]imn.codeartist[/eluser]
There are two ways you can create custom library class

1) create a class and place at system\libraries

if you are placing your class here then make sure your Class has prefix of CI_

for example:

Code:
class CI_Payment
{

}


2) create a class and place at system\application\libraries

if you are placing your class here then make sure your filename name has following prefix MY_

for example:

MY_library.php

Code:
class AnyClassName
{

}

now you can use your custom library and extend them


Messages In This Thread
Extend library with own class - by El Forum - 10-12-2009, 03:31 AM
Extend library with own class - by El Forum - 10-12-2009, 03:50 AM
Extend library with own class - by El Forum - 10-12-2009, 03:55 AM
Extend library with own class - by El Forum - 10-12-2009, 04:04 AM
Extend library with own class - by El Forum - 10-12-2009, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB