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 6 years ago by skworden, updated 6 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: 23 415 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 7 years ago by JohnPollard, updated 6 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: 48 762 times
Version: 1.1
Category: How-tos

simple CSV export

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

Kickstart development with Yii-App

Created 6 years ago by Chris83, updated 6 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
41 followers
Viewed: 35 587 times
Version: 1.1
Category: How-tos

Using Bootstrap with LESS

Created 6 years ago by Chris83, updated 6 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
15 followers
Viewed: 48 890 times
Version: 1.1
Category: How-tos

Twitter Bootstrap style Breadcrumbs

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

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 23 827 times
Version: 1.1
Category: How-tos

Extending an ActiveRecord model

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

protected $_viewFile

2 3
7 followers
Viewed: 22 457 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by dckurushin, updated 6 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: 29 003 times
Version: 1.1
Category: How-tos

Cookie management in Yii

Created 8 years ago by Trejder, updated 6 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
41 followers
Viewed: 161 836 times
Version: 1.1
Category: How-tos

Open Dialog from ajax content

Created 6 years ago by Touzas, updated 6 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: 20 048 times
Version: 1.1
Category: How-tos
11 0
20 followers
Viewed: 28 733 times
Version: 1.1
Category: How-tos

Using Google Maps in Yii Applications via Jquery

Created 6 years ago by bluyell, updated 6 years ago by bluyell.
2 0
6 followers
Viewed: 18 549 times
Version: 1.1
Category: How-tos

How to change Migration Table name and use defined prefix.

Created 6 years ago by Jorgee, updated 6 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: 14 872 times
Version: 1.1
Category: How-tos

Limit a CGridView field to some preset length.

Created 6 years ago by le_top, updated 6 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: 16 282 times
Version: 1.1
Category: How-tos

Implementing a Flat User Access System

Created 6 years ago by Trejder, updated 6 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: 13 722 times
Version: 1.1
Category: How-tos

How to implement an event and attach it in a behavior

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

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

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

Yet another implementation of CPhpAuthManager.

Created 6 years ago by seenivasan, updated 6 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: 14 964 times
Version: 1.1
Category: How-tos

Implementing menu items with progress (wait) dialog

Created 6 years ago by Trejder, updated 6 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: 9 297 times
Version: 1.1
Category: How-tos

Integrating HybridAuth directly into Yii without an extension

Created 6 years ago by biz dev, updated 6 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: 44 733 times
Version: 1.1
Category: How-tos