/ Published in: PHP
Expand |
Embed | Plain Text
<?php // This... $productId = $_GET['product_id']; // ...is the same as ... $productId = Mage::app()->getRequest()->getParam('product_id'); // The second parameter to getParam allows you to set a default value // The default value is returned if the GET value you're looking for isn't set $productId = Mage::app()->getRequest()->getParam('product_id', 44); ?>
You need to login to post a comment.
