URL mapping


In Zera the url mapping are in two general groups, docs and Modules.

docs

In Zera all the docs are accessed by url on lower case. This documents may be a blog entry, a page or a static html file.

/document_url

Modules

In Zera the modules are accessed by his name on Camel Case, each module may have a different use.

/Docs

The camel case sintaxis tell Zera to use that module to process the request, on this example the Docs module.

Read and Use the URL parts on the module

Inside the module you may access all the url parts.

/Controller/View/SubView

By using the param function.

$self->param('Controller');
$self->param('View');
$self->param('SubView');