Welcome Guest, Not a member yet? Register   Sign In
[Solution] Extending libraries: proper locations for the Classname and MY_Classname library files
#3

[eluser]aidehua[/eluser]
Thanks for clarifying.

Are you saying you advise AGAINST putting a 3rd-party library (like, in my example, Simon Maddox's Twitter.php) into ./system/libraries/?

Or, if taking the require() route, do you mean requiring the Someclass.php file from within the MY_Someclass.php file, like this?

Code:
<?php
require ('Someclass.php');

class MY_Someclass extends Someclass{

function someFunction(){

}

}

Then presumably in the controller you'd have to load the MY_ class rather than the original:

Code:
$this->load->library('MY_Someclass');


Messages In This Thread
[Solution] Extending libraries: proper locations for the Classname and MY_Classname library files - by El Forum - 11-04-2009, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB