WebEngine Application Start Page

If you got this far you have a running WebEngine environment that is serving up this default public/index.html page. WebEngine is a MVC (Model, View, Controller) framework, you need these three things to bring your application to life.

Controllers

To do anything usefull you will need to create controllers and views. Do this from your application directory with the webengine-controller command.

webengine-controller --controller Blog index post show

Once you have created a controller you can call the controller actions using the default routing. If there is no action specififed, the default action is index.

/blog

To specify an action, add it to the URL after the controller. The following may allow you to add a new post to your blog.

/blog/post

To specify an id for an action, add it to the URL after the action. The following may show the details for blog post with id 1. Note that the id must be numeric.

/blog/show/1

To pass any other URL based parameter will also be available to the controller action.

/blog?category=Business