Wiki

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

Yii2 default values for Index data Provider

Created 3 years ago by CTalaTips3 comments – viewed 18,347 times – ( +4 / -1 ) – version 2.0
Guys,

Using Grunt for deploying client scripts

Created 4 years ago by Chris83How-tos8 comments – viewed 18,330 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.

Create a custom menu using CMenu data-items (flat or tree structure)

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 18,270 times – ( +4 / -1 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

Code style

Created 6 years ago by zaccariaTips2 comments – viewed 18,190 times – ( +30 / -1 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 11 months ago by Amjad KhanTutorials3 comments – viewed 18,127 times – ( +5 / -1 ) – version 2.0
Following is the table structure

BUM - Add Additional Info to a User

Created 4 years ago by fireflyHow-tos1 comment – viewed 18,117 times – ( +1 / -1 ) – version 1.1
How to add additional information to a user when using BUM extension?

Create Form With DynamicModel

Created 3 years ago by Misbahul D MunirTips4 comments – viewed 18,111 times – ( +2 / -1 ) – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 18,105 times – ( +4 / -1 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Extending an ActiveRecord model

Created 4 years ago by BogseyHow-tos3 comments – viewed 18,042 times – ( +2 / -4 ) – version 1.1
Introduction

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 6 years ago by a110yTips7 comments – viewed 18,040 times – ( +2 / -1 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line: