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 49 matches
Smarty Forum Index
Author Message
  Topic: 'Previous' | 'Next' Pagination plugin
tk

Replies: 13
Views: 61932

PostForum: Plugins   Posted: Tue Nov 16, 2004 2:47 pm   Subject: 'Previous' | 'Next' Pagination plugin
Not checked this for a long time.. but just FWIW boots.. _if_ you ever decide to include more plugins in the core distribution and fancy adding this.. I can't speak for the mods to it I didn't make.. ...
  Topic: Online Manual Bug
tk

Replies: 6
Views: 10646

PostForum: Bugs   Posted: Fri Jul 09, 2004 11:58 am   Subject: Online Manual Bug
Oh yeah! great info.

Jesus christ... what's happening on this forum =(
  Topic: Paging function or tecnique in smarty?
tk

Replies: 3
Views: 8265

PostForum: General   Posted: Fri Jul 09, 2004 11:53 am   Subject: Re: Paging function or tecnique in smarty?
Has anyone seen a thread about paging tecnique in the smarty forum?

ie: display 10 database querry results per page and give the page numbers, back, and next links at the bottom?

All the PHP scr ...
  Topic: how to view session vars
tk

Replies: 4
Views: 7647

PostForum: General   Posted: Fri Jul 09, 2004 11:49 am   Subject: how to view session vars
Hi LH..

I haven't tried this.. but:

{$smarty.session[5]}

might work.. much in the same way as the {section} code works =)



Regards,

tk
  Topic: while or for
tk

Replies: 9
Views: 11955

PostForum: General   Posted: Thu Jul 08, 2004 11:40 am   Subject: while or for
I did already.. what's not to understand? Christ.. it was based on your own code example!

Sure.. I'll write you a complete page example.. where should I send the bill?
  Topic: how to view session vars
tk

Replies: 4
Views: 7647

PostForum: General   Posted: Thu Jul 08, 2004 11:20 am   Subject: how to view session vars
{$smarty.session.foo}

where 'foo' is the SESSION var (ie: $_SESSION['foo']).

This is plainly in the Smarty manual!
  Topic: while or for
tk

Replies: 9
Views: 11955

PostForum: General   Posted: Thu Jul 08, 2004 11:19 am   Subject: while or for
RTFM dude.. I ain't writing your project for you!!! FFS!
  Topic: while or for
tk

Replies: 9
Views: 11955

PostForum: General   Posted: Thu Jul 08, 2004 10:51 am   Subject: Re: while or for
$result = array();
do {
array_push($result, "{$row


{section name=i loop=$stuff}
{$stuff[i]}
{/section}


HTH =)



Regards,

tk
  Topic: Implementing a Smarty Plugin
tk

Replies: 9
Views: 22085

PostForum: Plugins   Posted: Wed Jul 07, 2004 6:43 pm   Subject: Implementing a Smarty Plugin
I used to get the same when I worked as a mechanic (my original trade).. people would come in and say "my car don't start"... "ok, under what conditions?".. "when I get in.. it don't start" yeah... th ...
  Topic: Implementing a Smarty Plugin
tk

Replies: 9
Views: 22085

PostForum: Plugins   Posted: Wed Jul 07, 2004 3:29 pm   Subject: Re: Help...............
Plz Dont give confusing answers plz help me out i am in serious problem


You're kidding me right!?

In future then, I _strongly_ suggest you learn how to ask a question _properly_ in a manner in ...
  Topic: Implementing a Smarty Plugin
tk

Replies: 9
Views: 22085

PostForum: Plugins   Posted: Wed Jul 07, 2004 7:28 am   Subject: Implementing a Smarty Plugin
Yes... and there's a party you're invited to too ;)



Regards,

tk


PS: Yes my answer is stupid.. but it was the best I could offer with the amazing amount of info you provided in your post ...
  Topic: Smarty and includes
tk

Replies: 6
Views: 42368

PostForum: General   Posted: Wed Jul 07, 2004 7:23 am   Subject: Smarty and includes
Hi Lavey..

No probs at all.. glad to be of some help =)

Try a few methods as and when you have time for various things.. you may find one way suits you better than it does me, or Joe Bloggs and ...
  Topic: Smarty and includes
tk

Replies: 6
Views: 42368

PostForum: General   Posted: Tue Jul 06, 2004 11:57 pm   Subject: Smarty and includes
Hi Lavey..

No probs for the info =)

Changing layouts / designs later with the "normal" method (index.php -> index.tpl, foo.php -> foo.tpl etc) isn't quite as time consuming as you might th ...
  Topic: Smarty and includes
tk

Replies: 6
Views: 42368

PostForum: General   Posted: Tue Jul 06, 2004 5:27 pm   Subject: Smarty and includes
Hi lavey..

IMO, this is a bad approach. I used to use this method for many sites in my earlier PHP days but have since swapped back to using a file.php for each page concept.

In regards to your ...
  Topic: variable assign variable
tk

Replies: 7
Views: 8562

PostForum: General   Posted: Tue Jul 06, 2004 5:17 pm   Subject: variable assign variable
And your template code looks like...........................?

The PHP shows nothing of the rendered page.

{section name=i loop=$form_stuff}
<input type="text" name=&quo ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


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