developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 14 years ago
Closed 13 years ago
#10 closed bug (fixed)
jtpl utiliser $foo en tant que propriété
Reported by: | laurentj | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | jTpl 1.0 |
Component: | jelix:tpl | Version: | |
Severity: | major | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | ||
Hosting Provider: | Php version: |
Description
Actuellement, on ne peut pas faire
{$thisVar->$pageType->structure}
où $pagetype contiendrait le nom d'une propriété. En effet cela génère
<?php echo $t->_vars['thisVar']->$t->_vars['pageType']->structure ?>
Ce qui n'est pas le résultat attendu, à priori.
Étudier la solution d'un extract($t->_vars) dans la fonction du template générée par jtpl
Change History (2)
comment:1 Changed 14 years ago by laurentj
- Milestone set to Jtpl 1.0
comment:2 Changed 13 years ago by laurentj
- Resolution set to fixed
- Status changed from new to closed
- Type changed from enhancement to bug
Note: See
TracTickets for help on using
tickets.
corrigé dans le trunk