Wiki

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

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 3 years ago by Kartik VHow-tos0 comments – viewed 19,624 times – ( +37 / -1 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

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

Created about a year ago by AlaFalakiTips1 comment – viewed 19,596 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 change the confirmation message on admingridview button and call a ajax..Dynamic

Created 4 years ago by Ankit ModiTips0 comments – viewed 19,561 times – ( +3 / -1 ) – version 1.1
Hi Friends,

Twitter Bootstrap style Breadcrumbs

Created 5 years ago by junaidatariHow-tos0 comments – viewed 19,438 times – ( +5 / -2 ) – version 1.1
1: Create breadcrumb in your view file.

How to implement an event and attach it in a behavior

Created 4 years ago by seb7How-tos0 comments – viewed 19,394 times – ( +6 / -1 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

checkBox in CGridview

Created 3 years ago by n-rOthers1 comment – viewed 19,332 times – ( +1 / -1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

三步使用cronjobs自动化去执行Yii 控制台任务

Created 6 years ago by Darwin WenTutorials0 comments – viewed 19,269 times – ( +1 / -5 ) – version 1.1
这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created 3 years ago by Gerhard LiebenbergHow-tos6 comments – viewed 19,130 times – ( -1 ) – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 5 years ago by pckabeerHow-tos1 comment – viewed 19,075 times – ( +7 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Using Grunt for deploying client scripts

Created 4 years ago by Chris83How-tos8 comments – viewed 18,813 times – ( +11 / -1 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.