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

Search found 1751 matches
Smarty Forum Index
Author Message
  Topic: Upgraded to the latest version and unknown characters
AnrDaemon

Replies: 2
Views: 211

PostForum: Installation and Setup   Posted: Tue Jul 20, 2021 3:12 pm   Subject: Upgraded to the latest version and unknown characters
Looks like twice decoded UTF-8.
See if you aren't using encoding conversions unnecessarily.
  Topic: How to show 404 error if missing link?
AnrDaemon

Replies: 1
Views: 738

PostForum: General   Posted: Mon Jul 12, 2021 3:29 pm   Subject: How to show 404 error if missing link?
https://www.php.net/http_response_code

Not a Smarty question.
  Topic: How to avoid a warning inside smarty_internal_compilebase?
AnrDaemon

Replies: 1
Views: 282

PostForum: General   Posted: Mon Jul 12, 2021 3:03 pm   Subject: How to avoid a warning inside smarty_internal_compilebase?
Your Smarty version is outdated.
  Topic: foreach in PHP dropdown.
AnrDaemon

Replies: 1
Views: 233

PostForum: General   Posted: Mon Jul 12, 2021 3:02 pm   Subject: foreach in PHP dropdown.
Look into https://www.smarty.net/docs/en/language.function.html.options.tpl
  Topic: There's something wrong with my if/else condition in index.p
AnrDaemon

Replies: 6
Views: 736

PostForum: General   Posted: Wed Jun 23, 2021 4:11 pm   Subject: There's something wrong with my if/else condition in index.p
"Doesn't show errors" does not equal "no errors happening".

Show your template code, most likely you have something like

{if $form == 3} … {/if} in the ...
  Topic: Something I don't understand with assigning values
AnrDaemon

Replies: 2
Views: 1358

PostForum: General   Posted: Sun Jun 13, 2021 3:01 am   Subject: Something I don't understand with assigning values
Why you are creating table in PHP?
Do that in Smarty.
  Topic: Fatal error: Uncaught Error: Class Smarty_Internal_Template
AnrDaemon

Replies: 3
Views: 2324

PostForum: Installation and Setup   Posted: Wed Jun 09, 2021 4:34 pm   Subject: Fatal error: Uncaught Error: Class Smarty_Internal_Template
If this is a new project, just use [url=https://getcomposer.org/]Composer already.
Will make everything way simpler.
  Topic: Image output
AnrDaemon

Replies: 1
Views: 605

PostForum: General   Posted: Sun Jun 06, 2021 9:04 pm   Subject: Image output
https://bfy.tw/R3nV
  Topic: Generating carriage return/line feeds in Word documents
AnrDaemon

Replies: 1
Views: 576

PostForum: General   Posted: Sat Jun 05, 2021 11:04 pm   Subject: Generating carriage return/line feeds in Word documents
Add {$smarty.version} somewhere in your template to be sure.
  Topic: Fatal error: Uncaught Error: Class Smarty_Internal_Template
AnrDaemon

Replies: 3
Views: 2324

PostForum: Installation and Setup   Posted: Sat Jun 05, 2021 11:01 pm   Subject: Fatal error: Uncaught Error: Class Smarty_Internal_Template
How did you load Smarty? That's rather strange.
You don't have to include anything manually, Smarty is using autoloader for years now.
  Topic: Accessing constants in .tpl
AnrDaemon

Replies: 2
Views: 2982

PostForum: Documentation   Posted: Sun May 30, 2021 8:09 am   Subject: Accessing constants in .tpl
Many people think that direct access to constants was an oversight in design. Way too easy to have a conflict with template functions/blocks.
  Topic: Please update Requirements sections of Smarty Documentation
AnrDaemon

Replies: 2
Views: 10722

PostForum: Documentation   Posted: Sun May 30, 2021 8:08 am   Subject: Please update Requirements sections of Smarty Documentation
https://www.php.net/eol
  Topic: Trouble assigning SUB array
AnrDaemon

Replies: 2
Views: 2786

PostForum: General   Posted: Sun May 30, 2021 8:02 am   Subject: Trouble assigning SUB array
I don't understand your problem.

PHP: {$smarty.const.PHP_VERSION}
Smarty: {$smarty.version}

{$arr['x']['y']['z']="t"}
&# ...
  Topic: Smarty 3.1.39 is released
AnrDaemon

Replies: 0
Views: 6879

PostForum: Announcements   Posted: Sun May 23, 2021 8:56 am   Subject: Smarty 3.1.39 is released
[url=https://github.com/smarty-php/smarty/releases/tag/v3.1.39]Smarty 3.1.39 is released (Feb 17, 2021), containing two security patches.

* Prevent access to $smarty.template_object in sandbox mod ...
  Topic: {strip} render has no space between attributes
AnrDaemon

Replies: 2
Views: 6377

PostForum: Smarty 3   Posted: Fri May 21, 2021 7:19 pm   Subject: {strip} render has no space between attributes
{strip} is a compile-time modifier. The problem is caused by the fact PHP eats the end-of-line mark after "?>" tag. Look into compiled template to understand it.

The solution is to eit ...
 
Page 1 of 117 Goto page 1, 2, 3 ... 115, 116, 117  Next
All times are GMT
Jump to:  


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