Sorted by date (updated)X
Displaying 341-350 of 761 result(s).

Using filters with CGridView and CArrayDataProvider

Updated 2 years ago by yugeneHow-tos33 comments – viewed 59,869 times – ( +22 ) – 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 2 years ago by Fran├žois GannazHow-tos3 comments – viewed 118,746 times – ( +40 ) – 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 2 years ago by fsbTutorials5 comments – viewed 29,373 times – ( +15 ) – version 1.1

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

Updated 2 years ago by Gerhard LiebenbergTutorials20 comments – viewed 79,719 times – ( +28 / -1 ) – 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.

Multi Data Provider

Updated 2 years ago by Sharon LavieTips0 comments – viewed 7,034 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

How to use PHPExcel external library with Yii

Updated 2 years ago by cgsmithHow-tos14 comments – viewed 79,745 times – ( +29 / -1 ) – 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 2 years ago by JorgeeFAQs9 comments – viewed 103,546 times – ( +68 ) – 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.

Make theme and layout option in your site

Updated 2 years ago by trondHow-tos0 comments – viewed 7,958 times – ( +1 )
Here i am writing code how to add option of theme change and layout change in your website.
tags: theme, layouts

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Updated 2 years ago by acorncomHow-tos23 comments – viewed 44,375 times – ( +22 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

Help pages using Markdown view renderer

Updated 2 years ago by nineinchnickTutorials2 comments – viewed 4,121 times – ( +2 )
This tutorial describes how to write your views for help pages using Markdown syntax to be able to generate PDFs from same source files.