Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 1757 matches
Smarty Forum Index
Author Message
  Topic: Encoding of the html cache page
AnrDaemon

Replies: 1
Views: 150

PostForum: General   Posted: Wed Sep 08, 2021 3:08 pm   Subject: Re: Encoding of the html cache page
I've just started testing Smarty and so far I'm very excited to implement it in a new project.
Let's say you're new to web development as well as to Smarty. Which would perfectly explain the

I've ...
  Topic: Random class inside foreach
AnrDaemon

Replies: 2
Views: 146

PostForum: General   Posted: Wed Sep 08, 2021 3:07 pm   Subject: Random class inside foreach
It is possible.
See https://www.php.net/array_rand
  Topic: cache issue - modified shop system
AnrDaemon

Replies: 1
Views: 157

PostForum: General   Posted: Wed Sep 08, 2021 2:59 pm   Subject: cache issue - modified shop system
Manually register your plugin and tell Smarty to not cache its results.
See https://www.smarty.net/docs/en/caching.cacheable.tpl

It is clearly explained that you have to write the code for "d ...
  Topic: Upgraded to the latest version and unknown characters
AnrDaemon

Replies: 4
Views: 1746

PostForum: Installation and Setup   Posted: Wed Sep 08, 2021 2:54 pm   Subject: Upgraded to the latest version and unknown characters
I'm talking about YOUR code. Smarty does not use conversions by itself, unless explicitly told to do so.
  Topic: Unable to write file [Presta 1.7.6.5 Apache on W2109server]
AnrDaemon

Replies: 2
Views: 267

PostForum: Smarty 3   Posted: Wed Sep 08, 2021 2:43 pm   Subject: Unable to write file [Presta 1.7.6.5 Apache on W2109server]
How often you see this error? In production environment, Smarty should only compile templates once.
  Topic: canonical url problem REQUEST_URI
AnrDaemon

Replies: 1
Views: 292

PostForum: General   Posted: Wed Sep 08, 2021 1:36 pm   Subject: canonical url problem REQUEST_URI
Create a wrapper function around https://packagist.org/packages/anrdaemon/net-url or any other similar URL handling library.

For Net\Url:

$query = $_GET;
unset($query['page_type']&# ...
  Topic: Upgraded to the latest version and unknown characters
AnrDaemon

Replies: 4
Views: 1746

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: 1034

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: 576

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: 499

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: 2389

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: 1687

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: 2675

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: 917

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: 867

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.
 
Page 1 of 118 Goto page 1, 2, 3 ... 116, 117, 118  Next
All times are GMT
Jump to:  


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