Wiki

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

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

Created 2 years ago by Kartik VTips2 comments – viewed 57,845 times – ( +51 / -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 18,104 times – ( +42 / -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 35,599 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,138 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,642 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Syntax check

Created 5 years ago by Russell EnglandTips2 comments – viewed 7,945 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,046 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,150 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,420 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.

adding class and links to Ctreeview node

Created 4 years ago by bingjie2680Tips2 comments – viewed 13,990 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class