thephpleague / plates

Native PHP template system
https://platesphp.com
MIT License
1.47k stars 180 forks source link

I need help creating a section #129

Closed mateoagudelo closed 7 years ago

mateoagudelo commented 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'); ?>

views/public/header.php: `<!DOCTYPE html>

Hola esta es la plantilla

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!
ragboyjr commented 7 years ago

@mateoagudelo are you still having issues with this?

reinink commented 7 years ago

Closing this for now. If you still need help @mateoagudelo, please feel free to continue the discussion here.