![]() |
PHP Code: function test() I get a white screen when I do this. The reason I need this is for keeping my code clean, this is just an example, but I only get a white screen when I access the test method in the browser instead of the test.php view file. If I move the return view into the test function it of course loads. Is this a bug or intended functionality?
It is a bug in your code, not in a framework.
The test() method must return a string (or Response object). Quote:A Controller is simply a class file that handles an HTTP request. URI Routing associates a URI with a controller. It returns a view string or Response object. PHP Code: return $this->test2(); ![]() |
Welcome Guest, Not a member yet? Register Sign In |