CodeIgniter Forums

Full Version: how to use template parser?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am following the docs but get white blank page.

following is my code

PHP Code:
<?php namespace App\Controllers;


Home extends Controller
    public function 
$v = \Config\Services::parser();


it gives error of invalidargumentexception.

my template code is 

<!doctype html>
<title>Welcome to CodeIgniter</title>

<link rel="shortcut icon" type="image/png" href="/favicon.ico"/>
<h1>Testing parser class</h1>

// this is the right way
PHP Code:
$v = \Config\Services::parser(); 

It could be that the parser is not completed yet...

Hope that helps.
The issue with the Parser has been resolved. You should be good now.
(09-06-2017, 08:47 PM)kilishan Wrote: [ -> ]The issue with the Parser has been resolved.  You should be good now.

Thanks Smile