Magento and PHP tricks

So this is really isn’t magento related so much as it’s a web development thing

php short tags are sorta neat.

But a big pain the the MVC if they are not on

there are many tags php supports



<% (asp style)

the last is not used often

but the second can also be used like <?=$my_var?>

which makes it very hard to clear up if php short tags are not turned on

so here it is

Turning php short tags on or off with .htaccess file

// On:
php_flag short_open_tag on
// Off:
php_flag short_open_tag off

Thats it for the day

Tags: , ,

About Custom Magento Development

Custom Magento Development is the blog of Collins Harper, a Vancouver based development firm completely dedicated to eCommerce development for the Magento platform. It is our extreme focus on Magento development that gives us an uncommon ability to deliver challenging requirements for our clients’ projects. It doesn’t matter if you require a custom module, or a complete eCommerce solution, our highly skilled team will make your project happen. For up-to-date information, upgrades, bug fixes and our newest modules, find us on Facebook and Twitter!

What do you think?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: