WebBasic CMS


Controller - root function that returns generated in accordance with the request content. The router takes the HTTP request, razbirat it routes to a particular controller. The controller returns the generated code corresponding to the request.

WebBasic include some default controllers:

  • engine - handles the entry, output and user registration  system
  • form - controls output forms and templates
  • ajax  - handler ajax requests
  • module - controls the display of modules
  • thumbnails - manage thumbnails

To extend the system's capabilities, you can create additional controllers. To do this, create a php file with your controller name in the directory /controllers. Register and manual of the router in /router.ini or via a function call wbRouterAdd().