Author |
Message |
Topic: SmartyValidate 2.9 released |
IGonza
Replies: 15
Views: 129349
|
Forum: Add-ons Posted: Mon Feb 02, 2009 2:20 pm Subject: SmartyValidate 2.9 released |
Hi,
there are 2 validators :
function smarty_validate_criteria_isNumber($value, $empty, &$params, &$formvars) {
if(strlen($value) == 0)
re ... |
Topic: SmartyValidate validator. |
IGonza
Replies: 2
Views: 11422
|
Forum: Add-ons Posted: Thu Aug 28, 2008 5:54 pm Subject: SmartyValidate validator. |
I found that $_SESSION contains all validators results.
So question closed. |
Topic: SmartyValidate validator. |
IGonza
Replies: 2
Views: 11422
|
Forum: Add-ons Posted: Fri Aug 22, 2008 5:02 pm Subject: SmartyValidate validator. |
Hello,
If SmartyValidate :: is_valid($data, 'form_name')
returns 0 then it means one of validators returns 0.
Is there anyway to know what validator failed?
Thanks,
Igor. |
Topic: SmartyValidate 2.9 released |
IGonza
Replies: 15
Views: 129349
|
Forum: Add-ons Posted: Tue Sep 04, 2007 4:54 pm Subject: SmartyValidate 2.9 released |
I mean
preg_match('!^http(s)?://[\w-]+\.?[\w-]+(\S+)?$!i', $value);
returns 1 for http://www .
I use
return preg_match("/^https?: ... |
Topic: SmartyValidate 2.9 released |
IGonza
Replies: 15
Views: 129349
|
Forum: Add-ons Posted: Tue Sep 04, 2007 10:08 am Subject: SmartyValidate 2.9 released |
function smarty_validate_criteria_isURL($value, $empty, &$params, &$formvars) {
if(strlen($value) == 0)
return $empty;
return preg_mat ... |
Topic: SmartyPaginate 1.6 released |
IGonza
Replies: 56
Views: 435240
|
Forum: Add-ons Posted: Tue Jun 12, 2007 7:51 am Subject: SmartyPaginate 1.6 released |
Ok. But you source of example http://www.phpinsider.com/php/code/SmartyPaginate/demo/?source=pretty
has not that function also, but demo's working with '4' 'pagelimit'. |
Topic: SmartyPaginate 1.6 released |
IGonza
Replies: 56
Views: 435240
|
Forum: Add-ons Posted: Mon Jun 11, 2007 9:28 pm Subject: SmartyPaginate 1.6 released |
yes, I saw it. I'm about your demo example.
index.php
---------
session_start();
require('Smarty.class.php');
require('SmartyPaginate.class.php');
... |
Topic: SmartyPaginate 1.6 released |
IGonza
Replies: 56
Views: 435240
|
Forum: Add-ons Posted: Mon Jun 11, 2007 7:36 pm Subject: SmartyPaginate 1.6 released |
Ok, I found that setPageLimit() does it.
You sample code at http://www.phpinsider.com/php/code/SmartyPaginate/ doesn't contain setPageLimit() but demo code uses it. I would add that function to sam ... |
Topic: SmartyPaginate 1.6 released |
IGonza
Replies: 56
Views: 435240
|
Forum: Add-ons Posted: Mon Jun 11, 2007 7:16 pm Subject: SmartyPaginate 1.6 released |
Hello,
I have a small question. As I see in your demo version (http://www.phpinsider.com/php/code/SmartyPaginate/demo/) the middle part shows just 4 items. For example, [41-50][51-60][61-70][71-80] ... |
Topic: [SmartyValidate] Session data |
IGonza
Replies: 9
Views: 20316
|
Forum: Add-ons Posted: Fri May 25, 2007 7:01 pm Subject: [SmartyValidate] Session data |
Thanks for your advice. |
Topic: [SmartyValidate] Session data |
IGonza
Replies: 9
Views: 20316
|
Forum: Add-ons Posted: Fri May 25, 2007 6:34 pm Subject: [SmartyValidate] Session data |
True. I cannot use disconnect... |
Topic: [SmartyValidate] Session data |
IGonza
Replies: 9
Views: 20316
|
Forum: Add-ons Posted: Fri May 25, 2007 6:31 pm Subject: [SmartyValidate] Session data |
And where have I add that code?
I have just one idea... add it in the top of each script file (or in init.php or config.php or anything similar).
Lets wait what mohrt will say |
Topic: [SmartyValidate] Session data |
IGonza
Replies: 9
Views: 20316
|
Forum: Add-ons Posted: Fri May 25, 2007 5:49 pm Subject: [SmartyValidate] Session data |
Hello again.
Lets see on the example code:
if(empty($_POST)) {
SmartyValidate::connect($smarty, true);
SmartyValidate::register ... |
Topic: [SmartyValidate] Session data |
IGonza
Replies: 9
Views: 20316
|
Forum: Add-ons Posted: Thu May 24, 2007 7:41 am Subject: [SmartyValidate] Session data |
I have a question about sessions in SmartyValidate class.
When I open the page with the form, the class registers validators. Then, for example, I go to another page on this site and $_SESSION still ... |
Topic: SmartyValidate: second validation skipped and returns error |
IGonza
Replies: 5
Views: 18338
|
Forum: Add-ons Posted: Tue Apr 17, 2007 7:07 pm Subject: SmartyValidate: second validation skipped and returns error |
Yes, I got it already.
Seems the solution from mckneisler is quite good. |
|