Welcome Guest, Not a member yet? Register   Sign In
How to use LayoutView with parser?
#11

As the Codeigniter 4 manual says, you can use the following:
PHP Code:
    $data = [
            'blog_title'  => 'My Blog Title',
            'blog_heading' => 'My Blog Heading'
    ];
    
    
echo $parser->setData($data)
                ->render('blog_template'); 
Reply


Messages In This Thread
How to use LayoutView with parser? - by aleckyann - 08-14-2020, 10:40 AM
RE: How to use LayoutView with parser? - by Kenn38 - 02-10-2022, 07:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB