Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Modules.php

Beanow edited this page Apr 5, 2013 · 1 revision

The Modules.php file

This is where you define modules. Modules are used to insert a part of a page that is completely autonomous. If your module has dependencies or requires a certain context, you probably want to use the Sections.php file. Modules can be called in two ways, server-side or client-side. This allows you to reload a module by simply replacing the HTML it outputs.

Call a module from the client-side using: http://mysite.com/index.php?module=component_name/function_name

Call a module from the server-side using:

<?php tx('Component')->modules('component_name')->get_html('function_name', Data($options)); ?>
Clone this wiki locally