public function testDisplayWithArgNotBlade() { $this->expectOutputString('hasan gilak'); $finder = new \Wp\View\Finder(); $finder->viewsDirection = __DIR__; $view = new Wp\View\View($finder); $view->display(['path' => __DIR__ . '/arg.php', 'isBlade' => false], ['name' => 'hasan gilak']); }
/** * 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 testGetInstanceWithArg() { @View::getInstance(__DIR__); $this->assertEquals(__DIR__, View::$view->finder->viewsDirection); }