2008年12月19日星期五

RE: [fw-db] how to use

Hi,

 

you’ll need to enable short_open_tag in php.ini.

 

See http://cz2.php.net/ini.core for more information.

 

Regards

Jiří Helmich

 

From: Jaime Garcia [mailto:jgarcia@vali.com.mx]
Sent: Friday, December 19, 2008 9:15 PM
To: fw-db@lists.zend.com
Subject: [fw-db] how to use <?= to echo vars in views scripts?

 

Hello friends,

I’ve seen in some code examples in ZF documentation about echoing variables in view scripts like this:

 

<?= $this->var; ?>

 

 I tried out this in my view but doesn’t seem to work, unless I put all the echo instruction like this:

 

<?php echo $this->var ?>

 

Can anyone tell me how configure my project environment to work like the first option? I appreciate so much your help, thank you.

没有评论: