Wiki

Sorted by date (updated)X
Displaying 371-380 of 785 result(s).

Reference: Model rules validation

Updated 3 years ago by RodrigoHow-tos7 comments – viewed 742,117 times – ( +128 / -1 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

How to upload image(photo), and path entry in database with update functionality

Updated 3 years ago by ShahcheragheanTips22 comments – viewed 173,650 times – ( +37 / -4 ) – version 1.1
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

How to write secure Yii applications

Updated 3 years ago by François GannazHow-tos20 comments – viewed 240,653 times – ( +108 / -1 ) – version 1.1
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

thumbsgen and Kohana Image Library together (extends an extension)

Updated 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 5,218 times – ( +2 / -1 )
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

Using filters with CGridView and CArrayDataProvider

Updated 3 years ago by yugeneHow-tos33 comments – viewed 73,525 times – ( +23 / -1 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Javascript and AJAX with Yii

Updated 3 years ago by François GannazHow-tos3 comments – viewed 140,776 times – ( +42 / -1 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Secure password hash storage and a Yii helper extension

Updated 3 years ago by fsbTutorials5 comments – viewed 31,527 times – ( +15 / -1 ) – version 1.1
Obsolete

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Updated 3 years ago by Gerhard LiebenbergTutorials20 comments – viewed 93,259 times – ( +28 / -2 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

How to use PHPExcel external library with Yii

Updated 4 years ago by cgsmithHow-tos14 comments – viewed 102,162 times – ( +30 / -2 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

Relations: BELONGS_TO versus HAS_ONE

Updated 4 years ago by JorgeeFAQs9 comments – viewed 127,901 times – ( +69 / -1 ) – version 1.1
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.