-
Notifications
You must be signed in to change notification settings - Fork 0
The mvc controller
Jonathonbyrd edited this page Apr 1, 2011
·
1 revision
The functions controller allows any developer to maintain a simple MVC structure within wordpress. The controller will loop through all registered paths looking for the models and then the views. If the controller locates the model, it will load the model and not the view.
set_controller_path( $name );
$name
The path to the new folder you're registering.
get_show_view( $name, $args );
$name
The file name within the model or view folders
show_view( $name, $args );
$name
The path to the new folder you're registering.
$args
Send anything that you want to your model or view files.
do_require_once( $name );
$name
The path to the new folder you're including.