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

Search found 7365 matches
Smarty Forum Index
Author Message
  Topic: Smarty 3.1.33 Released
mohrt

Replies: 0
Views: 893

PostForum: Announcements   Posted: Tue Sep 18, 2018 1:33 am   Subject: Smarty 3.1.33 Released
Smarty 3.1.33 is released, containing new features, bug fixes, and security fixes.

Important: fixes [url=https://nvd.nist.gov/vuln/detail/CVE-2018-16831]CVE-2018-16831 concerning escape from truste ...
  Topic: Smarty and TinyMVC - One main template for all controllers
mohrt

Replies: 4
Views: 1789

PostForum: Frameworks   Posted: Wed Apr 18, 2018 1:06 am   Subject: Smarty and TinyMVC - One main template for all controllers
Sure, add Smarty and use template inheritance. The docs show an example.
  Topic: Failing to understand Smarty::_realpath()
mohrt

Replies: 8
Views: 1489

PostForum: General   Posted: Tue Jan 09, 2018 1:01 am   Subject: Failing to understand Smarty::_realpath()
It could probably be rewritten, at the risk of breaking something you don't realize you are breaking. I think this was written quite some time ago, when PHP and the OS's it ran on were quite a differe ...
  Topic: Failing to understand Smarty::_realpath()
mohrt

Replies: 8
Views: 1489

PostForum: General   Posted: Thu Jan 04, 2018 7:08 pm   Subject: Failing to understand Smarty::_realpath()
What part of the header description is confusing?

* Normalize path
* - remove /./ and /../
* - make it absolute if required
*
* @param string $path file path
* ...
  Topic: Smarty 2.6.31 Released
mohrt

Replies: 0
Views: 4341

PostForum: Announcements   Posted: Wed Nov 22, 2017 3:02 am   Subject: Smarty 2.6.31 Released
Some minor bug fixes and enhancements. Smarty is now compatible with PHP 7.2, as deprecated functions are removed!

change log https://github.com/smarty-php/smarty/blob/Smarty2/ChangeLog

download ...
  Topic: Internationalization. Best Practices?
mohrt

Replies: 4
Views: 2584

PostForum: General   Posted: Sun Dec 18, 2016 8:51 pm   Subject: Internationalization. Best Practices?
Smarty is basically the "view" of your application. i18n is a bit out of scope for the template engine itself. As AnrDaemon mentioned, there have been some attempts at plugins for Smarty, al ...
  Topic: Smarty 3.1.30 Released
mohrt

Replies: 0
Views: 8521

PostForum: Announcements   Posted: Mon Aug 15, 2016 2:25 am   Subject: Smarty 3.1.30 Released
Many minor bug fixes and enhancements. One {math} shell injection vulnerability patch provided by Tim Weber. Note this is only vulnerable to those with template write access using security features.
...
  Topic: Simplify autoloading.
mohrt

Replies: 5
Views: 3459

PostForum: Smarty Development   Posted: Tue Jun 28, 2016 12:05 pm   Subject: Simplify autoloading.
I'm not terribly concerned with the intricacies of the autoloader, as this is not something a developer has to see or directly deal with. What is important is that it works for all intents and purpose ...
  Topic: Simplify autoloading.
mohrt

Replies: 5
Views: 3459

PostForum: Smarty Development   Posted: Tue Jun 28, 2016 1:17 am   Subject: Simplify autoloading.
submit a PR?
  Topic: How can I use {counter) in breadcrumb.tpl
mohrt

Replies: 3
Views: 2960

PostForum: General   Posted: Fri Jun 24, 2016 11:49 pm   Subject: How can I use {counter) in breadcrumb.tpl
You can't use a function inside a text string, it is just treated as text. If you do:

{counter assign="mycount"}

Then {$mycount} will contain the counter value and you can use $mycount ...
  Topic: Smarty v2.6.6 doesnt generate .php form template - Err 404
mohrt

Replies: 6
Views: 4254

PostForum: General   Posted: Mon Mar 21, 2016 2:36 pm   Subject: Smarty v2.6.6 doesnt generate .php form template - Err 404
The files in templates_c are automatically created by Smarty when a template is loaded. So for example, if you have a template named new_users.tpl and in somewhere in your PHP code you load that templ ...
  Topic: Smarty v2.6.6 doesnt generate .php form template - Err 404
mohrt

Replies: 6
Views: 4254

PostForum: General   Posted: Fri Mar 18, 2016 2:15 pm   Subject: Smarty v2.6.6 doesnt generate .php form template - Err 404
But when i open the web and try to open the URL new_users that should be linked to new_user.tpl.php, it shows me ERROR 404

Where does new_user.tpl.php come from? That is not something Smarty create ...
  Topic: Smarty v2.6.6 doesnt generate .php form template - Err 404
mohrt

Replies: 6
Views: 4254

PostForum: General   Posted: Thu Mar 17, 2016 5:16 pm   Subject: Smarty v2.6.6 doesnt generate .php form template - Err 404
Templates are not in the URL path. They are included by PHP. So your URL must go to a PHP file.
  Topic: how to disable cache for current tpl
mohrt

Replies: 2
Views: 5232

PostForum: Frameworks   Posted: Wed Mar 16, 2016 8:42 pm   Subject: how to disable cache for current tpl
version of smarty?
  Topic: Wrong link to download old versions of Smarty
mohrt

Replies: 2
Views: 4527

PostForum: Feature Requests   Posted: Thu Mar 10, 2016 5:32 pm   Subject: Wrong link to download old versions of Smarty
I changed the Smarty 2 link on the download page to go directly to the Smarty 2.x tags.
 
Page 1 of 491 Goto page 1, 2, 3 ... 489, 490, 491  Next
All times are GMT
Jump to:  


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