| FAQ |
| Kalender |
|
|
|
|
#1 | ||
|
|||
|
Flitig postare
|
Vad är det för fel i denna kod?
<?php if $cust32->hasValue()) { include $this->loadTemplate( 'sub_map.tpl.php' ); } else { include $this->loadTemplate( 'sub_picture.tpl.php' ); } ?> Jag vill att sub_map skall visas om cust32 är ifylld, annars skall sub_picture visas. |
||
|
|
Svara med citat
|
|
|
#2 | ||
|
|||
|
Medlem
|
Citat:
Tips är att använda PHP-taggen så det blir mer läsbart: PHP-kod:
FEL: if $cust32->hasValue()) { RÄTT: if($cust32->hasValue()) { |
||
|
|
Svara med citat
|
| Svara |
| Ämnesverktyg | |
| Visningsalternativ | |
|
|