Example #1
0
 /**
  * The CMS controller executes this method every time when the page or layout loads.
  * Set the Segment Write Key with the Settings value.
  * @return null
  */
 public function onRun()
 {
     $this->page['write_key'] = \AxC\Segment\Models\Settings::get('write_key');
 }