Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

v1.5.8 DB helper

ve3 edited this page Nov 23, 2014 · 1 revision

DB helper is the admin page to generate field properties for ORM.

To access DB helper.

Log in to admin page if you did not logged in.

Go to /dbhelper/admin Example: if your FuelStart is in http://localhost it will be http://localhost/dbhelper/admin

To generate field properties

  1. Select table you want
  2. Click on submit button
  3. Copy Short style properties. value
  4. Paste it in your ORM model Example:
<?php
class Model_Article extends \Orm\Model
{
    protected static $_properties = array('id', 'title', 'contents', 'publish');// This is what you got from DB helper.
}