Author |
Message |
Topic: nested section and associative arrays |
HEMOglobina
Replies: 2
Views: 4916
|
Forum: General Posted: Mon Jun 11, 2007 5:19 pm Subject: nested section and associative arrays |
I have an array like this:
Array
(
[camper] => Array
(
[2] => Array
(
[id] => 2
... |
Topic: HTML_QuickForm -> Multiple File Upload -> Validation |
HEMOglobina
Replies: 0
Views: 5494
|
Forum: General Posted: Tue Dec 05, 2006 7:14 pm Subject: HTML_QuickForm -> Multiple File Upload -> Validation |
I've been using HTML_QuickForm and Smarty for not very long, but it has been working great so far.
Now I faced a situation that I don't know how to solve and I hope you are able to help me.
Here i ... |
Topic: variables inside a config file. Is that possible? |
HEMOglobina
Replies: 1
Views: 3906
|
Forum: General Posted: Thu Sep 15, 2005 6:05 pm Subject: variables inside a config file. Is that possible? |
Suppose I have the following inside my config file:
user_msg = "the user named: {$user_name} is online."
In my PHP page I would have this:
smarty->assign('use ... |
Topic: [Paginate]: SmartyPaginate::getCurrentIndex() returns -1 |
HEMOglobina
Replies: 3
Views: 15519
|
Forum: Add-ons Posted: Tue Sep 13, 2005 4:43 pm Subject: [Paginate]: SmartyPaginate::getCurrentIndex() returns -1 |
Hello mohrt.
Yes, I have sessions enabled. Taken from my phpinfo(): "Session Support enabled"
I also noticed that after I call SmartyPaginate::reset(), everything works correctly. I mean, if I do ... |
Topic: [Paginate]: SmartyPaginate::getCurrentIndex() returns -1 |
HEMOglobina
Replies: 3
Views: 15519
|
Forum: Add-ons Posted: Tue Sep 13, 2005 1:07 am Subject: [Paginate]: SmartyPaginate::getCurrentIndex() returns -1 |
This is my first time using smartyPaginate and I'm having some trouble because it is returning -1 when I call SmartyPaginate::getCurrentIndex().
This is a snippet from my query:
SmartyPaginate: ... |
Topic: problems with escape and form textareas |
HEMOglobina
Replies: 4
Views: 8288
|
Forum: General Posted: Tue Sep 06, 2005 12:43 pm Subject: problems with escape and form textareas |
Thank you Drakla, but the thing is that my text is not coming from a DB... Here is how this is working:
The user types a message in the textarea. After he submits the form, I run my form checking p ... |
Topic: problems with escape and form textareas |
HEMOglobina
Replies: 4
Views: 8288
|
Forum: General Posted: Tue Sep 06, 2005 12:51 am Subject: problems with escape and form textareas |
suppose I have the following code:
<form ...>
<textarea name="message">{$post.message}</textarea>
</form>
This is called after the validation of my ... |
Topic: question regarding guestbook smarty sample app and posting |
HEMOglobina
Replies: 2
Views: 5619
|
Forum: General Posted: Wed Aug 31, 2005 10:45 pm Subject: question regarding guestbook smarty sample app and posting |
Thank you mohrt! So, my form could submit to something like:
{$smarty.server.SCRIPT_NAME}?action=sendForm
suppose that {$smarty.server.SCRIPT_NAME} = index.php
Inside this file I would check if ... |
Topic: question regarding guestbook smarty sample app and posting |
HEMOglobina
Replies: 2
Views: 5619
|
Forum: General Posted: Wed Aug 31, 2005 7:11 pm Subject: question regarding guestbook smarty sample app and posting |
I'm building a smarty based website and I'm using the [url=http://smarty.php.net/sampleapp/sampleapp_p1.php]guestbook sample application as a reference.
While using it I noticed that if you submit a ... |
Topic: section and associative arrays looping problem |
HEMOglobina
Replies: 1
Views: 4120
|
Forum: General Posted: Tue Aug 30, 2005 9:35 pm Subject: section and associative arrays looping problem |
After an afternoon trying, I finally got this to work... It was pretty simple actually and now I'm felling really dumb
Here is the solution in case someone also needs this:
{section name=i ... |
Topic: section and associative arrays looping problem |
HEMOglobina
Replies: 1
Views: 4120
|
Forum: General Posted: Tue Aug 30, 2005 9:20 pm Subject: section and associative arrays looping problem |
Hello, I have an associative array (generated from a DB query). Let me explain how it is supposed to work. I have a category and inside each category I have a lot of products. I would like to display ... |
|