コード例 #1
0
ファイル: Doc.php プロジェクト: Zjmainstay/php-doc-management
 function detailAction()
 {
     $out = array();
     $model = DocModel::getInstance();
     $path = $this->getRequest()->getParam('path');
     preg_match('/\\/([\\d\\.]+(-\\w+)?)\\.txt/', $path, $match);
     $out['arr'] = $model->parse($path, array('version' => $match[1]));
     $this->getView()->assign($out);
 }
コード例 #2
0
ファイル: Doc.php プロジェクト: ares333/php-doc-system
 function detailAction()
 {
     $out = array();
     $model = DocModel::getInstance();
     $path = $this->getRequest()->getParam('path');
     // v1.0.0-beta
     preg_match('/\\/(v[\\d\\.]+(-\\w+)?)/', $path, $match);
     $out['arr'] = $model->parse($path, array('version' => $match[1]));
     $this->getView()->getAdapter()->registerClass("Arrays", 'Ares333\\YafLib\\Helper\\Arrays');
     $this->getView()->assign($out);
 }