[Cartoweb-users] Send message to interface
Alexandre Saunier
alexandre.saunier at camptocamp.com
Fri Jun 2 12:27:54 EDT 2006
That's indeed a quite convenient solution.
Note that you may also use the CartoWeb built-in messaging system. In
your plugin simply write something like:
$this->cartoclient->addMessage('some message');
Jacolin Yves a wrote:
> thank you Francois. I will test it next week !
>
> Y.
> Le Vendredi 2 Juin 2006 17:57, vous avez écrit :
>
>>1.use the renderForm to call your plugins template
>>2.put php variable into a smarty variable to display in html
>>3.put the result of your plugins template in the cartoclient template.
>>
>>
>> /**
>> * @see GuiProvider::renderForm()
>> */
>> public function renderForm(Smarty $template) {
>> $smarty = new Smarty_Plugin($this->getCartoclient(), $this);
>> $smarty->assign('varToPutInYourPluginTemplate.tpl',
>>$this->ogcLayers);
>> $template->assign('varToPutInCartoclient.tpl',
>>$smarty->fetch('ogcLayers.tpl'));
>> }
>
>
More information about the Cartoweb-users
mailing list