A quick tutorial to learn the Fuel PHP framework by building a quick messaging application with users and comments.
We use this tutorial in our new employee training to teach incoming developers PHP and give them exposure to Fuel.
A final working copy of the FuelPHP Crash Course Tutorial
Home Page: http://ucfopen.github.io/fuelphp-crash-course/
A quick tutorial to learn the Fuel PHP framework by building a quick messaging application with users and comments.
We use this tutorial in our new employee training to teach incoming developers PHP and give them exposure to Fuel.
The code residing in the messages controller directly under "Showing the Comments" in the tutorial doesn't work. Ian was kind enough to insert this, which does. It should replace what was previously shown in the tutorial.
public function action_view($id = null)
{
$message = Model_Message::find($id);
// get an array of comment models for this message
$comments = DB::select()
->from('comments')
->where('mid', $id)
->as_object('Model_Comment')
->execute()
->as_array();
// jam the objects into an array for the view
$data = array(
'message' => $message,
'comments' => $comments,
);
// setup view
$this->template->title = "Message";
$this->template->content = View::forge('messages/view', $data);
}
Under "Every Building Needs a Scaffold", the sentence
"The ‘ID’, ‘created on’, and ‘updated on’ columns are made automatically..."
should have 'created on' and 'updated on' changed to 'created at' and 'updated at' to match the screenshot.
Check in this section:
http://ucf.github.io/fuelphp-crash-course/#User_Controller_Registration_Function
$this is unusable inside static methods.
In the config.php file the 'always_load' array starting on line 249 and ending on line 300 is now commented out. The tutorial needs to mention that it should be uncommented along with the packages array on lines 262-264.
The online tutorial link directs to a 404.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.