Add own asset

Hi folks


I wanna add my own asset into MySource Matrix because this is the only way let me add php code into my site.



I try the tutorial on the official website, it works. After that I wanna write my own asset.



Did u guys know could I create an asset without any "parent type" or "SQ_CORE_PACKAGE_PATH" ,plz?



Because this is just simple asset and it don't need inherit any parents class.





cheers

[quote]
Hi folks



I wanna add my own asset into MySource Matrix because this is the only way let me add php code into my site.



I try the tutorial on the official website, it works. After that I wanna write my own asset.



Did u guys know could I create an asset without any "parent type" or "SQ_CORE_PACKAGE_PATH" ,plz?



Because this is just simple asset and it don't need inherit any parents class.





cheers

[/quote]



You do need a parent, usually if you don't want it publically available extend from Asset or if you want it publically available (ie. have a web path) extend from page.



HTH

Thanks, it is much helpful.
:lol: