Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying FuelPHP Application Development Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
FuelPHP Application Development Blueprints

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
4.4 (5)
close
close
FuelPHP Application Development Blueprints

FuelPHP Application Development Blueprints

4.4 (5)
By: Sebastien Drouyer

Overview of this book

This book is for intermediary to seasoned web developers who want to learn how to use the FuelPHP framework and build complex projects using it. You should be familiar with PHP, HTML, CSS, and JavaScript, but no prior knowledge about MVC frameworks is required.
Table of Contents (8 chapters)
close
close
7
Index

The Parser package and template engines


You may notice that we added the parser package into the always_load.package key. Thanks to this package, instead of writing our view in PHP, we are able to use template engines. For those of you that are not familiar with template engines, they allows us to write our view files in a different syntax.

For instance, a list of items might be displayed by writing the following code in PHP:

<h1>Items</h1>
<?php foreach ($items as $item) { ?>
    <li><?php echo $item->title ?></li>
<?php } ?>
<a href="item/create">Create an item</a>

But, using the HAML template engine, it can be written like this:

%h1 Items
- foreach ($items as $item)
  %li
    = $item->title
%a(href="item/create") Create an item

Alternatively, by using the Mustache template engine, it can be written like this:

<h1>Items</h1>
{{#items}}
  <li>{{title}}</li>
{{/items}}
<a href="item/create">Create an item...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
FuelPHP Application Development Blueprints
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon