10 2012 档案

Just a snippet
摘要:Just a snippet 1 class KPEnv 2 { 3 /** 4 * @param string $env 5 * @return boolean. 6 */ 7 public static function isValidEnv($env) 8 { 9 return in_array($env, array('dev', 'staging', 'live'));10 }11 12 /**13 * @param string $env14 * @return boo... 阅读全文

posted @ 2012-10-15 17:25 技术员 阅读(194) 评论(0) 推荐(0)

Yii framwork - Url Manager
摘要:Url Manager A.User-friendly URLSarray( ...... 'components'=>array( ...... 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=> false, 'urlFormat'=> false, 'rules'=>array( '<controller:\w+>/<id:\d+>' 阅读全文

posted @ 2012-10-15 17:04 技术员 阅读(243) 评论(0) 推荐(0)

Yii migrations
摘要:At the beginning, why we need migration?In a long time, PHP has no way to currently deploy a project at many server at same time with the exactly same database schema.Most time we have to dump database and import them to some othere server. If someone changed the database schema, we have to apply th 阅读全文

posted @ 2012-10-15 15:29 技术员 阅读(707) 评论(0) 推荐(0)

导航

点击右上角即可分享
微信分享提示