This platform, is based on index.php file, everything is there, including files, database connection and global variables like $x and also a file called template.inc.php where it loading the entire template and at content div, page asked in url.
Here is a screenshot :http://postimg.org/image/8knhwc1tj/
And here you can see how template "engine" is working: http://postimg.org/image/inngdfitv/
So, my url is: index.php?pag=FOLDER&sub=PHP_FILE¶m1= etc
Let's take "AdminPanel" theme:
Code: Select all
<html>
<head>
<title> Test Theme</title>
</head>
<body>
<?php
if(file_exists("app/Modules/$pag/$sub.php")) {
include("app/Modules/$pag/$sub.php");
}else{
include("app/Modules/dashboard/dashboard.php");
}
?>
</body>
</html>
Is very important this organization because I'm going to create modules management and more, and what I want to know exactly, if this is a really wrong abordation for jquery/ajax , if there is no way to use jquery on this type of templating.