Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 1-10 of 182 result(s).

How-To: Create a REST API

Created 2 years ago by jwernerHow-tos38 comments – viewed 103,723 times – ( +86 / -1 )
This article will explain how to create a REST API with the Yii framework.

Kickstart development with Yii-App

Created 3 months ago by Chris83How-tos20 comments – viewed 9,589 times – ( +16 )
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.

Authenticating against phpass hashes with Yii

Created about a year ago by Da:SourcererHow-tos18 comments – viewed 15,689 times – ( +25 )
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.

Using CButtonColumn to customize buttons in CGridView

Created 2 years ago by TrejderHow-tos15 comments – viewed 102,660 times – ( +81 )
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

How to use Multiple instances of the same model in the same form

Created 9 months ago by kiran sharmaHow-tos15 comments – viewed 10,101 times – ( +16 / -2 )
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 2 years ago by xrxHow-tos13 comments – viewed 22,162 times – ( +20 )
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Actions code reuse with CAction

Created 2 years ago by Antonio RamirezHow-tos13 comments – viewed 17,227 times – ( +30 )
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Url: hide index.php

Created about a year ago by HermansHow-tos13 comments – viewed 42,958 times – ( +17 )
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

Creating a jQueryUI Sortable CGridView

Created about a year ago by blindMoeHow-tos13 comments – viewed 16,920 times – ( +34 )
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

How to setup RBAC with a php file

Created 3 years ago by bettorHow-tos12 comments – viewed 38,152 times – ( +24 / -4 )
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.