Most voted "smarty" questions
14 questions
Sort by count of
-
3
votes1
answer108
viewsHow to "translate" SMARTY to JAVASCRIT or even JQUERY?
I have this code in a "Smarty template", (which runs on a server Fuelphp), I simply wish to "rewrite" this in Javascript or Jquery: <select size="1" name="dw01"> {section name=item start=1…
-
2
votes1
answer224
viewsBetter performance/performance: Smarty, Twig or any other?
Although in general the systems of templates for PHP are used for other purposes, such as separating business rules, etc. Which one provides better performance for website loading/performance (or…
-
2
votes1
answer107
viewsPass parameter to template with Smarty
I’m reading the documentation from Smarty but I still can’t understand how I can and can pass parameter to a template using the Smarty. I have this piece of code: if ($part == PagePart::RecordCard…
-
2
votes0
answers39
viewsShopping cart in Smarty
I am developing a university project in which I have to develop a web site. I am using Smarty for code organization. This is a sales website and for this I am developing a shopping cart, and this is…
-
1
votes1
answer49
viewsMultiple identical Dwoo forms
I have a form built using the Template Engine Dwoo which has three variables (of data specific to the attributes "name" and "value"), this form will be inserted multiple times within another…
-
1
votes1
answer64
viewsHow to format date variable in Smarty for dd/mm/YYYY
I’m trying to format a date on Smarty that is in that format {$Grid.Row.DataEmissao.DisplayValue} being displayed like this: 15-03-2018, how can I format it for 15/03/2018 to display in my report, I…
smartyasked 6 years, 8 months ago adventistapr 5,498 -
1
votes2
answers68
viewsHow to rewrite the initial array and remove items by the ID in the view with Smarty?
I’m using the View rendering library with Smarty. In my view, I have an output with the product information array inside a foreach: {assign var='remove_products' [712, 716, 717, 718, 719, 720, 745,…
-
1
votes0
answers45
viewsInstallation of a new theme in the Prestashop store 1.4.3
I installed a theme using the module: export/import Theme, as shown in this video : and now I’m getting this message in the header: Fatal error: Uncaught Exception 'Smartycompilerexception' with…
-
1
votes0
answers20
viewsHow to Foreach with Smarty Using Key
I’m making an appointment in my BD to build a relationship with some NF numbers and their respective dates, but the result is being the last record, of which there are three. What I’ve done so far:…
smartyasked 6 years, 3 months ago adventistapr 5,498 -
0
votes3
answers215
viewsLeave current page highlighted in a page selection menu?
I have a page selection menu whose final appearance (the current page highlighted with a different color) should be generated dynamically because I want to reuse the same menu for numerous pages, as…
-
0
votes1
answer106
viewsFormat mysql table date and show in Smarty
I am developing a PHP page, using MVC structure and rendering tamplete files with Smarty. However, it was difficult to get a date via Mysql (see format: YEAR-MONTH-DAY HOUR:MINUTE:SECOND I would…
-
0
votes1
answer117
viewsError tagged with php in Smarty
I have a question related to the Smarty 3.1 template engine, I’m trying to use the {php}{/php} tags in the templates and I’m getting the following error: Fatal error: Uncaught --> Smarty…
-
0
votes0
answers8
viewsHow do I hide an element according to screen size using tpl
Hello, good afternoon, sir! I wanted to know how to hide or not execute elements according to screen size or through device detection using . tpl I tried using the following code: <div…
-
-1
votes1
answer72
viewsforeach does not run full, only runs 1 time
good afternoon, anyone has any idea why this foreach does not rotate 3 times, and wheel only 1? $pag = 3; {foreach from=$pag item=pg} <div class="fotos-flex active"> {foreach from=$photos…