[eluser]Tim Jukes[/eluser]
Hi - I'm familiar with how to extend a native library class, however I'm using a custom library (in this case, Simplepie) and I need to override one of the functions on occasion. I tried this but it doesn't appear to be working:
Code:
<?php
class Simplepiecustom extends SimplePie
{
function sort_items($a, $b)
{
return strcasecmp($a->get_title(), $b->get_title());
}
}
?>
And I'm loading them as follows:
Code:
$this->load->library('simplepie');
$this->load->library('simplepiecustom');
Do I need to rename the new library MY_simplepie or something in the same way you do for the native libraries?
Thanks
Tim