Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

shorttags & namespaces
 
Anjanesh
Sr. Member
 
Avatar
Total Posts:  136
Joined:  2008-03-15
Mumbai, India
 

1. At first it was mentioned that PHP6 wont support short-tags in the form <?=$var;?>, but later, it was decided that they’ll keep <?.
But I wouldnt be surprised if they changed it back to kill <?=. Either way, its not a good idea. Having <?php ... ?> is always safe - esp when dealing with XML.
I suggest you to replace <?=$this-> to <?php echo $this-> in the next release.

2. Since you’re already using the latest features available, why not use namespaces for PHP 5.3 ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top