Пример #1
0
 function edit_action($nodeId)
 {
     $api = new StorageExport();
     $node = $api->getNode($nodeId);
     if (!$node) {
         throw new Exception('jh.u_notfound');
     }
     $this->set('node', $node)->set('title', '编辑节点')->setView('tpl/node_edit.phtml');
 }