Author |
Message |
Topic: using templates but need code that is common to several page |
rob_v
Replies: 4
Views: 6498
|
Forum: General Posted: Wed May 21, 2008 8:49 pm Subject: using templates but need code that is common to several page |
Right, but in our case -
This template
$smarty->display('whatever page name you want.tpl');
is dynamically called and the data in is different for everyone.
Is there a way to cache a single ... |
Topic: using templates but need code that is common to several page |
rob_v
Replies: 4
Views: 6498
|
Forum: General Posted: Tue May 13, 2008 2:57 pm Subject: using templates but need code that is common to several page |
Not sure about the best way - but this is how we handle it.
We have our header and footer for our pages in 2 files - these basically never change.
header.tpl
footer.tpl
We then have our dispat ... |
Topic: help displaying and array of arrays |
rob_v
Replies: 2
Views: 4498
|
Forum: General Posted: Mon Apr 21, 2008 2:50 pm Subject: help displaying and array of arrays |
You could store the actual arrays in your data_array instead of just their names. Something along the lines of:
$data_array = array(
'Department' => $dept_array,
'Flag' => $yes_no_arr ... |
Topic: help displaying and array of arrays |
rob_v
Replies: 2
Views: 4498
|
Forum: General Posted: Mon Apr 21, 2008 1:52 am Subject: help displaying and array of arrays |
Ok - here is the scoop.
I have several arrays that I define in php and give to smarty.
For example
yes_no_array = array('1' => 'Yes', '0' => 'No');
$smarty->assign('yes_no_array', $yes_no ... |
Topic: How to hide/Unhide a <div> when a select option change |
rob_v
Replies: 1
Views: 9944
|
Forum: General Posted: Fri Oct 19, 2007 2:15 am Subject: How to hide/Unhide a <div> when a select option change |
Here u go :
Load up an options list array in php.
This is what the template would look like.
Hope this helps....
<form name='frm'>
<select name='selectbox' onchange='showSelected(t ... |
Topic: Request for html_select_date |
rob_v
Replies: 1
Views: 8873
|
Forum: Feature Requests Posted: Wed May 23, 2007 3:24 pm Subject: Request for html_select_date |
instead of having html_select_date contol what the name of the field will be - let the user have control - there is already a prefix option.
It would be great to have a suffix option as well.
I ... |
Topic: html_select_date - suffix Option? |
rob_v
Replies: 1
Views: 6015
|
Forum: Plugins Posted: Wed May 23, 2007 3:11 pm Subject: html_select_date - suffix Option? |
I need to be able to control the full name of the html_select_date fields.
I see there is a prefix option - the suffix of it seems to defaulted to Day, Month, & Year based on the field.
is t ... |
Topic: Captcha plugin |
rob_v
Replies: 28
Views: 75892
|
Forum: Plugins Posted: Wed May 23, 2007 3:08 pm Subject: Captcha plugin |
Cant seem to get to this page :
http://smarty.incutio.com/?page=captcha
is it anywhere else? |
Topic: how to evaluate variables within a varialbe |
rob_v
Replies: 3
Views: 5929
|
Forum: General Posted: Wed Jan 31, 2007 3:40 pm Subject: how to evaluate variables within a varialbe |
That did it thanks. |
Topic: how to evaluate variables within a varialbe |
rob_v
Replies: 3
Views: 5929
|
Forum: General Posted: Wed Jan 31, 2007 7:30 am Subject: how to evaluate variables within a varialbe |
I know this is totally going against smarty but....
Say I have 1000+ different revisions of a document stored in a database.
That document has tags w/in it
{$first_name}
{$last_name}
say ... |
Topic: Smarty Array Looping - Accessing 2 dimentional arrays |
rob_v
Replies: 1
Views: 4354
|
Forum: General Posted: Mon Jun 19, 2006 8:16 pm Subject: Smarty Array Looping - Accessing 2 dimentional arrays |
With a little more messing around I was able to use for each and get what I needed.
Thanks |
Topic: Smarty Array Looping - Accessing 2 dimentional arrays |
rob_v
Replies: 1
Views: 4354
|
Forum: General Posted: Mon Jun 19, 2006 6:31 pm Subject: Smarty Array Looping - Accessing 2 dimentional arrays |
Ok - need a bit of help here but this is what im trying to attempt.
I have several db tables - each one will have 2 to x fields with 1 of those fields being the index.
I want my final output to ... |
|