About
Hi, I am Sumwai, an Information Technologist based in Malaysia.
This is where I share earth shattering programming tips, you should subscribe to my blog now. Yes, dooo it.Contact Me
What I am working on
Recent Comments
Tags
Categories
Good to know
Tag Archives: yii
Yii 1.1 Application Development Cookbook Review
A short while after Yii Framework just got its own book that you can get from the bookstore, here comes another book, also from Packtpub. This time, this book is written in recipe format, much like all other technical cookbooks … Continue reading
Posted in PHP
Tagged yii 2 Comments
Yii 1.1 Application Development Cookbook book preview
Yii Framework has a second book you can get off the shelf! Written by Yii Framework core developer Alexander Makarov, Yii 1.1 Application Development Cookbook consist of 13 wholesome chapters that shows you how you can kick more asses in … Continue reading
Posted in PHP
Tagged yii Leave a comment
Yii how to register jQuery UI’s JavaScript and CSS
First, register jquery.js and jquery-ui.min.js. jquery.min.js will be used instead when YII_DEBUG is falsed.
Posted in PHP
Tagged yii 5 Comments
Yii findByAttributes example
Yii Framework’s ActiveRecord::findByAttributes example, this page will be updated from time to time.
Posted in PHP
Tagged yii 4 Comments
Yii CDbCriteria’s condition and param notation
CDbCriteria’s condition can contains colon prefixed string where they will be replaced by values from the params array.
Posted in PHP
Tagged database, yii 4 Comments
Yii Framework in Ubuntu/Linux – Quick start guide
First download Yii from the Yii’s download page on the website. Recommended to choose a stable version to start with.
Posted in PHP
Tagged yii 9 Comments
Go Haml with Yii using Phamlp!
I’ll cut the intro to Haml, lets test drive Haml in Yii using Phamlp!
Posted in PHP
Tagged haml, yii 3 Comments
Getting started with Database Migration in Yii
Database migration is a new feature in Yii 1.1.6. IMHO it makes synchronizing database schema between you, your co-workers, and your production servers a breeze. To start, first make sure your Yii installation is 1.1.6 or above.
Posted in Database, PHP
Tagged yii 5 Comments
Bare bone codes to create a user session in Yii
What does it means to create a user session in Yii? It means, First, instantiate an object of a class that implements IUserIdentity, make sure the functions as defined in the IUserIdentity interface, especially getId() actually returns something. Example, you … Continue reading
Posted in PHP
Tagged yii Leave a comment
Change the default controller of a module in Yii
Do you know you can easily change the default controller of a module in Yii? You do this in the child class of CWebModule, example:
Posted in PHP
Tagged yii Leave a comment