Articles in Category: yii

Yii - How to customize a CGridView CbuttonColumn

Update - Delete - View I'm sure you've already seen and used the basic buttons in a CGridView and maybe even used the template phrases to modify the behaviours [snippet id=139] but sometimes we need to break out of this box and create custom buttons for slightly more exciting function like ordering with up and down buttons, or email, or add

[more...]

Yii - Further model validation

UPDATED 26-Jan-2012 ! A brief note today to add some more specific validation to your models. As we all know - "rubbish in == rubbish out", so let's get that data nice and clean, right up front! [snippet id=141] The address regex pattern is using a short-code \w which matches all alphanumeric characters including diacritics (letters with accents etc

[more...]

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 stable, and (even better) easy to navigate

[more...]

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

[more...]

eCommerce

Powerful but easy to use on-line shops, ready to go (With No Technical Know How Required) , With Full Support and Marketing Advice. We have built our own eCommerce system, ideal for smaller Artisan businesses or can provide a more complex package to suit more complex online shops

[more...]