Example #1
0
 /**
  * Send relative path (from Magento base url) to our app/partials directory
  *
  * @return string
  */
 public function partialsurlAction()
 {
     if (!$this->_helper->isEnabledInAdmin()) {
         $this->_sendJson(array('success' => false, 'message' => 'Not authorized'), self::UNAUTHORIZED);
         return $this;
     }
     $this->_sendJson($this->_partialsDir, self::SUCCESS);
 }