Example #1
0
 /**
  * @param Framework $app
  */
 protected function detectCurrentLnFromRequestUri(Framework $app)
 {
     $langIds = array_keys($this->settings);
     $url = $app->getUri();
     if (preg_match('~^/(' . implode('|', $langIds) . ')/~', $url, $matches)) {
         $this->inUrl = true;
         $this->current = $matches[1];
     }
 }
 /**
  * @param array $data
  */
 protected function appendData(array $data)
 {
     $this->app->appendDataToView($data);
 }