Wiki

Sorted by viewsX
Displaying 421-430 of 738 result(s).

Ordering Models by Weight with CJuiSortable

Created 5 years ago by Matt KelliherTutorials2 comments – viewed 10,928 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 10,903 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

Advanced CTabView using CClipWidget

Created 6 years ago by krillzipTutorials1 comment – viewed 10,836 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 10,823 times – ( +6 ) – version 1.1
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 headers, and obtain a nicer view.

Nested inline active fields inside Bootstrap horizontal forms

Created 9 months ago by Kartik VHow-tos2 comments – viewed 10,746 times – ( +40 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

How to implement cron in Yii 2

Created 11 months ago by hemcHow-tos8 comments – viewed 10,693 times – ( +9 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created about a year ago by Kartik VHow-tos2 comments – viewed 10,621 times – ( +35 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

Adding a link to a CDataColumn

Created 2 years ago by le_topTips6 comments – viewed 10,570 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

caching controllers with filters()

Created 4 years ago by RusAlexHow-tos1 comment – viewed 10,510 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 2 years ago by Xgamer99Tips3 comments – viewed 10,489 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.