Hey guys,
I was testing some of my extension code and ran into a problem. How do you reference images for a module/extension in the CP?
So far I have tried:
'" . $PREFS->ini('site_url') . $PREFS->ini('system_folder') . "/extensions/lg_twitter_ext/bg.png'
Fails when you browse to a secondary msm site
'/" . $PREFS->ini('system_folder') . "/extensions/lg_twitter_ext/bg.png'
Fails when the user has EE installed in a sub folder
The only reliable way seems to be throwing all the files in a new folder in the themes directory as the user has to type this in manually.
I have seen Solspace call another CP page that returns the JS/CSS but this seems like a bit of overkill.
Any ideas?
