[Cartoweb-users] Plugin development issue: to which path do thetemplate (*.tpl) file points?

Max Ueda mhanzo at yahoo.com
Thu Jan 11 06:43:44 EST 2007


Hi Oliver, and thank you for replying.

Yes, I've forgotten to close the <form> tag, I've
corrected this now, but it still doesn't seem to work
(it doesn't call the action.php file, that is
actually, a file located at the same directory of the
ClientMyRecenterPlugin.php, and basically, it is
supposed to get the $_REQUEST["campo"] of the form
submit action ).

When the submit button is clicked, should the file
called at the "action" tag be located at the
./plugin/pluginName/client/ directory?

Thanks!

Max H. Ueda 



--- Oliver Christen <oliver.christen at camptocamp.com>
wrote:

> Hi max
> 
> when your page is rendered, whats the source code of
> your page ? is it 
> correct ?
> i dont see it in your exemple below but I suppose
> you closed the </form> ?
> maybe try with a <input type="button" value="OK" 
> onclic="this.form.submit();">
> 
> Oliver
> 
> > Hi,
> >
> > I'm designing a plugin that has a radio button at
> the
> > template (*.tpl file).
> >
> > So far, I have not found any problems to make the
> > plugin to write the data to the template file.
> > Basically, it retrieves rows from a SQL database,
> and
> > throws the matches in a radio button list
> (according
> > to the template).
> >
> > So, I did use the following Smarty and html tags
> to do
> > so at the template file:
> >
> > <form method="POST" action="action.php">
> >     {html_radios name='campo' values=$cust_names
> >         output=$cust_names  separator='<br />'}
> > <input type="submit" value="OK">
> >
> > ($cust_names being both input and output values at
> the
> > same time. )
> >
> > The file action.php should perform the action
> > according to the choice done with the radio
> buttons,
> > by receiving the $cust_manes values (actually, it
> > should use the data thrown and chosen at the radio
> > button list, for example, given a string, perform
> a
> > recentering, or calling a plugin, say, Outline
> Draw
> > Points) , but nothing seems to happen when I click
> the
> > "OK".
> >
> > To which path does the tpl file point when the tag
> > "action=somefile.php" is used? When I tried this
> with
> > Smarty, it points directly to the path where the
> > 'main' or 'calling' *.php file is located.
> >
> > I also noticed that some plugins has many php
> files at
> > the ./projectName/plugins/pluginName/client/ path.
> Are
> > all those files interacting directly with the
> template
> > files located at the
> > ./projectName/plugins/pluginName/templates/ path,
> just
> > like Smarty standard installation does?
> >
> > Thanks in advance,
> >
> > Max Ueda
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Do you Yahoo!?
> > Everyone is raving about the all-new Yahoo! Mail
> beta.
> > http://new.mail.yahoo.com
> > _______________________________________________
> > Cartoweb-users mailing list
> > Cartoweb-users at lists.maptools.org
> >
>
http://lists.maptools.org/mailman/listinfo/cartoweb-users
> > 
> 
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


More information about the Cartoweb-users mailing list