|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dab Smarty Rookie
Joined: 17 Aug 2003 Posts: 13
|
Posted: Thu Feb 05, 2004 10:42 pm Post subject: Formsess instalation problems |
|
|
Hi
I'm having problems installing the plugin Formsess. I've looked through the forum and it seems I'm the only one that is having difficulties installing it.
The fs tags are parsed just fine but I'm not getting any javascript output.
And it only works when I use the Smarty_formsess.class.php example class. When I use the other, Smarty_fs.class.php I get this error:
Fatal error: Cannot instantiate non-existent class: fs_filter in c:\apache\Smarty\Formsess\smarty_plugins\prefilter.fs.php on line 11
I couln't find anything about that I have to enable the client side javascript check to get javascript output.
Another weird thing is that it parses this template code:
Code: |
<fs:select name="select_field">
<fs:option value="1">1</fs:option>
<fs:option value="1">2</fs:option>
<fs:option value="1">3</fs:option>
</fs:select>
|
as:
Code: |
<select name="select_field">
<option label="1" value="1">1</option>
<option label="2" value="1">2</option>
<option label="3" value="1">3</option>
</select>
|
I don't know if it's relevant but notice the double space between select and name. |
|
Back to top |
|
katana Smarty Rookie
Joined: 17 Apr 2003 Posts: 26 Location: France
|
Posted: Wed Feb 25, 2004 10:27 pm Post subject: |
|
|
Quote: | And it only works when I use the Smarty_formsess.class.php example class. When I use the other, Smarty_fs.class.php I get this error: |
Yes, since Smarty_formsess performs a few init steps, like loading the prefilter class, and so on. It's not mandatory, but the steps it performs are mandatory.
For JS validation, do you have <fs:validate> tags in your template ?
Sorry about the delay, but I'm not monitoring the smarty forums, for formsess related support, you should use the formsess mailing lists or the forums at http://www.sourceforge.net/projects/formsess/ |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|