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')); > >> }
-- Yves Jacolin http://yjacolin.gloobe.org ---- Stagaire Conservatoire Régional des Espaces Naturels de la région Centre http://cahiersnaturalistes.free.fr/cpnrc/ ---- - Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause puisque je suis de bonne foi? - Et qu'est-ce que ça peut faire que je sois de mauvaise foi puisque c'est pour la bonne cause. (Jacques Prévert) _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users