Wiki articles

Showing 201-220 of 651 items.

CjuiDatepicker

Created 11 years ago by hiral darji, updated 11 years ago by hiral darji.

If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5 followers
Viewed: 11 461 times
Version: 1.1
Category: Tips

Implementing a Flat User Access System

Created 11 years ago by Trejder, updated 11 years ago by Trejder.

This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

6 0
7 followers
Viewed: 17 279 times
Version: 1.1
Category: How-tos

How to create the custom Drop-down using CHtml::dropDownList

Created 9 years ago by Ankit Modi, updated 5 years ago by samdark.

Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

0 0
3 followers
Viewed: 27 195 times
Version: 1.1
Category: How-tos

How to change Migration Table name and use defined prefix.

Created 11 years ago by Jorgee, updated 11 years ago by jamband.

To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

3 0
5 followers
Viewed: 21 767 times
Version: 1.1
Category: How-tos

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 9 years ago by le_top, updated 9 years ago by le_top.

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 016 times
Version: 1.1
Category: Tips

How to use a component before every action of a controller

Created 11 years ago by transistor, updated 11 years ago by transistor.

I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

2 0
4 followers
Viewed: 50 607 times
Version: 1.1
Category: Tips

Profiling using XDebug

Created 10 years ago by le_top, updated 9 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 21 386 times
Version: all
Category: How-tos

Configuring CWebLogRoute for DB profiling

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

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

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

Cron Jobs in Yii

Created 10 years ago by aarondfrancis, updated 8 years ago by Roman Solomatin.

I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

2 0
9 followers
Viewed: 34 181 times
Version: 1.1
Category: How-tos

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 9 years ago by Smithesh, updated 8 years ago by Smithesh.

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

2 0
3 followers
Viewed: 21 720 times
Version: 1.1
Category: How-tos

How to provide a fallback or mapping for translation messages?

Created 10 years ago by schmunk, updated 9 years ago by schmunk.

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6 followers
Viewed: 12 503 times
Version: 1.1
Category: How-tos

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: 58 006 times
Version: 1.1
Category: FAQs

How to setup FCKeditor

Created 15 years ago by krillzip, updated 11 years ago by Dark-Sun.

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5 followers
Viewed: 30 959 times
Version: 1.1
Category: Tutorials
Tags:

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 982 times
Version: 1.1
Category: Tutorials

How to add more information to Yii::app()->user

Created 15 years ago by qiang, updated 11 years ago by Yang He.

By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#application-component) which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, [CWebUser] already comes with a [name|CWebUser::name] property th...

21 0
28 followers
Viewed: 226 622 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: 52 029 times
Version: 1.1
Category: How-tos

Eclipse PDT - code-hints, references and other goodies

Created 15 years ago by mindeh, updated 13 years ago by Woil.

Since PHP is dynamically typed language, the way IDE may help you is limited.

14 0
6 followers
Viewed: 41 225 times
Version: 1.1
Category: Tutorials
Tags: IDE

Insert a multirow header in CGridView

Created 10 years ago by Peppe, updated 9 years ago by Peppe.

The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...

4 0
5 followers
Viewed: 27 267 times
Version: 1.1
Category: How-tos

Simple authorization system

Created 12 years ago by Gustavo, updated 10 years ago by Gustavo.

How to create a simple (non-RBAC) authorization system

14 0
17 followers
Viewed: 44 798 times
Version: 1.1
Category: How-tos

How to display static pages in Yii?

Created 15 years ago by qiang, updated 11 years ago by resurtm.

In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.

14 0
13 followers
Viewed: 83 768 times
Version: 1.1
Category: Tutorials