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

Search found 194 matches
Smarty Forum Index
Author Message
  Topic: Comment inside literal
bsmither

Replies: 2
Views: 32

PostForum: General   Posted: Tue Oct 16, 2018 1:22 am   Subject: Comment inside literal
Unless there is more than what you posted, I do not see any actual javascript or actual CSS. Actual javascript and CSS could have tight braces which is the cause for the use of {literal} is necessary. ...
  Topic: File Exists not working
bsmither

Replies: 8
Views: 127

PostForum: General   Posted: Fri Oct 12, 2018 8:59 am   Subject: File Exists not working
Do you have any editing capability to the PHP code?

If so, then where $asset is assigned:
$smarty->assign('asset',whatever_function());could be a good place to check if the imag ...
  Topic: File Exists not working
bsmither

Replies: 8
Views: 127

PostForum: General   Posted: Thu Oct 11, 2018 7:56 pm   Subject: File Exists not working
I'm going to guess that $asset is a string that, for the purposes of the <img> tag, is a path relative to the web site's doc_root (public_html).

As such, this will be different than what the ...
  Topic: Using if else statement
bsmither

Replies: 8
Views: 270

PostForum: General   Posted: Wed Sep 19, 2018 9:34 pm   Subject: Using if else statement
<li{if $smarty.request.kpi} active{/if}>

See:
https://www.smarty.net/docs/en/language.variables.smarty.tpl#language.variables.smarty.request
  Topic: Loop over variables from within a template
bsmither

Replies: 2
Views: 106

PostForum: General   Posted: Fri Sep 14, 2018 6:11 pm   Subject: Loop over variables from within a template
I have no experience at solving your specific approach.

My solution is to add {debug} to the end of the template I want to troubleshoot. See:
https://www.smarty.net/docs/en/language.function.debug ...
  Topic: I want urgent help
bsmither

Replies: 6
Views: 264

PostForum: General   Posted: Sun Sep 09, 2018 5:37 pm   Subject: I want urgent help
where put this code , I am useing PHP Melody script

$Smarty->assign('META_GENRE',$product
Ideally, you would be asking that in the community-supported Melody forums.
  Topic: I want urgent help
bsmither

Replies: 6
Views: 264

PostForum: General   Posted: Sat Sep 08, 2018 9:58 pm   Subject: I want urgent help
In your code, you will have this:
$Smarty->assign('META_GENRE',$product['genre']);
// where $product['genre'] is the 'genre' column of this
// database record

The temp ...
  Topic: Update my Smarty
bsmither

Replies: 6
Views: 147

PostForum: General   Posted: Thu Sep 06, 2018 11:42 pm   Subject: Update my Smarty
It is possible.
https://github.com/smarty-php/smarty/releases/tag/v3.1.32

Just to CYA, rename the project's current Smarty folder to something else.

Unzip. There is a shortcut file in the /libs ...
  Topic: Performance of my site
bsmither

Replies: 6
Views: 142

PostForum: General   Posted: Thu Sep 06, 2018 11:31 pm   Subject: Performance of my site
I, too, from a number of versions ago, had complaints about very slow performance and blamed Smarty (as revealed by cachegrind).

However, the latest version or three really is very much faster. (C ...
  Topic: Downloads Page Clarification
bsmither

Replies: 0
Views: 229

PostForum: Documentation   Posted: Thu Sep 06, 2018 4:44 pm   Subject: Downloads Page Clarification
Currently, on the Downloads page:

Requirements:
Smarty 3.x: PHP 5.2+
Smarty 2.x: PHP 4 or 5


Actually, Smarty 2.6.29+ requires PHP 5.

Suggest:

Requirements:
Smarty 3.x: PHP 5.2+
Smart ...
  Topic: Parse error : Smarty.class.php on line 575 with smarty-2.6
bsmither

Replies: 3
Views: 297

PostForum: Installation and Setup   Posted: Thu Sep 06, 2018 5:00 am   Subject: Parse error : Smarty.class.php on line 575 with smarty-2.6
We may ask that you develop in Smarty 3, as the latest version will show which line of the template is causing the error.

Until then, it will be onerous to look through the templates looking for a ...
  Topic: Permissions problem with template_C in WinSrv2012r2 IIS8.5
bsmither

Replies: 4
Views: 1923

PostForum: Installation and Setup   Posted: Sun Sep 02, 2018 10:42 pm   Subject: Permissions problem with template_C in WinSrv2012r2 IIS8.5
That just now (well, yesterday) showed up as being an unread post in the index.

Must have been a burp in the forums.
  Topic: Permissions problem with template_C in WinSrv2012r2 IIS8.5
bsmither

Replies: 4
Views: 1923

PostForum: Installation and Setup   Posted: Sun Sep 02, 2018 8:12 pm   Subject: Permissions problem with template_C in WinSrv2012r2 IIS8.5
In your PHP code, please have this statement:
$smarty->testInstall();
Please let us know what the output is.
  Topic: Content E-mail as HTML
bsmither

Replies: 5
Views: 199

PostForum: General   Posted: Thu Aug 23, 2018 12:01 am   Subject: Content E-mail as HTML
Smarty is not a problem in this situation.

Example #5 here:
http://docs.php.net/manual/en/function.mail.php
details what you need to pass to the mail() function to indicate to the recipient's ema ...
  Topic: Trying to upgrade, having trouble with slashes and capture
bsmither

Replies: 19
Views: 808

PostForum: General   Posted: Sun Aug 19, 2018 11:07 pm   Subject: Trying to upgrade, having trouble with slashes and capture
Join the Github:
https://github.com/

Read and Search everything there is that may be related to your observations. I gave links to two such issues earlier:
https://github.com/smarty-php/smarty/is ...
 
Page 1 of 13 Goto page 1, 2, 3 ... 11, 12, 13  Next
All times are GMT
Jump to:  


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