Magento Forum

   
The best place to play with code and practice
 
number25
Member
 
Total Posts:  64
Joined:  2008-07-12
 

I want to play around with the code. Grab queries like

$products Mage::getModel(’catalog/product’)->getCollection();

Where would be the best place to do this just to view all the results I get ??

 
Magento Community Magento Community
Magento Community
Magento Community
 
number25
Member
 
Total Posts:  64
Joined:  2008-07-12
 

Hey number25, What you do is take the same.index.php file that is located at the root of your magento folder. You make a copy of this file and name it whatever you want. Then you change the mage::run() to mage::app();

Below that line you can run just about any function the magento framework has to offer it doesnt run the template either so all you will see is your code when testing it.

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