Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant instantiate Parser Directly. #787

Closed
jaynarayan89 opened this issue Oct 19, 2017 · 1 comment
Closed

Cant instantiate Parser Directly. #787

jaynarayan89 opened this issue Oct 19, 2017 · 1 comment

Comments

@jaynarayan89
Copy link
Contributor

jaynarayan89 commented Oct 19, 2017

If you try to create parser as described in user guide

$parser = new \CodeIgniter\View\Parser();

It gives following error:
Too few arguments to function CodeIgniter\View\Parser::__construct()

@lonnieezell
Copy link
Member

The docs seem to be out of date there. User $parser = Services::parser() instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants