Welcome Guest, Not a member yet? Register   Sign In
codeigniter 4.5 loading view issue
#1

(This post was last modified: 05-27-2024, 12:37 PM by xsPurX.)

PHP Code:
function test()
        {
        
$this->test2();
        }

    function 
test2()
        {
        return 
view('/themes/default_2024/layouts/Gateway/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?
Reply


Messages In This Thread
codeigniter 4.5 loading view issue - by xsPurX - 05-27-2024, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB