All code is security and workflow ready!
So many technologies so little time to evaluate them, so we decide to write “in a nutshell” introduction to Tequila.
yourserver/yourproject/index.php?task=addpage
Tequila is a single entry point framework, everything is accessed at index.php, to run your task
index.php?task=yourtask&mode=yourfunctionincontroller
<!-- START BLOCK : articles --> <tr><td> {articlename} <!--td><!--tr> <!--END BLOCK : articles -->
protected function getreorder(&$model, &$view) { $reqCategory = safeRequest('category', 'all'); $data = $model->getreorder($reqCategory); $view->showlist($data); }
// Using DAO public function getreorder($category == "all") { $dao = new inventory_DAO(); return $dao->getreorder($category); } // Using getData public function getreorder($category =="all) { $mSql = "SELECT * FROM INVENTORY_PRODUCTS WHERE QTY < REORDER"; return getData ($mSql); }
//To create a block: $this->template->newBlock('blockname'); //To replace a placeholder: $this->template->assign('placeholdername', $value);
1 // This will create a beautiful sortable table with any product property you want to display 2 public function showlist($productdata) 3 { 4 $v = new view_alternatetable($this->template, $data); 5 $v->getview(); 6 // To show the same list as XML replace the strategy in line 4 7 $v = new view_xml_data($this->template, $data); 8 9 }
1 addJS("file1.js,file2,js,file3.js"); //<- one or many 2 addCSS("file1.css,file2.css"); 3 addJSVar("varname","varValue"); //<- Ever need to pass a value to the JS script? 4 addJSfromLang ()//<- Pass a JS language file
$js_safeloading = true;
$js_safeloading = false; $js_blocktillcomplete = true; $js_retry = 3; $js_cachedir = 'temp';
$defaultpage = "login"; $mainpage = "dashboard";
index.php?task=sec_manager index.php?task=users
$this->tr->finished = true; $this->tr->result = true;
Find Rad workflow and more useful information about php framework on framework.
The document has moved here.
Thanks for your report,you can use [ cc lang="php"] [ /cc] to show your php code.just like:
[...] the original post: PHP Framework | PHP Frameworks SHARETHIS.addEntry({ title: "PHP Framework | PHP Frameworks", url: [...]
Name (required)
Mail (will not be published) (required)
Website