Skip to content

Commit

Permalink
Fix typos in HACKING. Props turn-on-social. Fixes #426
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavf committed Mar 30, 2015
1 parent f482cdf commit a29198c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HACKING
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
HOW TO FIND YOUR WAY AROUND THE GLOTPRESS CODEBASE?

Say you want to fix a bug, add a feature, or understand how something in GlotPress works. You came to the rigth place.
Say you want to fix a bug, add a feature, or understand how something in GlotPress works. You came to the right place.

First, GlotPress shares a lot with WordPress, bbPress and actually uses BackPress. Familiarity with these systems will be helpful.

The structure of the project is very MVC-like. Models are called Things, Views are Templates and Controllers are Routes.

*** Routes ***

Each route is reponsible for some URL pattern. For example the method single() of the class GP_Route_Project is reponsible for
Each route is responsible for some URL pattern. For example the method single() of the class GP_Route_Project is responsible for
URLs like /project/{project-slug}.

The active route is chosen by the router in gp-includes/router.php. It's a simple loop over some regular expressions. The first match wins.
Expand Down Expand Up @@ -62,7 +62,7 @@ You will need to install phpunit: http://www.phpunit.de/manual/current/en/instal
- route: capabilities checks
- route: headers for download, stuff like that
- templates: helpers
- tamplates: links function
- templates: links function
- tests
- init phase
- plugins: where to put
Expand Down

0 comments on commit a29198c

Please sign in to comment.