2017-07-30 1 views
0

Essayer d'exécuter l'application Zend Framework, mais cette erreur apparaît:Zend Framework: ERR (3): erreur de syntaxe, (T_ENDIF) 'endif' inattendu, fin attendre de fichier

2017-07-30T18:40:50+03:00 ERR (3): syntax error, unexpected 'endif' (T_ENDIF), expecting end of file 

Dans le fichier, il highlighs il y a juste ce qui suit:

<? if (count($this->tickets)) : ?> 
<tbody class="tickets"> 
<?php foreach ($this->tickets as $ticket) : ?> 
... 
<?php endforeach; ?> 
</tbody> 
<?php endif;?> 

Quelqu'un pourrait-il savoir comment résoudre ce problème?

Répondre

0

Cela pourrait être l'ouverture de la balise PHP. Remplacez <? if (... par <?php if (... sur la première ligne. Vous pouvez également définir short_open_tag=On dans le fichier de configuration php.ini.

+0

Mon Dieu! Oui tu as raison! Si simple! –