03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

File-Based CMS 327<br />

20 ==<br />

21 ";<br />

22<br />

23 $name = "layouts/" . Input::get("name") . ".blade.php";<br />

24<br />

25 $this->filesystem->write($name, $meta . Input::get("code"));<br />

26<br />

27 return Redirect::route("admin/layout/index");<br />

28 }<br />

29<br />

30 return View::make("admin/layout/add");<br />

31 }<br />

.<br />

This was extracted from app/controllers/LayoutController.php.<br />

1 @extends("admin/layout")<br />

2 @section("navigation/layout/class")<br />

3 active<br />

4 @stop<br />

5 @section("content")<br />

6 @include("admin/include/layout/navigation")<br />

7 <br />

8 <br />

9 Name<br />

10 <br />

11 {{ $errors->first("name") }}<br />

12 <br />

13 <br />

21 <br />

22 <br />

23 Meta Title<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!