Closed mateoagudelo closed 7 years ago
I have this:
index.php: <?php require 'vendor/autoload.php'; $plantillas = new League\Plates\Engine('views'); $plantillas->addFolder('public', 'views/public'); echo $plantillas->render('public::header'); echo $plantillas->section('contenido'); ?>
<?php require 'vendor/autoload.php'; $plantillas = new League\Plates\Engine('views'); $plantillas->addFolder('public', 'views/public'); echo $plantillas->render('public::header'); echo $plantillas->section('contenido'); ?>
views/public/header.php: `<!DOCTYPE html>
Hola
start('contenido'); ?>
Welcome!
@mateoagudelo are you still having issues with this?
Closing this for now. If you still need help @mateoagudelo, please feel free to continue the discussion here.
I have this:
index.php:
<?php require 'vendor/autoload.php'; $plantillas = new League\Plates\Engine('views'); $plantillas->addFolder('public', 'views/public'); echo $plantillas->render('public::header'); echo $plantillas->section('contenido'); ?>
views/public/header.php: `<!DOCTYPE html>
Hola
start('contenido'); ?>
Welcome!
stop(); ?>` I get the following error: Fatal error: Uncaught Error: Call to undefined method League\Plates\Engine::section() in C:\xampp\htdocs\plate\index.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\plate\index.php on line 6 Please help!