Author |
Message |
Topic: using a variable as part of another variable name to get val |
redbrad0
Replies: 2
Views: 14859
|
Forum: General Posted: Wed Dec 15, 2021 8:37 pm Subject: using a variable as part of another variable name to get val |
I have a variable that I can output the contents with {$Price_5056} to get the value but I would like to replace 5056 with another variable like {$Price_{$pricelevel.ID}} but I keep getting errors. Is ... |
Topic: Looping through records in multi row and column format |
redbrad0
Replies: 5
Views: 6509
|
Forum: General Posted: Wed Feb 27, 2019 2:53 pm Subject: Looping through records in multi row and column format |
So each "record" I am looping through is an object so now if I am passing through 64 objects that I want listed I am now passing through 128 objects as I have to pass each object twice? |
Topic: Looping through records in multi row and column format |
redbrad0
Replies: 5
Views: 6509
|
Forum: General Posted: Tue Feb 26, 2019 12:49 pm Subject: Looping through records in multi row and column format |
Isnt that the wrong way to think of doing it? Of course I can do it from PHP but typically you have a PHP developer that gives the data and then a designer that makes it work into PHP. I am actually p ... |
Topic: Looping through records in multi row and column format |
redbrad0
Replies: 5
Views: 6509
|
Forum: General Posted: Tue Feb 26, 2019 5:30 am Subject: Looping through records in multi row and column format |
I am not sure why but I just can't think off the top of my head on how I can accomplish something. I have a array of records and trying to loop through them (which isnt the issue) and display them in ... |
Topic: Using Multiple Web Server |
redbrad0
Replies: 3
Views: 11595
|
Forum: Smarty 3 Posted: Mon Aug 04, 2014 2:28 pm Subject: Using Multiple Web Server |
I tried that before, but just did it again and it is not loading from the plugin directory. It is in the folder "plugin" not the "sysplugins" directory. I know that it is not calli ... |
Topic: Using Multiple Web Server |
redbrad0
Replies: 3
Views: 11595
|
Forum: Smarty 3 Posted: Sun Aug 03, 2014 8:17 pm Subject: Using Multiple Web Server |
We are using smarty with 5 web servers where the cache is stored on each local web server. As smarty files are updated, we are having to update each web server so I was looking into setting smarty to ... |
Topic: Accessing a dynamic PHP Array in Smarty |
redbrad0
Replies: 1
Views: 3556
|
Forum: General Posted: Thu Nov 08, 2012 4:54 pm Subject: Accessing a dynamic PHP Array in Smarty |
I have the following line that I can't seem to figure out the syntax. It seems like I have tried every option I can think of even with adding ` at different locations. Can someone help with the syntax ... |
Topic: Javascript Escape returns "no space between attributes& |
redbrad0
Replies: 0
Views: 3903
|
Forum: General Posted: Tue May 15, 2012 4:49 pm Subject: Javascript Escape returns "no space between attributes& |
Below is my smarty template code and when it builds Firefox is showing the error "no space between attributes" using Smarty Version 3.1.8
Smarty Template Code
<span class="button ... |
Topic: Whats the fastest way to load the templates |
redbrad0
Replies: 3
Views: 9640
|
Forum: Smarty 3 Posted: Sat Apr 14, 2012 4:31 pm Subject: Whats the fastest way to load the templates |
I will leave the templates in the DB then.
Our server does have memcache running, which I will look into enabling for smarty but this brings up the last question about caching. If I turn on smarty ... |
Topic: Whats the fastest way to load the templates |
redbrad0
Replies: 3
Views: 9640
|
Forum: Smarty 3 Posted: Sat Apr 14, 2012 4:31 am Subject: Whats the fastest way to load the templates |
I am in the process of upgrading from smarty 2 to 3 and thought I would see what the fastest way to load the templates.
We are currently passing objects to the template and calling the object funct ... |
Topic: Smarty appears to be setting a variable before it displays |
redbrad0
Replies: 2
Views: 4522
|
Forum: General Posted: Thu Feb 10, 2011 11:47 pm Subject: Smarty appears to be setting a variable before it displays |
ODD... I tried to post the entire message but I had to remove my smarty code as it was sending me to a page saying I had an invalid Topic ID. Below is the entire post the way it should have been.
- ... |
Topic: Smarty appears to be setting a variable before it displays |
redbrad0
Replies: 2
Views: 4522
|
Forum: General Posted: Thu Feb 10, 2011 11:46 pm Subject: Smarty appears to be setting a variable before it displays |
In my PHP page, directly before I call the smarty template I can output the "PageError" and it contains information but inside my smarty template I am checking if it has information and if s ... |
Topic: Pulling template from database based on browser type |
redbrad0
Replies: 1
Views: 3995
|
Forum: General Posted: Thu Feb 03, 2011 12:38 am Subject: Pulling template from database based on browser type |
Inside both of the below functions I run a query to pull the template. What my thought was to pull the browsers template but if it unavailable then to pull the default template. The question's I have ... |
Topic: Combine Two Variables inside template |
redbrad0
Replies: 1
Views: 19822
|
Forum: General Posted: Wed Feb 02, 2011 8:19 am Subject: Combine Two Variables inside template |
I just upgraded to the newest smarty and I am now getting an error on this line. How can I combine the two variables together?
Original
{assign var='tmpNewDate' value=`$ticket.Event_DateTime`_`$ti ... |
Topic: Uncaught exception 'SmartyException' with message 'Unable to |
redbrad0
Replies: 9
Views: 17734
|
Forum: Installation and Setup Posted: Thu Jan 27, 2011 12:20 am Subject: Uncaught exception 'SmartyException' with message 'Unable to |
Why do you want the & sign? |
|