Blog

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex sem, facilisis sed viverra nec, sagittis vel quam nulla nisi mi scelerisque quis.

Yii – Relations using a non-primary key

Often mistakes you make in your database design stage come around and bite you in the butt later! My Mistake I'm just testing a new reservation system that should be going live soon and it's looking really good, expected results are bang on, the system is nice and...

Date validation in Yii

Moving on from my last post on Yii validation rules for text fields, next I am going to be looking at validating dates and date ranges. The date validator CDateValidator was added to Yii in release 1.1.7 and provides an easy method to validate that a field contains a...

Yii – simple email and mail merge

I needed an email mechanism for a customer that was light and easy to configure. Yii extensions I tried several email extensions from the Yii website all of which I found overly complex to setup and use.  I then remembered that I had used a simple class on a PHP...

Using Is NOT NULL in query builder

When building where clauses it's not that well documented how to use NOT and NULL . Starting with a simple query: If we wanted to select all posts where the content had something in it Note the doubles set of square brackets, first...

Subscribe