Wiki

Sorted by viewsX
Displaying 571-580 of 719 result(s).

Named scope - Get orphan AR without losing primary key

Created 4 years ago by cmaTutorials0 comments – viewed 5,083 times – version 1.1
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

an easy way to required multi columns(At least one cannot be blank)

Created 3 years ago by 1065227709Tips0 comments – viewed 5,061 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

Implementing menu items with progress (wait) dialog

Created about a year ago by TrejderHow-tos0 comments – viewed 4,955 times – ( +1 ) – version 1.1
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).

Bootstrap Yii cGridView add popup button

Created 7 months ago by Arockia JohnsonHow-tos6 comments – viewed 4,900 times – ( +4 ) – version 1.1
Hi,

Write & use a custom Component in Yii2.0

Created 3 months ago by sirin kHow-tos1 comment – viewed 4,849 times – ( +8 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

Select2 Infinite Scroll With Remote Data in Yii

Created 8 months ago by amanationHow-tos5 comments – viewed 4,801 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

Configuring different sessions for backend and frontend in Yii advanced app

Created 7 months ago by Kartik VHow-tos1 comment – viewed 4,780 times – ( +34 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Entire Messages into javascript object

Created 2 years ago by markuxHow-tos0 comments – viewed 4,758 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Multilanguage Lorem Ipsum Text Generator

Created 2 years ago by yasenHow-tos2 comments – viewed 4,749 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

Create thermometer using rgraph

Created about a year ago by Ankit ModiTips2 comments – viewed 4,744 times – ( +4 )
Hi friends,