コード例 #1
-1
ファイル: Theme.php プロジェクト: vjcspy/izcore
 /**
  * Set data to view of current path
  *
  * @param \Teepluss\Theme\Theme $theme
  * @param                       $path
  *
  * @return $this
  */
 public function initViewData(\Teepluss\Theme\Theme $theme, $path)
 {
     /*Merge from another modules*/
     $this->initAdditionData($path);
     if (isset($this->data[$path])) {
         foreach ($this->data[$path] as $items) {
             foreach ($items as $k => $item) {
                 $theme->set($k, $item);
             }
         }
     }
     return $this;
 }