Welcome Guest, Not a member yet? Register   Sign In
Custom library extending custom libraries
#1

[eluser]Spockz[/eluser]
I'm trying to get my custom libraries to extend eachother. However if I extend a custom classfile I get a 'class not found' error in the file 'my_library.php'. I can resolve this by including a 'include' command. However this is not a nice solution, as I'd rather use the autoloader.

I've got the following code:
Code:
class My_Controller extends Controller{
  function __construct() {
    $this->load->library('my_library');
  }
}

Now i've the file 'my_library.php'. Placed in the application/libraries directory.
Code:
class My_Library extends My_Parentlibrary {
  ...
}

The file 'my_parentlibrary.php' contains the class:
Code:
class My_Parentlibrary {
  ...
}

Is there anyone familiar with this problem? Or knows a solution to this?


Messages In This Thread
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:36 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:40 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:42 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:43 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:46 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 05:52 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 06:21 AM
Custom library extending custom libraries - by El Forum - 03-31-2008, 07:31 AM
Custom library extending custom libraries - by El Forum - 05-03-2008, 02:12 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 02:37 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 02:42 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 02:48 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 02:54 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 03:02 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 03:45 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 03:58 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 04:06 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 04:13 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 04:20 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 04:39 PM
Custom library extending custom libraries - by El Forum - 05-03-2008, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB