Novius OS front-office controller
Use Nos::main_controller to retrieve its instance and call the methods.
Returns: | Current Model_Page displayed. |
---|
Returns: | Current absolute URL. |
---|
Returns: | Relative (to Controller_Front::getContextUrl) URL of the current page. |
---|
Returns: | Relative (to Controller_Front::getContextUrl) URL of the current URL enhancer.
False if no current URL enhancer.
|
---|
Same that Controller_Front::getPageUrl ending with / instead of .html.
Returns: | Part of the URL processed by the URL enhancer.
False if no current URL enhancer.
|
---|
Returns: | The current item displayed. |
---|
New in version 4.1.
param Model $item: The current Model instance displayed. param array $properties: Array of properties param array $templates: Array of templates use to set properties
New in version 4.1: Set de current item displayed, by default this item is the page displayed, but can be call by an URL enhancer. This method set automatically title, h1, meta_description and meta_keywords for the current HTML.
Parameters: |
|
---|
Parameters: |
|
---|
param string $title: Set a new H1 for the current HTML. param string $template: If set, use it to calculate the H1. Placeholders :h1 will be replaced by $h1.
New in version 4.1.
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Returns: | Boolean, true if current page is requested in the preview mode. |
---|
Disable caching and cache retrieve of the current page.
Parameters: |
|
---|
Parameters: |
|
---|
Add or replace a header to current response. Headers will be saved in cache.
Parameters: |
|
---|
Returns a (dot notated) custom data of the current process.
Parameters: |
|
---|---|
Returns: | The custom data or default if not found. |
Sets a (dot notated) custom data to the current process.
Parameters: |
|
---|
Replace the template by a specific content and stop treatments
Parameters: |
|
---|
Add a cache suffix handler for the current page
Parameters: |
|
---|---|
Returns: | The cache instance if the cache path have changed, null otherwise. |