-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sections.php
27 lines (18 loc) · 920 Bytes
/
Sections.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
<?php namespace components\payment; if(!defined('TX')) die('No direct access.');
class Sections extends \dependencies\BaseViews
{
/*
# The Sections.php file
This is where you define sections.
Sections are used to insert a part of a page that is for private use inside the component.
This allows you to reuse pieces of HTML and allows you to reload by replacing the HTML.
If your section is very autonomous and might be useful for other components,
you probably should rewrite it as a Module.php function instead.
Call a section from the client-side using:
http://mysite.com/index.php?section=payment/function_name
Call a section from the server-side using:
tx('Component')->sections('payment')->get_html('function_name', Data($options));
Read more about sections here:
https://github.com/Tuxion/mokuji/wiki/Sections.php
*/
}