Extending an extension

Hi,

I have written two extensions - one that handles some basic xml methods & another more specific xml api communicator.

They both extend from CApplicationComponent.

However I want to refactor them so that the more specific extension actually extends from the general xml one.

e.g.




class xml extends CApplicationComponent{}


class spcificxml extends xml{}



However this does not seem to work (it can not find the xml class) and fails on a ‘failed to open stream’ error.

Any suggestions?

Thanks,

J

Use Yii::import in the derived component:


Yii::import('application.components.xml');

<edit>

Beat Antonio by mere seconds!

</edit>

Import your parent class then extend




Yii::import('where.is.my.class.xml');


class specificXML extends xml...



Wow! jacmoe! check the times! lol

nice one guys, pretty much a draw there!

Thanks,

J