forked from pedramphp/liteframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
35 lines (22 loc) · 1.12 KB
/
index.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
29
30
31
32
33
34
35
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$realpath = realpath('.')."/";
require_once($realpath."LiteFrame/index.php");
$LiteFrame = new LiteFrame();
// if set to false, you will be unable to set folder paths to get specific templates.
$LiteFrame->SetTemplateEngine(true);
// There is always going to be an action that the framework is going to be pointing to.
$LiteFrame->SetPreAction("homepage"); // Set your default action here for the beginning of your project!
// $LiteFrame->SetPreActionWithTemplate("homepage","homepage2");
$LiteFrame->SmartyPath($realpath."includes/modules/smarty/libs/Smarty.class.php");
// Adding JS / CSS files with the same Action name to the DOM if they exist
$LiteFrame->AddingRelatedFilesToDOM();
$LiteFrame->SetJavascriptLibraryFolder("jslib");
$LiteFrame->SetStyleLibraryFolder("jslib");
// if you want all your javascript on the bottom of the page
$LiteFrame->JavascriptBottomPage();
// Grab all $yAction and make it to a json obj
$LiteFrame->JavaScriptActionInfo();
$LiteFrame->RunApplication();
?>