dhs / rat Goto Github PK
View Code? Open in Web Editor NEWPHP/MySQL boilerplate web app
Home Page: https://groups.google.com/group/team-rat
License: Other
PHP/MySQL boilerplate web app
Home Page: https://groups.google.com/group/team-rat
License: Other
Based on controller name.
On a fresh install, if the admin puts his email in the invite form before admin/setup, login and signup behave oddly.
The app name displays both in the header bar, and next to the page title. Is this necessary?
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?
Form errors, 404s, application level errors. Catch in Application.php
Alias system to allow neater URLs.
link_to() function should generate alias URLs where possible.
link_to($controller, $view, $id)
/themes/default/css/ -> public/css/
/js/ -> public/js/
Update .htaccess accordingly.
Are any static images used?
redirect_to is currently tacked on the end of quite a few forms action urls
See js/rat.js.
Could probably be consolidated into one function?
Move constructor logic to lib/filters.php
Remove user_id parameter from calls.
Move methods like Comment::list_item to Item::comments.
Change unnecessary static methods to instance methods.
Update refs.
Tab indenting to the current level on all blank lines
Beta mode - only allow beta signup.
Private block all pages except for logged in users and those in public_pages array.
Scan models folder for available files then loop and include each one.
If statements without curly braces were a bad call on my part as they're liable to break if people try to extend them.
Done:
Todo:
Pages should have their own database table and content should be loaded from there rather than view files.
Classes of helper functions loaded by each controller.
Separation of config file into app config and server config should help.
Proposal for plugins 2.0: single file containing views, models, controllers and custom SQL to run.
Also custom routes, possibly in app config.
Error, notice and success messages set in the session.
Also content.
Finished User
Should now use url_for instead of link_to(NULL). No backwards compatibility.
Remove calls to include 'foo.php' from each controller.
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.