Login +

Administration / Controllers

In the SillySmart Back Office, you can add / modify / delete all the Controller layer via the menu "Controllers & Actions

Controllers / Actions

The Controllers / Actions describe all your pages ranked according to a functional logic.

Controllers

When you add a new Controller, you must complete the generic name of the Controller and the various translations in all languages ​​of your application.

The "Template" part is relative to XSL Layouts (more details in a specific part). You can assign to an entire Controller XSL template.

Once created the Controller, the following files are created:

  • Langs/Actions/Blog/__Blog.xx.lang.ph
  • Mvc/Controllers/Actions/Blog/__Blog.protected.php
  • Mvc/Views/Body/Blog/
  • Mvc/Views/Headers/Blog/
You can change all this information at any time.
If you choose to remove the controller, all actions of the latter will also be deleted.

Actions

When you add a new action, you must complete the generic name of the Action and the various translations in all languages ​​in your application.

You can also fill all the metas on this action: page title, description, keywords.

The "Domains" part is relative to the ability to map multiple domains on the same application (more details in a specific part). You can prevent access to an action from X areas.

The "Template" part is relative to XSL Layouts (more details in a specific part). You can assign an XSL template (template) specific to each Action.

The "Components" part is relative to Components (more details in a specific part). You can map the execution of N Components on each Action.

You can also specify whether this action will need to access dynamic parameters.

If you describe this action as the default action for this controller, it means that when someone only inform the Controller in the URL, it will fall into this Action.

If you describe this action as Offline, it will redirect the user to an error 307.

Finally, you can choose the directive to apply for search engines.

Once the action is created, the following files are created:

  • Langs/Actions/Blog/Index.xx.lang.php
  • Mvc/Controllers/Actions/Blog/Index.controller.php
  • Mvc/Views/Body/Blog/Index.xsl
  • Mvc/Views/Headers/Blog/ Index.xsl
You can change all this information at any time.

Components

When you add a new Component, the following file will be created:

  • Mvc/Components/Newsletter.controller.php

Once the Component created, you can map it on any action as seen above. The Component will run on all actions on which it was mapped.

Statics

When you add a new Statics, the following file will be created:

  • Mvc/Statics/Menu.controller.php

The Statics will run on all the actions of the site.

Related :