Wiki

Sorted by viewsX
Displaying 511-520 of 784 result(s).

Bootstrap Yii cGridView add popup button

Created 3 years ago by ஆரோக்கிய ஜான்சன்How-tos6 comments – viewed 13,368 times – ( +4 / -1 ) – version 1.1
Hi,

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 2 years ago by robregonmHow-tos2 comments – viewed 13,311 times – ( +11 / -1 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,269 times – ( +28 / -1 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

How to get & store Last Login DateTime in database?

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 13,253 times – ( +7 / -1 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

How to change GridView delete confirmation message for specific controllers only?

Created about a year ago by AlaFalakiTips1 comment – viewed 13,249 times – ( +2 / -1 ) – version 2.0
Hello, If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do: (I've only put the ActionColumn part of the GridView here to just give you the idea)

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 3 years ago by edoardo849How-tos2 comments – viewed 13,168 times – ( +6 / -1 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 13,084 times – ( +13 / -1 ) – version 1.1
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.

caching controllers with filters()

Created 6 years ago by RusAlexHow-tos1 comment – viewed 13,026 times – ( +2 / -1 ) – 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

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

Created about a year ago by softarkTutorials0 comments – viewed 13,023 times – ( +5 / -1 ) – version 2.0
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 13,021 times – ( +7 / -1 ) – 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