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