Wiki

Articles in category "tips", sorted by commentsX
Displaying 71-80 of 153 result(s).

Yii2 default values for Index data Provider

Created 2 years ago by CTalaTips2 comments – viewed 12,376 times – ( +3 ) – version 2.0
Guys,

Yii 2 list of path aliases available with default basic and advanced app.

Created 2 years ago by Kartik VTips2 comments – viewed 62,832 times – ( +52 / -5 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

FORM with GET method causes repeated stacking of URL Parameters

Created 2 years ago by Kartik VTips2 comments – viewed 19,332 times – ( +43 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

An easy way to display a success page using flash messages

Created 5 years ago by qiangTips2 comments – viewed 36,301 times – ( +28 ) – version 1.1
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

Yii实战中8个必备常用的扩展,模块和

Created 5 years ago by Darwin WenTips2 comments – viewed 27,635 times – ( +2 / -3 ) – version 1.1
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

Create URL to language switcher anchor with langhandler

Created 2 years ago by Anas AbuDayahTips2 comments – viewed 3,808 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Syntax check

Created 5 years ago by Russell EnglandTips2 comments – viewed 8,053 times – ( +4 ) – version 1.1
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 2 years ago by Kartik VTips2 comments – viewed 12,650 times – ( +48 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,297 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Using MBMenu and Rights to automatically create menu item for your modules

Created 5 years ago by dinhtrungTips2 comments – viewed 13,528 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.