Exemple #1
0
 /**
  * register the setting page and path settings values to the view
  */
 public static function setting()
 {
     Theme::setting(function () {
         $matched = self::settingData();
         $settings = AFormatter::objectiveSettings(Applum::find(1));
         View::make('admin/setting', ['matched' => $matched, 'settings' => $settings]);
     });
 }
 public static function gallery($data)
 {
     View::make('site/body/gallery/gallery', ['gallery' => $data->gallery]);
 }
 public function testMakeNotBlade()
 {
     $this->expectOutputString('other view');
     View::make("otherView", [], __DIR__);
 }