Wiki

Articles in category "tips", sorted by commentsX
Displaying 61-70 of 133 result(s).

Putting Function To Be Called In View

Created 3 years ago by junxiongTips2 comments – viewed 22,648 times – ( +6 / -1 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

CJuiTabs Content

Created about a year ago by mbalaTips2 comments – viewed 9,918 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

The complete beginner's study guide for the Yii Framework

Created about a year ago by Rodrigo CoelhoTips2 comments – viewed 43,364 times – ( +20 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

FORM with GET method causes repeated stacking of URL Parameters

Created 2 months ago by Kartik VTips2 comments – viewed 1,172 times – ( +26 / -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 3 years ago by qiangTips2 comments – viewed 22,801 times – ( +26 ) – 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 3 years ago by Darwin WenTips2 comments – viewed 16,905 times – ( +2 / -3 ) – version 1.1
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

Create URL to language switcher anchor with langhandler

Created about a month ago by Anas AbuDayahTips2 comments – viewed 911 times – ( +1 / -1 ) – version 1.1
This topic is related with langhandler extension

Syntax check

Created 3 years ago by Russell EnglandTips2 comments – viewed 5,879 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

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 8,806 times – ( +12 ) – 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

A simple class to use a different db for a module

Created 3 years ago by tydeas_drTips2 comments – viewed 12,173 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?