2008年12月19日星期五

RE: [fw-db] how to use

I read twice and I found my own answer  =)

 

From php.ini:

 

“servers which are not under your control”

 

Regards!

 

De: Jaime Garcia [mailto:jgarcia@vali.com.mx]
Enviado el: Viernes, 19 de Diciembre de 2008 03:09 p.m.
Para: fw-db@lists.zend.com
Asunto: RE: [fw-db] how to use <?= to echo vars in views scripts?

 

It worked great! thanks a lot Jiří   =)

 

BTW there is a warn about issues for unsuported servers, i know this isn’t the correct list to ask this folks, but anyone knows if this incompatibility is specific to any OS or just to have the right privileges on the server?

 

Again, thank you for your help!!

 

De: Jiří Helmich [mailto:jiri@helmich.cz]
Enviado el: Viernes, 19 de Diciembre de 2008 02:19 p.m.
Para: 'Jaime Garcia'; fw-db@lists.zend.com
Asunto: RE: [fw-db] how to use <?= to echo vars in views scripts?

 

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.

没有评论: