本人龜鑒其他PHP Framework 自己開發(fā)的一個Framework,請大家指點
Jun 13, 2016 am 10:54 AM
本人借鑒其他PHP Framework 自己開發(fā)的一個Framework,請大家指點
本人借鑒其他PHP Framework如autocrud等,還有ror的思想.?自己開發(fā)的一個Framework
?
系統(tǒng)根據(jù)建好的數(shù)據(jù)庫自動生成model、controller和view的各個文件:
?
本人是初學(xué)者,請大家多多指點
?
Model:
?
include "connect.php";
class users extends Connect{??
?function Add($data){
??$this->crud->users->insert($data);
?}
?function Select($orderby,$where,$currentpage,$paging){
??$this->crud->users->orderby = "$orderby";
??$this->crud->users->where = "$where";
??$paging==1 ? $this->crud->users->paging = true : $this->crud->users->paging = false;
??$this->crud->users->perpage = 2;
??$this->crud->users->currentpage = $currentpage;
??return $this->crud->users->select();
?}
?function Get($id){
??return $this->crud->users->get($id);
?}
?function Delete($id){
??return $this->crud->users->delete($id);
?}
?function Update($data,$id){
??return $this->crud->users->update($data, $id);
?}
}
?>
?
?
controller:
?
include ('models/users.php');
include ('smarty/template.php');
$tpl = new SmartTemplate("views/listusers.htm");
$users = new users;
$orderby = "";
$where = "";
$currentpage = $_GET['page'];
$userss = $users->Select($orderby,$where,$currentpage,0);
$rows = count($userss);
$userss = $users->Select($orderby,$where,$currentpage,1);
$i = 0;
if($rows > 0){
??? for($j = 0; $j ???? $i = 1-$i;
???? ($i==0) ? $bgcolor="#eff1f3" : $bgcolor="#feefd5";
???? $userss[$j][bgcolor] = $bgcolor;
?}
}
$tpl->assign(array(
"userss"=>$userss,
"rows"=>$rows));
$tpl->output();
?>
?
view:
?
沒有您要查找的記錄! 新增..
id
name
操作
{id}
{name}
刪除 編輯 查看
?
?

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

?? ????? ??? ??? ??? ? Huawei ???? ???? ???. ? ? Huawei GT3pro? GT4? ?? ?? ?? ?????. ? ??? ???? ????? ???? ????. Huawei GT3pro? GT4? ???? ?????? 1. ?? GT4: 46mm? 41mm, ??? ?? ?? + ????? ?? ?? + ???? ?? ?? ????. GT3pro: 46.6mm ? 42.9mm, ??? ???? ?? + ??? ??/??? ?? + ??? ? ????. 2. ??? GT4: ?? Huawei Truseen5.5+ ????? ???? ??? ? ??????. GT3pro: ECG ???, ?? ? ??? ??

Windows 11?? ?? ??? ???? ?? ?? ??? ?? ??? ???? ??? ???? ?? ? ??? ? ? ????. ?? ??? ??? ???? ?? ?? ??? ??? ????. ?? ???? ?? ????. ??? ?? ?? ??? ??? ????. ??? ?? ????: ?? ??? ?? ? ???? ?? ?? ????? ????? ? ????. ??? ??? ????: ???? ?? ????? ?? ??? ??? ? ????. ?? ?? ????? ??: ?? ?? ?? ?? ????? ?? ??? ??? ? ????. ???? ???????. ????? ???? ? ??? ?? ? ??? ??? ? ????. ? ??? ???? ????? ???? ??? ?? ??? ???? ????. 1. Windows ? Microsoft Store ? ????

Laravel? ??? ?? ?? ?? PHP ????? ? ??? ??? ??? ??? ?? ??? ?????. LaravelNova? Laravel ??????? ?? ??? ??? ?? ????? ???, ??? ?? ??? ?? ?? ?????? ??? ? ??? ?????. ?? ???? CRUD ??? LaravelNova? ???? ??? ???????. CRUD ???? ?????? CRUD? "??, ??, ???? ? ??"? ?????. ? ? ?? ??? ?? ?? ????? ?????.

???? ???? ???? ?? ??? ???, ???? ???, ??, ?? ? ?? ???? ???? ???? ?????. ????? ??? ???? ?? ?? ?????? ??? ????? ?? ??? ??? ?? ? ????.

Vue? Mixin? ??? ??? ??? mixin ??? ???? ?? mixin? ???? ??? ??? ???? ?? ?? ??? ??? ? ?? ?? ??? ?????. ? ??? ?? ?? ???? CRUD(??, ??, ??) ???? ??? ????? ?? ???? ?? ??????. ? ????? ???? ???? Vue?? CRUD ??? ???? ??? ?????. ??, ?? ??? ???? ???.

MongoDB? ???? ??? CRUD API? ???? ?? ?? ? ?????? ???? CRUD(??, ??, ??, ??) ??? ?? ????? ??? ?? ? ?????. ? ????? MongoDB ??????? ???? ??? CRUD API? ???? ??? ???? ???? ?? ??? ?????. MongoDB? ???? ?? ???? ???? ?? ?? NoSQL ?????????. ?? ??? ??????? ?? MongoDB?? ?? ??? ???? ????.

1?: ?? ?? ?? ?? Apple ??? ?? ??: ??? ???? ???? ?? ?? ???? ??? ?????. ??? ??? ??? ?? ?? ?? ?? ????. Apple ??? ????? ?? ????. Apple? ??? ?? ???? ???? AppStore? ??? ????? ?????. ??? ?? ?? Apple? ??? ????? ???? ?????. ??? ?? ??: "AppStore? ??? ? ??" ??? ??? ?? ???? ?? ??? ? ???? ??? ??? ????? ??????. Wi-Fi? ??? ??? ?? ????? ???? ??? ???? ???(?? > ??? > ???? ?? ??? > ??). iOS ??? ???????.

Vue ? Axios? ???? ???? ?? CRUD ??? ???? ?? ??? ?? ????? ???? ?? CRUD ??? ???? ?? ??? ??? ?? ???? ?? ??? ????. Vue? ??? ??? ?????? ???? ? ??? ?? ?? ?? JavaScript ????????. Axios? ??? ???? ?? ???? ? ??? ?? Promise ?? HTTP ????????. Vue? Axios? ???? ???? CRU? ?? ??? ? ????.
