[Cartoweb-users] Send message to interface
Pierre GIRAUD
pierre.giraud at camptocamp.com
Mon Jun 5 03:14:44 EDT 2006
You will probably still miss something.
You will surely need to implement ServerCaller on client, and
ClientResponder (handleDrawing for example) on server to let them
communicate (i.e., to transmit informations from one to the other).
Regards
Pierre
Jacolin Yves wrote:
>Hi,
>both are intersting to me !
>Thank you and good week end.
>
>Y.
>Le Vendredi 2 Juin 2006 18:27, Alexandre Saunier a écrit :
>
>
>>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'));
>>>> }
>>>>
>>>>
>
>
>
--
_________________________________________________________
Pierre GIRAUD
Géomaticien, Analyste
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com
More information about the Cartoweb-users
mailing list