Wiki articles

Showing 141-160 of 822 items.

Send asset folder path to a javascript of a widget

Created 12 years ago by sensorario, updated 12 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 106 times
Version: 1.1
Category: Tips

free PHP IDE CodeLobster supports Yii framework

Created 12 years ago by clod, updated 12 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 017 times
Version: 1.1
Category: Tutorials

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

Created 12 years ago by RusAlex, updated 12 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 088 times
Version: 1.1
Category: Tips

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

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

In this How-To I'll show you:

12 1
10 followers
Viewed: 60 576 times
Version: 1.1
Category: How-tos

Special $variables in CGridView and CListView

Created 12 years ago by Steve Friedl, updated 12 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 202 times
Version: 1.1
Category: Tips

Como trasponer una lista creada con CHtml::checkBoxList

Created 12 years ago by rdjteam, updated 12 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: 17 897 times
Version: 1.1
Category: Tips

Windows Web Development With AMPPS, NetBeans and XDebug

Created 12 years ago by morcen, updated 12 years ago by morcen.
  1. Operating system: Windows
4 0
6 followers
Viewed: 38 425 times
Version: 1.1
Category: Tutorials

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 14 years ago by thyseus, updated 12 years ago by thyseus.

Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!

15 0
24 followers
Viewed: 62 865 times
Version: 1.1
Category: Tutorials
Tags: menu

How to hide index.php on nginx

Created 15 years ago by miles, updated 12 years ago by Darwin Wen.

For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM

4 0
12 followers
Viewed: 91 414 times
Version: 1.1
Category: Tutorials
Tags: URL

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 12 years ago by RusAlex, updated 12 years ago by Darwin Wen.

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

16 0
33 followers
Viewed: 72 359 times
Version: 1.1
Category: How-tos

Functional Testing in Yii using Goutte and PHPUnit

Created 12 years ago by putera, updated 12 years ago by putera.

We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).

6 0
17 followers
Viewed: 29 935 times
Version: 1.1
Category: Tutorials

Autocomplete in console command

Created 12 years ago by Stamm, updated 12 years ago by Stamm.

Missed of autocomplete in bash console commands yii make me sad.

3 0
4 followers
Viewed: 15 358 times
Version: 1.1
Category: Tutorials

TDD with PHPUnit_Story and Yii

Created 12 years ago by sidewinder, updated 12 years ago by sidewinder.

Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.

7 0
9 followers
Viewed: 23 938 times
Version: 1.1
Category: Tutorials

File uploads in CForm (Form builder)

Created 12 years ago by Luke Jurgs, updated 12 years ago by Luke Jurgs.

While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

9 0
10 followers
Viewed: 51 964 times
Version: 1.1
Category: How-tos

Understanding "Assets"

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

Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

46 0
40 followers
Viewed: 207 673 times
Version: 1.1
Category: Tutorials

Understanding Autoloading, Helper Classes and Helper Functions

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

Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

22 0
26 followers
Viewed: 122 296 times
Version: 1.1
Category: Tutorials

Understanding Virtual Attributes and get/set methods

Created 12 years ago by Steve Friedl, updated 12 years ago by GOsha.

When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

class Comment extends CActiveRecord {
    public $helperVariable;
    public function rules() { ... }
    ...
}

and then use them in the obvious way:

$var   = $model->helperVariable;
$rules = $model->rules();

This part everybody understa...

66 0
44 followers
Viewed: 202 282 times
Version: 1.1
Category: Tutorials

Understanding series articles

Created 12 years ago by GOsha, updated 12 years ago by GOsha.

Here are all wiki articles from "Understanding" series by Yii wiki contributors:

16 0
12 followers
Viewed: 14 042 times
Version: 1.1
Category: Tips

Common Yii questions

Created 12 years ago by dckurushin, updated 12 years ago by migajek.

Put attention of the question answer form

14 0
23 followers
Viewed: 57 831 times
Version: 1.1
Category: FAQs

Force a User to Change Their Password (ChangePasswordFilter)

Created 12 years ago by waterloomatt, updated 12 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: 29 521 times
Version: 1.1
Category: Tutorials