here 2 versions of testcontroller, think same, testcontroller calls welcome.blade.php file.
as result of code, 'welcome' view shown.
class testcontroller extends controller { public function first($status) { if($status==0) return view::make('welcome'); } }
but code creates blank page.why happens?
class testcontroller extends controller { public function test() { return view::make('welcome'); } public function first($status) { if($status==0) $this->test(); } }
you should return view controller method:
public function first($status) { if ($status === 0) return $this->test(); } }
Comments
Post a Comment