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

(This post was last modified: 08-14-2020, 11:04 AM by jreklund.)

Hi guys Smile

I looked everywhere but I still haven't found ways to use the layout system when I render my pages through Parser ...

The pages created by the parser simply ignore the php codes responsible for using ViewLayout ...

Example:
Code:
echo $this->parser->setData($data)->render('website/pages/indexPage');

not work:
Code:
<?php $this->renderSection('css') ?>

not work:
Code:
{ $this->renderSection('css') }

Does anyone know how I can use them together?  Huh
Reply


Messages In This Thread
How to use LayoutView with parser? - by aleckyann - 08-14-2020, 10:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB