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

Installation #7

Closed
packytagliaferro opened this issue Apr 12, 2016 · 0 comments
Closed

Installation #7

packytagliaferro opened this issue Apr 12, 2016 · 0 comments

Comments

@packytagliaferro
Copy link

I pulled this in via composer then added this to my index.php file

<?php
/*
|--------------------------------------------------------------------------
| Register The Auto Loader For Blade 
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

require 'vendor/autoload.php';

use Jenssegers\Blade\Blade;

$views = __DIR__ . 'app/views';
$cache = __DIR__ . 'app/cache';

$blade = new Blade($views, $cache);    ?>

Then I made a home.blade.php file and a layout.blade.php file in my "app/views" directory. My home.blade.php just displays this in the browser

@extends('layout') @section('content')

Some content

@stop

It doesnt render anything. I am familiar with blade inside Laravel but it doesnt seem to be working in this project.

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