Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 111-120 of 137 result(s).

A simple class to use a different db for a module

Updated 3 years ago by Maurizio Domba CerinTips2 comments – viewed 12,933 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?

Syntax check

Updated 3 years ago by Russell EnglandTips2 comments – viewed 6,201 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

Using Yii with Oracle through PDO

Updated 3 years ago by waterloomattTips6 comments – viewed 32,773 times – ( +1 ) – version 1.1
When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

A simple action for XUpload extension

Updated 3 years ago by tydeas_drTips1 comment – viewed 13,074 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

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

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

An easy way to use escopes and CActiveDataProvider

Updated 3 years ago by Rafael GarciaTips8 comments – viewed 21,768 times – ( +1 / -1 ) – version 1.1
Often used scopes to define criteria in our models. This is a very useful feature as it ensures that in any part of application applying the criteria defined by the scope when called it.

An easy way to display a success page using flash messages

Updated 3 years ago by qiangTips2 comments – viewed 25,446 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.

Extending common classes to allow better customization

Updated 3 years ago by Steve FriedlTips0 comments – viewed 22,280 times – ( +43 ) – version 1.1
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

URL component access functions

Updated 3 years ago by Steve FriedlTips1 comment – viewed 10,604 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Updated 3 years ago by samdarkTips7 comments – viewed 14,990 times – ( +2 ) – 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: