In Yii 2.0 run save in ActiveRecord's AfterSave

In Yii 2.0 Framework, if run save in afterSave, will active new beforeSave and afterSave then endless loop, this topic show how to run save in afterSave without endless loop

upload file and image in Yii 2.0

in Yii 2.0, standard way for file and image upload
2016-12-06 20:39:06 0 Comments Html Boy.Lee

Html Checkbox change default value

In Html, Checkbox's default value is "on", use follow method can change the default value to any string or integer, like "1"

Normal Position flags in Yii 2.0's View

In Yii 2.0's View, we have 5 flags for position, it's beginPage, head(), beginBody(), endBody(), endPage(). This topic show how to use it correct in view file, if not use it correct, may cost js or css file or code can't register correct

Mac os X 10.11.6 El Capitan disable rootless

Disable or enable rootless for Mac os X 10.11.6 El Capitan, step by step
2016-11-22 15:29:06 0 Comments Tool Boy.Lee

Mac Install USB Drive only have 200M capacity

format Mac install USB Drive will only get 200M capacity, use follow tool do re-format can fix this problem

Win7(UEFI+GPT) After software activated cannot entry Win7 System or use Gigabyte Bios

Samsung SSD(SM951) install Win7 64(UEFI+GPT), after software activated can't entry the Win7 System, can't reinstall by USB Drive, even can't entry Gigabyte z170x-ud3's Bios. After remove the SSD, the Bios and USB Drive back to work. After some test finially found the solution for reinstall win7 and activated by Key.

Install Win7 64 OS for NVME SSD(M.2 Socket3 Interface)

This topic show how to install Win7 64 bits OS on Samsung SM951(NVME SSD support M.2 Socket 3 Interface) and Gigabite z170x-ud3 motherboard, also prepare for Mac Install

Yii 2.0 ActiveForm DatePicker Code Demo

Yii 2.0 ActiveForm DatePicker Code Demo

In Yii 2.0 use thrid part non-namespace class Code Demo

This topic use PHPExcel as demo, show how to use non-namespace thrid part class in Yii 2.0 framework

Mac os 10.11(El Capitan) Switch to root account

In Mac os 10.11(El Capitan) , using the follow command to switch root account

Mac os 10.11(El Capitan) System Build in PHP's GB missing FreeType

In Mac os 10.11(El Capitan) System's build in PHP. The GB lib is missing FreeType part, it will cost problem for captcha and png render. The only solution is to reinstall a new PHP.

Demo Code for render random color captcha pic in Yii 2.0

Demo Code for render random color captcha pic in Yii 2.0

Yii 2.0 registerCssFile cannot register css file correct

In Yii 2.0 Framework's view,cannot use $this->registerCssFile() to register css file, this topic show how to fix this problem
2016-10-17 10:48:01 0 Comments Git Boy.Lee

Git Demo: Remove file out version control

In Git, sometime we need remove one file out version control, we can use the follow commands
2016-10-12 22:59:32 0 Comments Vue Boy.Lee

Vue 2.0 常见错误解决办法

Vue 2.0框架常见错误解决办法,主要是我的Vue 2.0学习笔记,会长期更新