How to show error page in CMS CMS?

How to show error page in CMS CMS?

By default, any errors will be shown with a detailed error page containing the file contents, line number, and stack trace where the error occurred. You can display a custom error page by setting the configuration value debug to false in the config/app.php script, and creating a page with the URL /error.

How is the page URL defined in CMS?

URL syntax. The page URL is defined with the url configuration parameter. URLs should start with the forward slash character, and can contain parameters. URLs without parameters are fixed and strict. In the following example, the page URL is /blog.

How to access the URL parameter in October CMS?

URL parameters can be accessed by October components or from the page PHP code section. This is how you can access the URL parameter from the page’s PHP section (see the Dynamic pages section for more details): Parameter names should be compatible with PHP variable names.

Where do you find Page configuration in CMS?

Page configuration is defined in the Configuration Section of the page template file. The page configuration defines the page parameters, required for the routing and rendering the page and its Components, which are explained in another article. The following configuration parameters are supported for pages:

How to retrieve the contents of a variable?

‘ variable called “FullName”. ‘ Retrieve the contents of the document variable. NOTE: The following error message appears if the Variable name is already set in the document: Run-Time Error “5903”: The Variable name already exists. You must delete the name or just reset the value argument.

Do you need HTM extension for PHP CMS?

The files should have the htm extension. The Configuration and Twig template sections are required for pages, but the PHP section is optional. Below, you can see the simplest home page example: Page configuration is defined in the Configuration Section of the page template file.

What do you need to know about October CMS?

Any dynamic page requires variables. In October, variables may be prepared by the page, layout PHP section, or by Components. In this article, we describe how to prepare variables in the PHP section.