- Edited
I'm working on a plugin that needs to store a URL. Plugin: is returning a blank object with nearly no data in it.
so in my config.php file I've got the following php:
return array (
'url' => new TextboxField ( array (
'id' => 'timetrex_url',
'label' => 'Enter the url of your timetrex installation',
'configuration' => array (
'desc' => 'Enter the url of your timetrex installation',
'length'=>400,
'size'=>100 )
) ),
and in my instantiated plugin i've got this:
function getURL(){
return $this->getConfig()->get('timetrex_url');
}
It was working, but then I changed some file names during dev. I've been trying to figure it out but getConfig is returning a new instance of config with zero data in it. Anyone know why? Anyone know how to fix it?