Wiki articles in category How-tos

Showing 121-140 of 292 items.

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 724 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 471 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 650 times
Version: 1.1
Category: How-tos

How to use the official Yii installer for Composer (**DEPRECATED**)

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

This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

3 0
10 followers
Viewed: 46 180 times
Version: 1.1
Category: How-tos
11 0
20 followers
Viewed: 28 635 times
Version: 1.1
Category: How-tos

Using Grunt for deploying client scripts

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

For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them...

8 0
7 followers
Viewed: 20 769 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: 19 956 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 616 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 196 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 309 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 754 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 774 times
Version: 1.1
Category: How-tos

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

Turn Web HTML Into Newsletter

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

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9 followers
Viewed: 13 471 times
Version: 1.1
Category: How-tos

Handling Bootstrap active tabs in Yii via URL

Created 6 years ago by JamesBarnsley, updated 3 years ago by JamesBarnsley.

I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to...

3 0
8 followers
Viewed: 32 340 times
Version: 1.1
Category: How-tos

jQuery UI Datepicker

Created 6 years ago by softark, updated 5 years ago by Shahcheraghean.

We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

5 0
12 followers
Viewed: 85 356 times
Version: 1.1
Category: How-tos

Handling recursive deletion in Yii

Created 6 years ago by JamesBarnsley, updated 3 years ago by JamesBarnsley.

I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

3 0
5 followers
Viewed: 12 490 times
Version: 1.1
Category: How-tos

TimeZone dropDown

Created 6 years ago by Tibor Katelbach, updated 6 years ago by Maurizio Domba Cerin.

I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

3 0
4 followers
Viewed: 11 068 times
Version: 1.1
Category: How-tos