Home Page

1. Special Controllers

Mobile: Mobile
Backend: Admin
RSS: RSS
Console: Call this only from command line

Also the above controllers are reserved words so you cannot have an action called admin or rss in frontend

2. URL Pattern

The default module is frontend, so the URL's will be in the form:
/controller/action/var1/value-of-var1/var2/value-of-var2/

and in the admin the URL's will be:
/admin/controller/action/var1/value-of-var1/var2/value-of-var2/

3. Adding a new Controller

To add a controller called Articles in the frontend, you need to add 3 files:

  • CONTROLLER: controllers/frontend/articlesController.php , which contains the switch
  • MODEL: DotKernel/frontend/Articles.php, which contains the class Articles
  • VIEW: DotKernel/frontend/views/articlesView.php, which contains the class Articles_View

As well as the folder templates/frontend/articles/ with the necessary template files.
In config/router.xml, inside the <controller> tag, add: <frontend>Articles<frontend>

Admin Panel Login

www.your-site.com/admin
username: admin
password: dot