Author |
Message |
Topic: Smarty Template not taking custom functions |
Code62
Replies: 1
Views: 3715
|
Forum: General Posted: Mon Oct 24, 2011 12:56 pm Subject: Smarty Template not taking custom functions |
Is the same smarty version used in both cases ?
with smarty 2, $object->method()->method() doesn't work; it does only since smarty 3 |
Topic: Warning in debug.tpl |
Code62
Replies: 2
Views: 5051
|
Forum: Bugs Posted: Mon Oct 24, 2011 12:54 pm Subject: Warning in debug.tpl |
( xhtml valid code would be "<br />" not </br> ) |
Topic: Class et foreach |
Code62
Replies: 2
Views: 9291
|
Forum: Language: French Posted: Wed Sep 28, 2011 11:11 am Subject: Class et foreach |
Salut,
Si j'ai bien compris, ceci devrait faire l'affaire:
php
$smarty->assign(array(
'ARTICLES' => $articles,
'MACLASS' => $MaClass
));
tpl
{f ... |
Topic: Réccupérer la valeur d'une dans une section |
Code62
Replies: 2
Views: 9241
|
Forum: Language: French Posted: Mon Sep 19, 2011 9:34 am Subject: Réccupérer la valeur d'une dans une section |
Salut,
Ceci pourrait répondre à ton besoin (si je l'ai bien compris -- et si tu n'as pas reglé la question toi-meme, au bout de plus d'un mois ^^"):
{section name="produtcs" lo ... |
Topic: plugin jquery |
Code62
Replies: 1
Views: 8005
|
Forum: Language: French Posted: Mon Sep 19, 2011 9:10 am Subject: plugin jquery |
Bonjour,
Quel est exactement ton problème ?
A priori, charger jQuery depuis un template Smarty se fait exactement de la même façon que depuis n'importe quel fichier html traditionnel:
<script ... |
Topic: Help needed please with error following template edit |
Code62
Replies: 4
Views: 11647
|
Forum: General Posted: Tue Jun 21, 2011 3:24 pm Subject: Help needed please with error following template edit |
How do I flush the directory? You mean delete everything from it?
How are the files then recreated?
exactly
smarty will recreate the file when it will "need" them, don't worry about ... |
Topic: Using a Smarty template in a jQuery tab |
Code62
Replies: 2
Views: 6631
|
Forum: General Posted: Tue Jun 21, 2011 1:25 pm Subject: Using a Smarty template in a jQuery tab |
Hello,
Can we see the AJAX error ?
Are you sure your html is well formed ? (the browsers are more tolerant than jquery, it could appear normally when directly invoked, but crashe the javascript)
... |
Topic: [Solved][Smarty3] _smarty_include() is not used anymore |
Code62
Replies: 3
Views: 5852
|
Forum: General Posted: Tue Jun 21, 2011 1:14 pm Subject: [Solved][Smarty3] _smarty_include() is not used anymore |
Thanks a lot for these explainations !
I directly relied on the "default_template_handler_func", and with just some minors adaptations i was able to use the same code that i used in my &q ... |
Topic: controle d'accés a une interface suivant les profils |
Code62
Replies: 2
Views: 8011
|
Forum: Language: French Posted: Tue Jun 21, 2011 12:59 pm Subject: controle d'accés a une interface suivant les profils |
Salut,
Est ce que ta demande ne sort pas un peu du cadre de Smarty ?
A priori tu devrais faire ces controles d'accès en "php pur", et si l'utilisateur a accès à une page php donnée, c ... |
Topic: Help needed please with error following template edit |
Code62
Replies: 4
Views: 11647
|
Forum: General Posted: Tue Jun 21, 2011 12:49 pm Subject: Help needed please with error following template edit |
Hello,
require_once(SMARTY_CORE_DIRcore.load_plugins.php)
it seems that the constant "SMARTY_CORE_DIR" is not interpreted, and is concatened as a string with the rest of the path...
C ... |
Topic: [Solved][Smarty3] _smarty_include() is not used anymore |
Code62
Replies: 3
Views: 5852
|
Forum: General Posted: Tue Jun 21, 2011 11:52 am Subject: [Solved][Smarty3] _smarty_include() is not used anymore |
Hello,
I'm working on a pretty big software that i just migrate from Smarty 2 to Smarty 3.
Previously, I extended the Smarty 2 class and overrode the _smarty_include() method to make it search ... |
Topic: Passage de smarty 2 à smarty 3 |
Code62
Replies: 2
Views: 9280
|
Forum: Language: French Posted: Tue Jun 21, 2011 11:24 am Subject: Passage de smarty 2 à smarty 3 |
Salut,
Dans Smarty 3, le nom du fichier a inclure doit être entouré de quotes si il contient des caractères spéciaux:
== Unquoted Strings ==
Smarty 2 was a bit more forgiving (and ambiguous) ... |
|