Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Oct 14, 2016
1 parent 07a431d commit 30b21e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions common/models/StaticPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,18 @@ public function rules()
{
return [
[['title', 'alias'], 'required'],
[['published'], 'integer'],
[['published', 'mainmenu_id'], 'integer'],
[['content'], 'string'],
[['created_at', 'updated_at'], 'safe'],
[['title', 'alias', 'title_browser'], 'string', 'max' => 255],
[['title', 'alias', 'route', 'title_browser'], 'string', 'max' => 255],
[['meta_keywords'], 'string', 'max' => 200],
[['meta_description'], 'string', 'max' => 160],
[['alias'], 'unique'],
];
}


public function getMainmenuItem()
{
return $this->hasOne(Mainmenu::className(), ['mainmenu_id' => 'id']);
}
}

0 comments on commit 30b21e6

Please sign in to comment.