smarty3 Questions
2
I'm trying to migrate from my old PHP 5.4.45 + Smarty 2.6.28 to my new PHP 7.2.25 + Smarty 3.1.33.
I'm tuning some small pieces of code, it works in most of webpages, but suddenly it stop working ...
3
Solved
I am new to smarty.
I want to know how to remove all white-space characters from a given string in Smarty?
I have a string like "this is my string".
The output should be "thisismystring".
How c...
1
Solved
In Smarty, it is possible to register an plugin in this way:
$smarty->registerPlugin("function","date_now", "print_current_date");
function print_current_date($params, $smarty)
{
if(empty($pa...
Sensualism asked 18/2, 2019 at 19:49
4
Solved
I can't find a solution. What I've got to do is translate this:
se stai inserendo un indirizzo per consegna all'interno dell'area <span class=orange>EXPO</span>
into this:
If your d...
Defense asked 19/5, 2015 at 7:20
1
Solved
I have to calculate a sale end time relative to today,
I have the sale end time variable in this format {%d/%m/%Y %H:%M:%S} e.g.:(31/07/2016 18:27:58).
What I'm trying to do is to show ends: 8 da...
Godown asked 23/7, 2016 at 16:44
3
Solved
I'm stuck with this issue: No database selected. I roll over the same problems posted here, but after hours of reading I can't figure out why the database is not selected. I created a database job ...
1
Solved
In Smarty, is there a way to retrieve the current physical path of the template file?
I'm looking for the Smarty equivalent of the PHP __FILE__ super-variable.
(I'm sure that this question must h...
2
Solved
I have the following code in my template file:
{foreach from=$items item=entry}
<pre>
{$entry->nb_persons|@print_r}
</pre>
{/foreach}
The output is (json string):
{"ip":"12....
1
I used PHP5 a long time ago and am presently trying to refresh my knowledge and augment it with knowledge of Zend Framework 2 and Smarty 3 for a possible project.
I'm currently trying to figure ou...
Envoy asked 12/11, 2012 at 13:52
2
Solved
I have a smarty if statement as follows:
<{if $page->getURLName() eq 'big-issues' or $page->getURLName() eq 'polls' or $page->getURLName() eq 'what-we-do' or $action eq 'events' or $ac...
1
Solved
I have a some class, it include Smarty, but my class use namespace test, Smarty don't use namespaces.
How include Smarty, without writing namespaces into smarty files (it has many system plugins)
...
Tacit asked 20/12, 2011 at 11:36
1
Solved
I'm developing a PHP-based application that requires internationalization (i18n) support.
I'm using Smarty 3 as a template solution (and TinyMVC as the framework), and although I've been using it ...
Berkeleianism asked 26/7, 2011 at 9:39
1
© 2022 - 2024 — McMap. All rights reserved.