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

Search found 321 matches
Smarty Forum Index
Author Message
  Topic: foreach item value overwrites assigened value
elpmis

Replies: 1
Views: 1224

PostForum: General   Posted: Wed Jul 26, 2017 10:12 am   Subject: foreach item value overwrites assigened value
You should not use same var name two times. Var names must be unique.
  Topic: Smarty: unable to write file
elpmis

Replies: 2
Views: 2841

PostForum: General   Posted: Fri Jul 07, 2017 7:50 pm   Subject: Smarty: unable to write file
Have you tried to set writing permission for folder /responsive?
  Topic: X Element aus foreach array anzeigen
elpmis

Replies: 3
Views: 2975

PostForum: Language: German   Posted: Sat Jul 01, 2017 6:21 pm   Subject: X Element aus foreach array anzeigen
Syntaxfehler?

{foreach $oItems as $oItem} 
  Topic: Assgine multiple values to a single variable?
elpmis

Replies: 6
Views: 3300

PostForum: General   Posted: Sun Jan 29, 2017 11:14 am   Subject: Re: Assgine multiple values to a single variable?
Hello
I am new on smarty. i later use php $GLOBALS on my projects as a variable on template . now i migrating to smarty.

Now i can't do a simple,basic things that previously do on php :


Pleas ...
  Topic: Wertzuweisung
elpmis

Replies: 5
Views: 4522

PostForum: Language: German   Posted: Thu Dec 08, 2016 9:52 am   Subject: Wertzuweisung
Nach dem Manual zu floatval ist der Wert 0 (Zahl), wenn das führende Zeichen nichtnumerisch ist. Wenn ich es richtig sehe, isses bei dir ein Leerzeichen.

Setz mal vor floatval noch einen strip Modi ...
  Topic: Wertzuweisung
elpmis

Replies: 5
Views: 4522

PostForum: Language: German   Posted: Thu Dec 08, 2016 9:16 am   Subject: Wertzuweisung
Korrekter Weise sollte die Zuweisung mit var='netto' und var='zwischen' erfolgen.

In dem Console Screenshot ist $cart_total nicht zu sehen..
  Topic: Manipulate counter
elpmis

Replies: 1
Views: 1765

PostForum: General   Posted: Sat Oct 08, 2016 7:20 pm   Subject: Manipulate counter
Not sure if you know it but Smarty builtin {counter} plugin provide a solution you are searching for ...

http://www.smarty.net/docs/en/language.custom.functions.tpl#language.function.counter

Or ...
  Topic: Help to Convert PHP to Smarty
elpmis

Replies: 2
Views: 4246

PostForum: Smarty Development   Posted: Sun Sep 11, 2016 5:05 pm   Subject: Help to Convert PHP to Smarty
Smarty3 has a similar syntax like PHP.

You have only to assign $faq to Smarty

http://www.smarty.net/docs/en/api.assign.tpl

And then you can transform your snippet into Smarty template

http ...
  Topic: unknown modifier "escape"
elpmis

Replies: 7
Views: 15505

PostForum: Smarty 3   Posted: Sun Sep 11, 2016 11:45 am   Subject: unknown modifier "escape"
You can addPluginsDir() instead setPluginsDir() for your system

http://www.smarty.net/docs/en/api.add.plugins.dir.tpl
  Topic: Extended Setup is not working
elpmis

Replies: 11
Views: 7506

PostForum: Installation and Setup   Posted: Fri Sep 09, 2016 7:51 am   Subject: Extended Setup is not working
Please post complete working script that demonstrates your issue.

Can only repeat this! Rolling Eyes
  Topic: Extended Setup is not working
elpmis

Replies: 11
Views: 7506

PostForum: Installation and Setup   Posted: Tue Sep 06, 2016 7:47 pm   Subject: Extended Setup is not working
Your link points to the manual for Smarty 2.

Do you are using Smarty 2 yet?
  Topic: Smarty cannot write to templates_c folder in Vagrant?
elpmis

Replies: 2
Views: 5735

PostForum: Installation and Setup   Posted: Sun Sep 04, 2016 7:22 pm   Subject: Smarty cannot write to templates_c folder in Vagrant?
I'm not familiar with vagrant. But have you set chmod 777 for /template_c ?
  Topic: How to configure optgroup label
elpmis

Replies: 2
Views: 2428

PostForum: General   Posted: Sun Sep 04, 2016 7:18 pm   Subject: How to configure optgroup label
http://www.smarty.net/docs/en/language.function.html.options.tpl

Think the last example shows the way...
  Topic: Variablen global definieren
elpmis

Replies: 4
Views: 4615

PostForum: Language: German   Posted: Wed Aug 31, 2016 5:27 pm   Subject: Variablen global definieren
<?php
$userLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
class Smarty_Project extends Smarty {

function __construct()
{
parent ...
  Topic: Putting smarty code in a html block in a javascript file
elpmis

Replies: 6
Views: 4098

PostForum: General   Posted: Wed Aug 24, 2016 7:24 am   Subject: Re: Putting smarty code in a html block in a javascript file
I have marked the area the code needs to be in, in the js below with "CODE NEEDS TO GO HERE "


Ok, please tell us something about the "CODE NEEDS TO GO HERE ".

What's this? ...
 
Page 1 of 22 Goto page 1, 2, 3 ... 20, 21, 22  Next
All times are GMT
Jump to:  


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