I have the following code in file called AbstractClass.php
in the libraries
folder
abstract class AbstractClass {
abstract prote
I have found a simple way to use an abstract classes in Codeigniter. Just follow these steps. Go to libraries in system folder
System -> libraries -> lib.php
abstract class B
{
public function lib1()
{
echo "This is library 1";
}
public function lib2()
{
echo "This is library 1";
}
}
class CI_lib extends B
{
public function libs(){
$this->lib1();
}
}
Then call that lib from Controller.