Monthly Archives: August 2015

JQuery: children, find and has

In the jQuery, we always need determine if the a certain element existed in current object, you can use $(this).children, $(this).find(), and $(this).has(). What’s different between these 3 methods? The .children() only travels a single level down the DOM tree, … Continue reading

Posted in Uncategorized | Leave a comment

CPH Education Video

Posted in Uncategorized | Leave a comment

Lumen: Request

$request->input() is as same as $request->all(), all return an array, but $request->getContent(), which will return input parameters in an JSON string $request->getContent():{“maxResults”:9999,”publicCategoryOnly”:true} $request->input(): Array (     [maxResults] => 9999     [publicCategoryOnly] => 1 ) $request->all(): Array (     [maxResults] => … Continue reading

Posted in Lumen | Tagged | Leave a comment

Yii2: Update to newest version

If you installed Yii2 with composer, then update to newest version will be easy to do. Just simply run the following command in your project’s root directory: php composer.phar require yiisoft/yii2 2.0.5 Or, if you want to update all installed … Continue reading

Posted in Uncategorized | Leave a comment

Yii2: Set up Gii

Gii is very useful tool in Yii2. Gii is provided in Yii as a module. You can enable Gii by configuring it in the modules property of the application. Depending upon how you created your application, you may find the … Continue reading

Posted in Uncategorized | Leave a comment