phecht / f3-crud

A simple CURD app based on F3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://github.com/phecht/f3-crud (Uses postgres and needs to setup .env2 and or set using heroku config commands. )

Fat-Free Framework

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

For details visit http://foysalmamun.wordpress.com/.

To create a new CRUD for a table:

  1. Make a DB script in db/.
  2. Copy a section of the routes.ini and change names of controller and route.
  3. Make a copy of a model.
  4. Change name to match DB name. Change the name in two places.
  5. Make a copy of a controller.
  6. Rename to name in routes.ini
  7. Update to have a constructor. Put call to create model in constructor.
  8. Change names to fit new model and routes.
  9. Copy a view folder to a non plural name and change DB field names to the ones needed.
  10. Added needed links to newheader2.htm
  11. Create a dashlist.htm for use in the dashboard.

About

A simple CURD app based on F3.


Languages

Language:HTML 55.8%Language:PHP 24.1%Language:PLpgSQL 17.8%Language:CSS 1.9%Language:Hack 0.5%Language:Shell 0.0%