Wiki

Sorted by commentsX
Displaying 311-320 of 786 result(s).

Create Form With DynamicModel

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

Step by step for how to full export Yii2 grid to excel

Created 3 years ago by Scott_HuangTips4 comments – viewed 42,288 times – ( -1 ) – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

Add model validator in Controller

Created 3 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 18,371 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

How to setup yiic on WAMP (XP/Vista)

Created 9 years ago by krillzipTutorials3 comments – viewed 80,661 times – ( +3 / -1 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

How to keep filters simple in CGridView

Created 3 years ago by PeppeHow-tos3 comments – viewed 7,046 times – ( +1 / -1 ) – version 1.1
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

How to hide index.php on nginx

Created 9 years ago by milesTutorials3 comments – viewed 61,714 times – ( +4 / -1 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

How to re enable logging during unit testing

Created 6 years ago by AsgarothHow-tos3 comments – viewed 16,968 times – ( +11 / -1 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

How to validate CSRF token with session

Created 6 years ago by yangmlsHow-tos3 comments – viewed 59,770 times – ( +23 / -1 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Debuging variables in Yii2

Created 3 years ago by johonunuTips3 comments – viewed 16,687 times – ( +2 / -2 ) – version 2.0
This tutorial is explained following "basic" application structure.

How to create/save more Model inputs and make them repeatable with jQuery

Created 8 years ago by qiangTutorials3 comments – viewed 41,172 times – ( +12 / -1 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.