Skip to content

Instantly share code, notes, and snippets.

@oktayacikalin
Created March 25, 2015 08:31
Show Gist options
  • Save oktayacikalin/6918fb396a83b9f00537 to your computer and use it in GitHub Desktop.
Save oktayacikalin/6918fb396a83b9f00537 to your computer and use it in GitHub Desktop.
Reusing/Sharing a frontend template in admin
public function __construct()
{
parent::__construct();
$this->setData('area','frontend');
$this->setTemplate('customer/online.phtml');
}
<block... template="customer/online.phtml"> <action method="setArea"><params>frontend</params></action> </block>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment