Cakephp
Résolu
RandaH
Messages postés
32
Date d'inscription
Statut
Membre
Dernière intervention
-
RandaH Messages postés 32 Date d'inscription Statut Membre Dernière intervention -
RandaH Messages postés 32 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Je ne sais pas pourquoi <?php else: ?> et <?php endif;> ne fonctionnent pas en cakephp,
Quelqu'un peut m'aider?
Voici mon code
<?php if(AuthComponent::user('id')); ?>
<?php echo $this->Html->link("Se déconnecter", array('action' =>'logout','controller'=>'users')); ?>
<?php else: ?>
<?php echo $this->Html->link("Mon compte", array('action' =>'edit','controller'=>'users')); ?>
<?php echo $this->Html->link("Se connecter", array('action' =>'login','controller'=>'users')); ?>
<?php echo $this->Html->link("S'inscrire", array('action' =>'signup','controller'=>'users')); ?>
<?php endif; ?>
Je ne sais pas pourquoi <?php else: ?> et <?php endif;> ne fonctionnent pas en cakephp,
Quelqu'un peut m'aider?
Voici mon code
<?php if(AuthComponent::user('id')); ?>
<?php echo $this->Html->link("Se déconnecter", array('action' =>'logout','controller'=>'users')); ?>
<?php else: ?>
<?php echo $this->Html->link("Mon compte", array('action' =>'edit','controller'=>'users')); ?>
<?php echo $this->Html->link("Se connecter", array('action' =>'login','controller'=>'users')); ?>
<?php echo $this->Html->link("S'inscrire", array('action' =>'signup','controller'=>'users')); ?>
<?php endif; ?>
Merci beaucoup Pitet,
Bonne journée