Wiki articles

Showing 261-280 of 653 items.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 13 years ago by Xgamer99 Xgamer99, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7 followers
Viewed: 23 886 times
Version: 1.1
Category: Tips

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 13 years ago by skworden skworden, updated 13 years ago by skworden skworden.

I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

3 1
6 followers
Viewed: 62 160 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 22 305 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 23 891 times
Version: 1.1
Category: How-tos

pass variables or content block from view file to layout file

Created 13 years ago by yiqing95 yiqing95, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

2 0
6 followers
Viewed: 54 165 times
Version: 1.1
Category: How-tos

Localized version of CFormatter

Created 13 years ago by marcovtwout marcovtwout, updated 12 years ago by marcovtwout marcovtwout.

To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:

2 0
5 followers
Viewed: 12 178 times
Version: 1.1
Category: How-tos

Create custom button button with AJAX function in CGridView

Created 13 years ago by nkd nkd, updated 13 years ago by nkd nkd.

This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.

5 0
15 followers
Viewed: 70 210 times
Version: 1.1
Category: How-tos

Ember.js with Yii REST backend,demo application

Created 13 years ago by drumaddict drumaddict, updated 12 years ago by drumaddict drumaddict.

Clone the git repo - git clone git://github.com/drumaddict/ember-yii.git - or download it To install,follow these steps.

8 0
12 followers
Viewed: 43 410 times
Version: 1.1
Category: Others

Install, update and use Yii with WAMP server

Created 13 years ago by mrs mrs, updated 13 years ago by mrs mrs.

Here I am describing how you can install and update Yii in WAMP sever.

0 0
5 followers
Viewed: 91 857 times
Version: 1.1
Category: How-tos

URL management for Websites with secure and nonsecure pages

Created 13 years ago by qiang qiang, updated 13 years ago by qiang qiang.

In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.

19 0
34 followers
Viewed: 64 765 times
Version: 1.1
Category: How-tos
Tags: URL

Setting static modules' properties in config

Created 13 years ago by Alexander Palamarchuk Alexander Palamarchuk, updated 13 years ago by Alexander Palamarchuk Alexander Palamarchuk.

You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.

1 1
2 followers
Viewed: 15 939 times
Version: 1.1
Category: Tips
Tags: config, module

Making friends' configs, DB credentials and paths with version control

Created 13 years ago by Alexander Palamarchuk Alexander Palamarchuk, updated 13 years ago by ajsharma ajsharma.

In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test s...

1 1
4 followers
Viewed: 20 296 times
Version: 1.1
Category: Tips
Tags: config

Hyphenation of routes in URL management

Created 13 years ago by qiang qiang, updated 13 years ago by qiang qiang.

In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.

15 0
21 followers
Viewed: 38 354 times
Version: 1.1
Category: How-tos
Tags: URL

How to display static pages in Yii with database content?

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen.

To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

3 0
13 followers
Viewed: 45 454 times
Version: 1.1
Category: Tutorials

simple CSV export

Created 13 years ago by bluyell bluyell, updated 13 years ago by bluyell bluyell.
2 0
13 followers
Viewed: 54 865 times
Version: 1.1
Category: How-tos
Tags: csv, excel, export

Serial Numbers (item counts) in GridView

Created 13 years ago by PeRoChAk PeRoChAk, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

Sometime we need to display numbers of items per page with their counting as a serial number.

0 0
4 followers
Viewed: 20 391 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 13 years ago by CTala CTala, updated 13 years ago by bennouna bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 39 908 times
Version: 1.1
Category: How-tos

[pt-br] O guia de estudos do Yii para iniciantes

Created 13 years ago by Rodrigo Coelho Rodrigo Coelho, updated 13 years ago by Rodrigo Coelho Rodrigo Coelho.

You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

1 0
3 followers
Viewed: 15 273 times
Version: 1.1
Category: Tips
Tags:

The complete beginner's study guide for the Yii Framework

Created 13 years ago by Rodrigo Coelho Rodrigo Coelho, updated 13 years ago by Rodrigo Coelho Rodrigo Coelho.

Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

12 0
19 followers
Viewed: 118 717 times
Version: 1.1
Category: Tips

Using phpseclib with Yii

Created 13 years ago by nkd nkd, updated 13 years ago by nkd nkd.

I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...

0 0
6 followers
Viewed: 22 198 times
Version: 1.1
Category: How-tos
Tags: security