Git Product home page Git Product logo

fuelphp-crash-course's Introduction

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.

View the Tutorial

http://ucfopen.github.io/fuelphp-crash-course/

Contributors

Links

fuelphp-crash-course's People

Contributors

accell avatar frenjaminbanklin avatar iturgeon avatar loraxx753 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuelphp-crash-course's Issues

ReadMe.md

The online tutorial link directs to a 404.

Minor Semantics

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.

Broken Database Query

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); 
}

Changes to config.php

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.