-
Notifications
You must be signed in to change notification settings - Fork 0
/
Modules.php
28 lines (19 loc) · 937 Bytes
/
Modules.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php namespace components\message_board; if(!defined('TX')) die('No direct access.');
class Modules extends \dependencies\BaseViews
{
/*
# 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=message_board/function_name
Call a module from the server-side using:
tx('Component')->modules('message_board')->get_html('function_name', Data($options));
Read more about modules here:
https://github.com/Tuxion/mokuji/wiki/Modules.php
*/
}