/** * */ public function loadDefaultDesign() { $mdlDesign = new Model_Design(); $design = $mdlDesign->getDefaultDesign(); $mdlDesign->setDesign($design->id); //todo: this is duplicated in the builder //the design model returns the stylesheets organized by skin $skins = $mdlDesign->getStylesheets(); if (is_array($skins)) { foreach ($skins as $skin => $styles) { if (is_array($styles)) { foreach ($styles as $style) { $this->view->headLink()->appendStylesheet('/skins/' . $skin . '/styles/' . $style); } } } } $this->view->layout = $mdlDesign->getLayout(); }
public function getDesign($pageId) { $page = $this->find($pageId)->current(); $designId = $page->design; $mdlDesign = new Model_Design(); $mdlDesign->setDesign($designId); return $mdlDesign; }
/** * Delete action * * @return void */ public function deleteAction() { $mdlDesign = new Model_Design(); $id = $this->_request->getParam('id'); $mdlDesign->deleteDesign($id); $this->_forward('index'); }