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); }
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); }