URL pattern
This post refers to DotKernel 1, based on Zend Framework 1.
If you are looking for DotKernel 3 related posts, go here.
If you are looking for DotKernel 3 related posts, go here.
In DotKernel, we don’t use GET parameters in links or GET methods in forms.
For the default module – frontend – all URL’s have this format:
/controller/action/var1/value-of-var1/var2/value-of-var2/
Let’s take this link as an example:
http://v1.dotkernel.net/article/list/categoryId/7/page/3
module = frontend - by default
controller = article
action = list
var1 = categoryId
value-of-var1 = 7
var2 = page
value-of-var2 = 3
For other modules, the URL has this format :
module/controller/action/var1/value-of-var1/var2/value-of-var2/
For example, the admin module has this:
http://v1.dotkernel.net/admin/user/logins/id/1/page/2
module = admin
controller = user
action = logins
var1 = id
value-of-var1 = 1
var2 = page
value-of-var2 = 2
Leave a Reply