-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sections.php
27 lines (18 loc) · 930 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\api_cache; 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=api_cache/function_name
Call a section from the server-side using:
tx('Component')->sections('api_cache')->get_html('function_name', Data($options));
Read more about sections here:
https://github.com/Tuxion/tuxion.cms/wiki/Sections.php
*/
}