GithubHelp home page GithubHelp logo

dhs / rat Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 2.17 MB

PHP/MySQL boilerplate web app

Home Page: https://groups.google.com/group/team-rat

License: Other

ApacheConf 8.13% PHP 54.29% JavaScript 18.12% HTML 19.46%

rat's People

Contributors

dhs avatar samueljamesbell avatar timw4mail 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

Watchers

 avatar  avatar  avatar  avatar  avatar

rat's Issues

Controller filters

For authentication and such. Could be done after controller is constructed but before routing in Application::initialise().
User authentication should be a lib file.
Create a list of filters (referencing lib files) to run and when. Check before routing each time whether to run function.

Maybe useful for first-run setup?

Exception handling

Form errors, 404s, application level errors. Catch in Application.php

Aliases for routes

Alias system to allow neater URLs.

link_to() function should generate alias URLs where possible.

Tidy up SQL queries

  • List methods should only query the database for the ids then use get method
  • Hardcode fields to return in get methods (no more SELECT *)

More logical models

Move methods like Comment::list_item to Item::comments.
Change unnecessary static methods to instance methods.
Update refs.

Beta and private switches

Beta mode - only allow beta signup.
Private block all pages except for logged in users and those in public_pages array.

Autoload models

Scan models folder for available files then loop and include each one.

Finish updating controllers

Done:

  • Comments
  • Likes
  • Pages
  • Sessions

Todo:

  • Admin
  • Ajax (follow and unfollow)
  • Invites
  • Items
  • Reset (add into users)
  • Settings (add into users)
  • Search (fix results)
  • Signup (add into users)

Dynamic pages

Pages should have their own database table and content should be loaded from there rather than view files.

Plugins 2.0

Proposal for plugins 2.0: single file containing views, models, controllers and custom SQL to run.
Also custom routes, possibly in app config.

Flash messages

Error, notice and success messages set in the session.

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.