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

Search found 1617 matches
Smarty Forum Index
Author Message
  Topic: many sites - one /compiled/ dir. Problem?
AnrDaemon

Replies: 6
Views: 110

PostForum: General   Posted: Mon Jun 01, 2020 12:13 pm   Subject: many sites - one /compiled/ dir. Problem?
I have turned off Smarty caching according to instructions in documentation:

https://www.smarty.net/docsv2/en/caching.tpl

Why are you reading documentation for obsolete version of the library? ...
  Topic: many sites - one /compiled/ dir. Problem?
AnrDaemon

Replies: 6
Views: 110

PostForum: General   Posted: Sat May 30, 2020 3:17 pm   Subject: many sites - one /compiled/ dir. Problem?
Nothing of what you describe is correct.
Don't run multiple sites within the same PHP pool.
Don't run multiple sites with shared cache.
Don't… basically, don't be that stupid. What you propose is ...
  Topic: HTML Form in TPL
AnrDaemon

Replies: 21
Views: 560

PostForum: General   Posted: Mon May 25, 2020 3:26 pm   Subject: HTML Form in TPL


calling action:


<form action="https://www.edidur.com/api.php?call=writingstats&user_id={$user->_data['user_id']}&word_count=1111&writing_date= ...
  Topic: Access the Smarty-Parser
AnrDaemon

Replies: 6
Views: 168

PostForum: General   Posted: Mon May 25, 2020 3:09 pm   Subject: Access the Smarty-Parser
Said that, if you are using modern enough PHP version, you could catch these errors as exceptions.
  Topic: Access the Smarty-Parser
AnrDaemon

Replies: 6
Views: 168

PostForum: General   Posted: Mon May 25, 2020 3:07 pm   Subject: Access the Smarty-Parser
Why your business logic sticking out in templates?
Wrap it into a presentation-safe function.
  Topic: Access the Smarty-Parser
AnrDaemon

Replies: 6
Views: 168

PostForum: General   Posted: Sat May 23, 2020 5:17 pm   Subject: Access the Smarty-Parser
That's not an area you should test.
  Topic: Access the Smarty-Parser
AnrDaemon

Replies: 6
Views: 168

PostForum: General   Posted: Thu May 21, 2020 9:12 pm   Subject: Access the Smarty-Parser
That makes no sense.
Not even unit tests require that kind of introspection.
  Topic: multiplication nombre avec séparateur, dans un tpl
AnrDaemon

Replies: 1
Views: 918

PostForum: Language: French   Posted: Fri May 08, 2020 10:33 pm   Subject: multiplication nombre avec séparateur, dans un tpl
Don't format variables before Smarty.
  Topic: question about templating engine
AnrDaemon

Replies: 1
Views: 624

PostForum: General   Posted: Fri May 08, 2020 10:31 pm   Subject: question about templating engine
Your question makes no sense. Smarty IS THE templating engine.
  Topic: ODD problem with PATH NAMES
AnrDaemon

Replies: 8
Views: 2126

PostForum: General   Posted: Tue Apr 28, 2020 1:45 pm   Subject: ODD problem with PATH NAMES
Check the
$smarty->setCacheDir(…);
$smarty->setCompileDir(…);
settings.
  Topic: ODD problem with PATH NAMES
AnrDaemon

Replies: 8
Views: 2126

PostForum: General   Posted: Tue Apr 28, 2020 12:26 am   Subject: ODD problem with PATH NAMES
Make sure your template/cache directory settings use absolute paths to begin with.
Other than that, it's very hard to give any directions without very specific knowledge.
  Topic: ODD problem with PATH NAMES
AnrDaemon

Replies: 8
Views: 2126

PostForum: General   Posted: Mon Apr 27, 2020 3:20 pm   Subject: ODD problem with PATH NAMES
Possible issues:
1. Your Smarty settings were changed.
2. You don't have right to write to the templates/compiled
3. "htdocsincludes" looks highly suspicious. See #1 and review your Smart ...
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
AnrDaemon

Replies: 6
Views: 3330

PostForum: General   Posted: Mon Apr 27, 2020 3:12 pm   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
I'm not going to write code for you for free. I already outlined your issue. If you did not understand my answer, I suggest you [url=https://www.php.net/forms]go back to reading documentation.
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
AnrDaemon

Replies: 6
Views: 3330

PostForum: General   Posted: Mon Apr 20, 2020 2:54 pm   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
And how these are related to your original question? They AREN'T EVEN USED where the error happens.
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
AnrDaemon

Replies: 6
Views: 3330

PostForum: General   Posted: Fri Apr 17, 2020 6:58 pm   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
$smarty.request.search
Don't do that without any validation whatsoever.
It is NEVER guaranteed that all request parameters are strings.
Overall, don't use Smarty as your programming language. You p ...
 
Page 1 of 108 Goto page 1, 2, 3 ... 106, 107, 108  Next
All times are GMT
Jump to:  


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