/** * Creates an instance of the object and associates it with a CMS theme. * @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to. * If the theme is specified as NULL, then a query can be performed on the object directly. */ public function __construct(Theme $theme = null) { parent::__construct($theme); $this->viewBagValidationMessages = ['url.regex' => Lang::get('rainlab.pages::lang.page.invalid_url'), 'url.unique_url' => Lang::get('rainlab.pages::lang.page.url_not_unique')]; $this->placeholders = new PlaceholderList(); }
/** * Creates an instance of the object and associates it with a CMS theme. * @param array $attributes */ public function __construct(array $attributes = []) { parent::__construct($attributes); $this->customMessages = ['url.regex' => Lang::get('rainlab.pages::lang.page.invalid_url'), 'url.unique_url' => Lang::get('rainlab.pages::lang.page.url_not_unique')]; }