Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 267 matches
Smarty Forum Index
Author Message
  Topic: Passing variables to child loaded with ajax content
bsmither

Replies: 2
Views: 163

PostForum: General   Posted: Tue Jul 07, 2020 1:48 am   Subject: Passing variables to child loaded with ajax content
I would think this "inheritance" or "passing along" data that populated one template - Smarty performs this population of the template on the server - to be available on a child te ...
  Topic: Problems with the truncate modifier
bsmither

Replies: 3
Views: 459

PostForum: General   Posted: Wed Jun 10, 2020 7:35 pm   Subject: Problems with the truncate modifier
The docs mention:
"{$controller|truncate:6}
  Topic: many sites - one /compiled/ dir. Problem?
bsmither

Replies: 10
Views: 790

PostForum: General   Posted: Sun May 31, 2020 2:02 pm   Subject: many sites - one /compiled/ dir. Problem?
I will have to re-read that bit of the documentation, but I recall there was the understanding that Smarty was being used for one site.

This scenario is for two sites - probably with different dyna ...
  Topic: many sites - one /compiled/ dir. Problem?
bsmither

Replies: 10
Views: 790

PostForum: General   Posted: Sat May 30, 2020 5:14 pm   Subject: many sites - one /compiled/ dir. Problem?
It seems to me that coding a test could designate a distinct compile and cache directory for each store. Much the same as I imagine you are distinguishing the database to use based on the Server Host ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Tue May 26, 2020 11:16 pm   Subject: HTML Form in TPL
Please contact the author/publisher of the API. That person may be able to support your requirements.
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Tue May 26, 2020 2:46 am   Subject: HTML Form in TPL
Based on what you have said and have not said, I will conclude you do not have access to the PHP code.

Thus, working with that conclusion, you have no means of determining whether or not PHP has ac ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Mon May 25, 2020 3:51 pm   Subject: HTML Form in TPL
You said:
"Definitely worth a shot, I will check out the $_POST value before hand."

A suggested test is to code a statement in the PHP script that will print out the contents of $_POST i ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Sun May 24, 2020 3:21 am   Subject: HTML Form in TPL
The $_COOKIE array is a PHP variable, usable in PHP code.

The template is not PHP code. The template is not executed as if it were PHP code.

Looking at the Params tab of the Network screen (high ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Sat May 23, 2020 11:14 pm   Subject: HTML Form in TPL
The following is a quote taken from StackOverflow, making reference to the specifications on how browsers are to behave:
As the specifications (RFC1866, page 46; HTML 4.x section 17.13.3) state:

I ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Sat May 23, 2020 7:35 pm   Subject: HTML Form in TPL
Your browser probably has a Developer's Tools suite of functions. One tool is the Network panel. It is here you can see what actually gets sent out when you click the Submit button.

Use that tool t ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Sat May 23, 2020 2:47 pm   Subject: HTML Form in TPL
The Smarty->assign() statement is in your PHP code, not the template. Once Smarty has the value from the assign method, one would display it using the named variable in the template.

When the pa ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Sat May 23, 2020 8:17 am   Subject: HTML Form in TPL
Sorry, but could you elaborate?

Internally? Internal to what?

When POSTing, and your script having received the POSTed key/value pairs which now reside in the variable $_POST, you would then use ...
  Topic: HTML Form in TPL
bsmither

Replies: 21
Views: 2554

PostForum: General   Posted: Fri May 22, 2020 1:29 am   Subject: HTML Form in TPL
The variable $smarty.post will be populated with the values in the prior POSTing of the form. Therefore, for the first appearance of the form in the browser, there will be no value for $smarty.post.wc ...
  Topic: show last item in array
bsmither

Replies: 1
Views: 683

PostForum: Smarty Development   Posted: Thu May 21, 2020 12:37 am   Subject: show last item in array
Try this experiment:
{$array1 = [["textid"=>"username"],["textid"=>"password"],["textid"=>"macaddress" ...
  Topic: ODD problem with PATH NAMES
bsmither

Replies: 8
Views: 2615

PostForum: General   Posted: Tue Apr 28, 2020 6:36 pm   Subject: ODD problem with PATH NAMES
You are seeing errors, but is your web site(s) crashing?

You and your host agree that your path is:
/http/example/blah/one/

But has the host admitted to there being, or not being, this existing ...
 
Page 1 of 18 Goto page 1, 2, 3 ... 16, 17, 18  Next
All times are GMT
Jump to:  


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