示例#1
0
文件: Album.php 项目: efueger/luya
 public function getDetailUrl($contextNavItemId = null)
 {
     if ($contextNavItemId) {
         return \luya\helpers\Url::toModule($contextNavItemId, 'gallery/album/index', ['albumId' => $this->id, 'title' => \yii\helpers\Inflector::slug($this->title)]);
     }
     return \luya\helpers\Url::to('gallery/album/index', ['albumId' => $this->id, 'title' => \yii\helpers\Inflector::slug($this->title)]);
 }
示例#2
0
文件: Article.php 项目: efueger/luya
 public function getDetailUrl($contextNavItemId = null)
 {
     if ($contextNavItemId) {
         return \luya\helpers\Url::toModule($contextNavItemId, 'news/default/detail', ['id' => $this->id, 'title' => \yii\helpers\Inflector::slug($this->title)]);
     }
     return \luya\helpers\Url::to('news/default/detail', ['id' => $this->id, 'title' => \yii\helpers\Inflector::slug($this->title)]);
 }