[wp-hackers] GSOC Proposal: Improved Controller

Computer Guru computerguru at neosmart.net
Sun Mar 2 19:24:09 GMT 2008

On 2/29/08, Jacob Santos <wordpress at santosj.name> wrote:
> *Abstract*
>  Improving the current controller/query model to allow for simple hooking
>  for adding pages and queries. This will allow for even the most novice of
>  users to create pages not dependent of query vars and having the user
>  create pages with some tag. It will also allow better CMS capabilities.
>  *Solution*
>  * Single function for setting the permalink (also query path) and the
>  query. Then passing the function and/or page which will be redirected to.
>  * Improved API for adding query conditions (functions are easily added by
>  plugins, but need better way to hook into conditionals) with single
>  function/API.
>  * Will not change the concept of "Views" (see Template Work Flow).
>  * Create new library or improve current library for better testability
>  (current code might already have test cases).
>  * Arguments Against *
>  The current method works well and wouldn't need that much work to add the
>  above without to much refactoring. With improved documentation from
>  examples of the community, developers will know the ins and outs of the
>  Controller model.
>  --
>  Jacob Santos
>  http://www.santosj.name - Personal Blog
>  http://funcdoc.wordpress.com - WordPress Function Documentation Blog
>  _______________________________________________
>  wp-hackers mailing list
>  wp-hackers at lists.automattic.com
>  http://lists.automattic.com/mailman/listinfo/wp-hackers

Jacob, would this conform to a more MVC-style approach at content handling?

Also, a quick question: what about the overhead? (way I envision the
implementation is a checking incoming requests against an array of
stack<filters> and if it matches send it to the appropriate handler)
Every single request now has the burden of checking the correct
destination through a number of complicated steps (preg_match, etc.) -
even though most requests will probably pass through un-accosted

More information about the wp-hackers mailing list