Created
March 25, 2015 08:31
-
-
Save oktayacikalin/6918fb396a83b9f00537 to your computer and use it in GitHub Desktop.
Reusing/Sharing a frontend template in admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __construct() | |
{ | |
parent::__construct(); | |
$this->setData('area','frontend'); | |
$this->setTemplate('customer/online.phtml'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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