Wiki

Sorted by viewsX
Displaying 411-420 of 719 result(s).

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 7 months ago by Kartik VTips5 comments – viewed 10,195 times – ( +30 / -4 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

caching controllers with filters()

Created 3 years ago by RusAlexHow-tos1 comment – viewed 10,114 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

Save and Display Date/Time Fields in different formats in Yii2

Created 7 months ago by Kartik VHow-tos10 comments – viewed 10,066 times – ( +29 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

ChromePHP for Yii

Created 4 years ago by imeheszTips0 comments – viewed 10,027 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 9,946 times – ( +10 / -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.

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 9,933 times – ( +5 ) – 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.

Encapsulate db and module configurations

Created 5 years ago by ricardogranaTutorials3 comments – viewed 9,910 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

How to send emails using SMTP

Created 8 months ago by robregonmHow-tos0 comments – viewed 9,900 times – ( +4 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

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

Created 2 years ago by Xgamer99Tips3 comments – viewed 9,888 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.

Yii code completion and calltips in Komodo Edit

Created 3 years ago by viterTips1 comment – viewed 9,861 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit