Wiki articles

Showing 581-600 of 823 items.

Using events with CAction classes

Created 13 years ago by Antonio Ramirez, updated 12 years ago by 张 迪.

As you know, events are used by:

9 0
9 followers
Viewed: 23 846 times
Version: 1.1
Category: Tips

Como trasponer una lista creada con CHtml::checkBoxList

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

En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

2 0
4 followers
Viewed: 18 307 times
Version: 1.1
Category: Tips

CPhpAuthManager - how it works, and when to use it

Created 13 years ago by dckurushin, updated 12 years ago by François Gannaz.

It is actually mentioned in the documentation

1 2
6 followers
Viewed: 32 834 times
Version: 1.1
Category: How-tos

Special $variables in CGridView and CListView

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

The popular [CListView] and [CGridView] widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

23 1
33 followers
Viewed: 77 896 times
Version: 1.1
Category: Tips

Reliable Alternative For Yii::app()->request->isAjaxRequest AND Adding Data To Ajax Form With JS

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

In this How-To I'll show you:

12 1
10 followers
Viewed: 61 210 times
Version: 1.1
Category: How-tos

Yii for beginners

Created 13 years ago by rackycz, updated 5 years ago by rackycz.

Hi. This is first article with my Yii v1 tutorial. I had to split it into 2 articles as there's limited length of texts on Wiki. So once you understand basics, you can read the 2nd article here: Yii for beginners 2.

68 0
75 followers
Viewed: 442 409 times
Version: 1.1
Category: Tutorials

Understanding the view rendering flow

Created 13 years ago by dckurushin, updated 11 years ago by Jorgee.

If we take a look at the blog demo we have 3 major parts of our view rendering. They are:

56 1
55 followers
Viewed: 241 858 times
Version: 1.1
Category: FAQs

Adding search to Yii blog example (using Zend Lucene)

Created 13 years ago by dckurushin, updated 11 years ago by klammeraffe.
  • add under runtime directory, a new one call it search, it will be used for the index files that Zend Lucene will create. Make sure it is writable!
29 1
47 followers
Viewed: 89 675 times
Version: 1.1
Category: Tutorials

how to use github (un)official extension repo in your Yii project

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

I'm developing a web project for a company using Yii framework. We are using a git vcs in our development process. We like to use Yii extensions. But only if they are good.

4 0
8 followers
Viewed: 12 438 times
Version: 1.1
Category: Tips

free PHP IDE CodeLobster supports Yii framework

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

This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

5 0
1 follower
Viewed: 20 369 times
Version: 1.1
Category: Tutorials

How to translate and do the translations the easy way

Created 13 years ago by Roman Solomatin, updated 8 years ago by Roman Solomatin.

I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

16 2
17 followers
Viewed: 88 102 times
Version: 1.1
Category: How-tos

Yii registry, how to use it, does it exist at all?

Created 13 years ago by dckurushin, updated 11 years ago by resurtm.

If you coming to Yii with experience with Zend Framework for example, most likely you get used to

Zend_Registry::get('paramName');
Zend_Registry::set('paramName');
6 0
9 followers
Viewed: 36 912 times
Version: 1.1
Category: How-tos

Shrink Yii, help your IDE and speed up copying

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

yii-1.1.8.r3324 framework directory is 10.4 mb size.

9 8
16 followers
Viewed: 14 413 times
Version: 1.1
Category: Tips

Authenticating against phpass hashes with Yii

Created 13 years ago by Da:Sourcerer, updated 10 years ago by Da:Sourcerer.
  • iteration_count_log2 controls the number of iterations for key stretching. A setting of 8 means the hash algorithm will be applied 2^8 = 256 times. This setting should be kept between 4 and 31.
  • portable_hashes controls whether portable hashes should be used or not. Portable hashes are salted MD5 hashes prefixed by $P$.
22 0
28 followers
Viewed: 40 132 times
Version: 1.1
Category: How-tos

Send asset folder path to a javascript of a widget

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

When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Yii::app()->getClientScript()->registerCssFile($filename);
4 0
9 followers
Viewed: 34 695 times
Version: 1.1
Category: Tips

Creating a jQueryUI Sortable CGridView

Created 13 years ago by blindMoe, updated 11 years ago by rAWTAZ.

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.

36 0
54 followers
Viewed: 52 832 times
Version: 1.1
Category: How-tos

Force a User to Change Their Password (ChangePasswordFilter)

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

Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

14 0
10 followers
Viewed: 30 153 times
Version: 1.1
Category: Tutorials
9 0
15 followers
Viewed: 32 740 times
Version: 1.1
Category: Tips

Configuring CWebLogRoute for DB profiling

Created 13 years ago by Igor Ivanovic, updated 13 years ago by Igor Ivanovic.

require_once($yii); Yii::createWebApplication($config)->run();

2 0
6 followers
Viewed: 34 817 times
Version: 1.1
Category: Tutorials

Caching the config main.php

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

The config first required In CApplication constructor

4 1
14 followers
Viewed: 23 487 times
Version: 1.1
Category: Tutorials