Recommend this page to a friend! |
Classes of dav y | Telex | readme.txt | Download |
|
Download@fractalFrameWork 2015-2017 Free License GNU/GPLThank you to download and use TLEX ! Tlex is a Twitter-Like open source It works under this fractalFrameWork environment AJAX MVC FRAMEWORK This is a platform to build web applications. The architecture is based on the the Ajax process. REQUIREMENTSServer Apache PHP>=5.4 MYSQL 5 and mailing abilities INSTALLATION
STRUCTURE2 folders (in /prod and /prog): /app: create your Apps here /core: classes of the System DEV MODE/?dev== will switch to dev mode, a new dropmenu apperar you can dev online, using files of /prog, and push them to /prod HOW THE FRAMEWORK WORKS/Core contain usable module for Apps. /App contain unitaries Apps that contain PHP, CSS and JavaScript. We can load Apps in chains from any other App. The application collect the specifics headers and JS of the App. The Ajax process let you call your Apps in a new page, or by ajax inside a div, a popup, a bubble, a pagup, or as a menu. Ajax do that : /app/appName
IN PHPTo load an App :
You can target another than 'content' like this :
BASIC STRUCTURE OF AN APPCallable components are recognizable because of their alone "$p" (Array of Params). They mean this function can be interfaced. $p contain these variables : - [appName], [appMethod] //params of com - [key1], [...] //params sent to the App, directly or from some fields - [pagewidth] //from javascript //basic App class App{
} ON USECreate your application as an Object in the folder /app. //in /app/myApp.php class myApp{
} URLTo join the Apps and their params there is a syntax for urls (url is a console) : Url : /appName/p1=v1,p2=v2... HTML FRAMEWORKAn HTML Framework makes it (very) easier and faster to write code. Constantly keep the lib.php on eyes to help you to write code. (And it will be memorized fastly !) //make tag div with class deco: $ret=tag('div',array('class'=>'deco'),'hello'); CONNECTORS//make tag div with class deco: $ret='[hello*class=deco:div]'); SQL CLASSA very useful class for Sql make it easy to create and update formated tables. Each table have an ID ans an UPDATE column. The creator will create tables at the init of the App. A indicator will specify the format of your datas: //give a string (v) $data=Sql::read('id','login','v','where id=1'); //$data; //give a simple associative array (a) $data=Sql::read('id,user','login','a','where id=1'); //$data['id']; //give all rows and columns ('') $data=Sql::read('id,user','login','',''); //$data[0][0]; AJAX MENUSA very exciting feature is the system of menus. You can build hierarchical ajax/html actions using a simple array and a loader. //this will display a link to open pictos inside a submenus: public static function menus(){
public static function content(){
DESKTOPWorks like Menus, but using folders. //this will display a link to open pictos inside a submenus: public static function structure(){
public static function content(){
SAMPLESSee more examples in /app/pub Decline new Aps from /app/model.php Credits FractalFramework 2017 http://tlex.fr |