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

Scaffolding the posts


We will now, as we did in Chapter 1, Building Your First FuelPHP Application and Chapter 2, Building a To-do List Application, generate the necessary code to handle our posts. Since posts should only be created and edited by authenticated administrators in an administration panel, we will generate the scaffold using admin (alias admin/orm):

php oil generate admin post title:string slug:string small_description:string[200] content:text category_id:int user_id:int

The command should output the following:

Creating controller: APPPATH/classes/controller/base.php
Creating controller: APPPATH/classes/controller/admin.php
Creating views: APPPATH/views/admin/template.php
Creating views: APPPATH/views/admin/dashboard.php
Creating views: APPPATH/views/admin/login.php
Creating migration: APPPATH/migrations/001_create_posts.php
Creating model: APPPATH/classes/model/post.php
Creating controller: APPPATH/classes/controller/admin/post.php
Creating view: APPPATH/views/admin/post/index...
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