Wiki

Sorted by date (updated)X
Displaying 51-60 of 786 result(s).

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

Updated about a year ago by softarkTutorials0 comments – viewed 16,847 times – ( +6 / -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.

Background task with Ajax

Updated about a year ago by Alexandre RodichevskiTutorials0 comments – viewed 13,284 times – ( -1 ) – version 1.1
Web applications normally execute almost immediately the user's requests. But some requests, like statistical reports, take long time to execute.

Yii 2 Advanced Project Template using Shared Hosting

Updated about a year ago by marciocamelloHow-tos1 comment – viewed 7,056 times – ( -1 ) – version 2.0
https://github.com/marciocamello/yii2-app-advanced-sh

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

Updated about a year ago by AlaFalakiTips1 comment – viewed 17,735 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)

How to translate and do the translations the easy way

Updated about a year ago by Roman SolomatinHow-tos3 comments – viewed 70,593 times – ( +28 / -3 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

Escape from Default's Yii2 Delete Confirm Box

Updated about a year ago by CozumelHow-tos9 comments – viewed 26,988 times – ( +9 / -2 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

Handling recursive deletion in Yii

Updated about a year ago by JamesBarnsleyHow-tos3 comments – viewed 10,853 times – ( +3 / -1 ) – version 1.1
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.

Handling Bootstrap active tabs in Yii via URL

Updated about a year ago by JamesBarnsleyHow-tos17 comments – viewed 28,820 times – ( +7 / -1 ) – version 1.1
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 this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

CMenu widget like bootstrap navbar with submenu

Updated about a year ago by kv4ntTutorials0 comments – viewed 11,382 times – ( -1 ) – version 1.1

Language Selector

Updated about a year ago by Programmer ThailandTutorials1 comment – viewed 7,118 times – ( +1 / -1 ) – version 2.0
common\components\LanguageSelector.php
tags: i18n, language, select