How to call Phtml file from Controller of Magento

View previous topic View next topic Go down

How to call Phtml file from Controller of Magento

Post  Admin on Thu Dec 29, 2011 2:38 pm

Hi,

Please Write this code in Any Controller Action:


Mage::register('testing', $variable);

Where
testing: phtml file name
$variable : Pass any data through this variables.


Note: Controller and phtml file should be in same folder structure...

Admin
Admin

Posts: 42
Join date: 2011-10-22
Age: 28
Location: New Delhi

View user profile http://magento.forum.net.bz

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum