Book Image

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
Book Image

FuelPHP Application Development Blueprints

By: Sebastien Drouyer

Overview of this book

Table of Contents (13 chapters)
FuelPHP Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Refining the front-end


We now have to refine the front-end of our website, that is to say what visitors will see.

Refining the posts' listing

If you request the following URL:

http://myblog.app/blog/post

You will see the scaffold we generated earlier with scaffold/orm.

Deleting useless features

The first important thing to do is to prevent any edition on our posts. As we did several times for the administration panel, remove the create, edit and delete actions of the Post controller and their associated views. Note that, here, we are talking about the Post controller located at BLOGPATH/classes/controller/post.php, since we are working on the website's front-end. You can also delete the BLOGPATH/views/admin/post/_form.php view file, as it is only called from the create and edit views.

Changing how the posts' listing is displayed

Currently, the posts' listing is displayed in a table and, for our blog, we want to display the list more linearly, as most blogs are displayed.

The simplest way is to...