Wiki articles in category How-tos

Showing 121-140 of 292 items.

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

Created 11 years ago by skworden, updated 11 years ago by 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: 31 158 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 12 years ago by JohnPollard, updated 11 years ago by JohnPollard.

This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

22 0
26 followers
Viewed: 55 337 times
Version: 1.1
Category: How-tos

simple CSV export

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

Kickstart development with Yii-App

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

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...

14 0
40 followers
Viewed: 40 887 times
Version: 1.1
Category: How-tos

Using Bootstrap with LESS

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

I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular [bootstrap extension](http://ww...

11 0
14 followers
Viewed: 55 670 times
Version: 1.1
Category: How-tos

Twitter Bootstrap style Breadcrumbs

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

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 53 923 times
Version: 1.1
Category: How-tos

Extending an ActiveRecord model

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

protected $_viewFile

2 3
7 followers
Viewed: 28 732 times
Version: 1.1
Category: How-tos

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

Created 12 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 023 times
Version: 1.1
Category: How-tos

Cookie management in Yii

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

Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

38 1
40 followers
Viewed: 193 300 times
Version: 1.1
Category: How-tos

Open Dialog from ajax content

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

This is the code in the View.

<?php echo CHtml::link('MyDialog', Yii::app()->createUrl('site/page'), array('class' => 'openDlg divDialog')); ?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'divDialog',
	'options'=>array( 'title'=>Yii::t('Dialog Title', 'autoOpen'=>false, 'modal'=>true, 'width'=>600)));
?>
	<div class="divForForm"></div>
<?php
$this->endWidget(...
3 1
5 followers
Viewed: 24 273 times
Version: 1.1
Category: How-tos
11 0
20 followers
Viewed: 32 889 times
Version: 1.1
Category: How-tos

Using Google Maps in Yii Applications via Jquery

Created 11 years ago by bluyell, updated 11 years ago by bluyell.
2 0
6 followers
Viewed: 23 327 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 771 times
Version: 1.1
Category: How-tos

Limit a CGridView field to some preset length.

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

Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

9 0
9 followers
Viewed: 22 241 times
Version: 1.1
Category: How-tos

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 283 times
Version: 1.1
Category: How-tos

How to implement an event and attach it in a behavior

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

This page explains how to implement an event and catch that event in a behavior.

2 0
9 followers
Viewed: 27 441 times
Version: 1.1
Category: How-tos

Yet another implementation of CPhpAuthManager.

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

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7 followers
Viewed: 19 164 times
Version: 1.1
Category: How-tos

Implementing menu items with progress (wait) dialog

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

This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

1 0
1 follower
Viewed: 21 451 times
Version: 1.1
Category: How-tos

Integrating HybridAuth directly into Yii without an extension

Created 11 years ago by biz dev, updated 10 years ago by biz dev.

This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

10 0
15 followers
Viewed: 51 156 times
Version: 1.1
Category: How-tos