ideawu / iphp Goto Github PK
View Code? Open in Web Editor NEWAn everyone can understand PHP framework for web development
License: BSD 3-Clause "New" or "Revised" License
An everyone can understand PHP framework for web development
License: BSD 3-Clause "New" or "Revised" License
比如 PDO
,是 PHP Data Objects
的缩写,然后 PHP 官方对其的命名就是 PDO
而不是 Pdo
;
而 PHP 大家的实践习惯通常是首字母大写的驼峰命名。
这两个的矛盾就造成了一些我们自己命名一些类的时候,到底缩写词用全部大写,还是首字母大写的驼峰式呢?比如 Db
和 DB
。
zefzef
妈的他妈妈的他妈妈的他妈妈的他妈
zefzefzef
这个版本支持数据库自动读写分离, 使用方法:
Db::load_balance();
妈妈的他妈妈的他妈妈
库读写分离库读写分离库读写分离库读写分离库读写分离
库读写分离库读写分离
库读写分离库读写分离库读写分离
妈的他妈妈的他妈
all i see is chinese words
基类中为了方便原则, 一般会加载所有可能用到的属性到 Context 中, 但这会导致性能问题, 所以需要 lazyload 机制. 例如, 某些属性只有在子类中被用到时, 才会真正地去查询数据库, 如果子类中不使用这些属性, 则不会发生数据库请求.
原型:
Context::lazyload($name, callable $callback_func);
示例:
class AppController extends Controller
{
function init($ctx){
parent::init($ctx);
$ctx->lazyload('account', array($this, 'ctx_lazyload'));
}
private function ctx_lazyload($name, $ctx){
if($name == 'account'){
return Account::get($ctx->user->id);
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.