Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 35 matches
Smarty Forum Index
Author Message
  Topic: Unsetting a session variabile in a template file
Psyche

Replies: 4
Views: 9687

PostForum: Smarty 3   Posted: Thu Jun 17, 2010 1:53 pm   Subject: Unsetting a session variabile in a template file
Nope, doesn't work. I will consider writing a plugin.
  Topic: Unsetting a session variabile in a template file
Psyche

Replies: 4
Views: 9687

PostForum: Smarty 3   Posted: Thu Jun 17, 2010 1:03 pm   Subject: Unsetting a session variabile in a template file
No ideea guys?
  Topic: Unsetting a session variabile in a template file
Psyche

Replies: 4
Views: 9687

PostForum: Smarty 3   Posted: Wed Jun 16, 2010 10:19 pm   Subject: Unsetting a session variabile in a template file
Hello,

Is it possible to unset a session variable in a template file?

Thank you.
  Topic: Problems with a for loop in Smarty 3 RC1
Psyche

Replies: 3
Views: 7441

PostForum: Smarty 3   Posted: Sat May 22, 2010 7:34 pm   Subject: Problems with a for loop in Smarty 3 RC1
Yes, I understand the error, but I have to increment both variables.
  Topic: Problems with a for loop in Smarty 3 RC1
Psyche

Replies: 3
Views: 7441

PostForum: Smarty 3   Posted: Sat May 22, 2010 5:39 pm   Subject: Problems with a for loop in Smarty 3 RC1
Hello guys,

I would like to know if there any way of writing the following for loop in Smarty:

for ($inner = 0; $inner < 3 && $outer < $count; $inner++, $outer++) { &# ...
  Topic: Get output from a recursive function
Psyche

Replies: 2
Views: 4523

PostForum: General   Posted: Sun Nov 22, 2009 8:39 pm   Subject: Get output from a recursive function
Thank you very much ChrisFah.
  Topic: Get output from a recursive function
Psyche

Replies: 2
Views: 4523

PostForum: General   Posted: Sat Nov 21, 2009 8:02 pm   Subject: Get output from a recursive function
Hello guys,

I have the following recursive function:


function get_comments($parent, $level) {
$sql = "SELECT * FROM `comments` \n"
. "LEFT JOIN `users` ON & ...
  Topic: Looping through $_COOKIE
Psyche

Replies: 2
Views: 5612

PostForum: General   Posted: Sat Mar 14, 2009 6:13 pm   Subject: Looping through $_COOKIE
Thank you.
  Topic: Looping through $_COOKIE
Psyche

Replies: 2
Views: 5612

PostForum: General   Posted: Sat Mar 14, 2009 4:52 pm   Subject: Looping through $_COOKIE
Hello guys,

Suppose I'm setting three cookies in PHP with a code like this:


setcookie("cookie[three]", "cookiethree");
setcookie("cookie[two&# ...
  Topic: Displaying an associative array
Psyche

Replies: 3
Views: 5510

PostForum: General   Posted: Fri Feb 27, 2009 7:15 pm   Subject: Displaying an associative array
Hello guys,
I have some trouble displaying this associative array:


Array
(
[0] => Array
(
[room] => Array
(
...
  Topic: Calendar with events highlight
Psyche

Replies: 3
Views: 8597

PostForum: General   Posted: Sun Mar 30, 2008 1:39 pm   Subject: Calendar with events highlight
Hey! Thank you for this post. I will try it today and see how it works.

Later edit: Works like a charm, thanks!
  Topic: Calendar with events highlight
Psyche

Replies: 3
Views: 8597

PostForum: General   Posted: Thu Mar 20, 2008 4:00 pm   Subject: Calendar with events highlight
Hello,

For the project I'm currently working on I have to display a calendar and to highlight the dates with available events. The events are stored in a database and the event date is in YMD forma ...
  Topic: Using foreach with explode
Psyche

Replies: 7
Views: 18425

PostForum: General   Posted: Wed Jul 18, 2007 11:00 am   Subject: Using foreach with explode

{assign var=analizeFirstTemp value=";"|explode:$p[p].tip_analiza}
{foreach item=nrAnaliza from=$analizeFirstTemp name=nrAnaliza}
{assign var=an ...
  Topic: Using foreach with explode
Psyche

Replies: 7
Views: 18425

PostForum: General   Posted: Wed Jul 18, 2007 10:32 am   Subject: Using foreach with explode
Because that row comes with another rows as a result of a query.

Using Smarty's foreach and explode I would like to build links like:
http://www.mysite.com/page.php?id=3&date=2007-07-17
http: ...
  Topic: Using foreach with explode
Psyche

Replies: 7
Views: 18425

PostForum: General   Posted: Wed Jul 18, 2007 9:14 am   Subject: Using foreach with explode
I see... But I have to do it with Smarty only.
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP