Wiki

Displaying 531-540 of 707 result(s).

How to generate Yii-like Documentation

Created 3 years ago by AsgarothHow-tos9 comments – viewed 25,250 times – ( +45 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

CListView AJAX filtering

Created 3 years ago by DragaTutorials16 comments – viewed 47,652 times – ( +17 ) – version 1.1
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Syntax check

Created 3 years ago by Russell EnglandTips2 comments – viewed 6,206 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 International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 29,493 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

A simple action for XUpload extension

Created 3 years ago by tydeas_drTips1 comment – viewed 13,080 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

Relations: BELONGS_TO versus HAS_ONE

Created 3 years ago by Steve FriedlFAQs9 comments – viewed 81,359 times – ( +67 ) – version 1.1
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

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

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

Yii tinymce结合syntaxHighlighter和syntax

Created 3 years ago by Darwin WenTutorials0 comments – viewed 6,800 times – ( +1 ) – version 1.1
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

How to avoid multiple Ajax Request

Created 3 years ago by nickcvHow-tos24 comments – viewed 38,963 times – ( +24 / -2 ) – version 1.1
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

Prevent asset publishing for CListView

Created 3 years ago by MikeHow-tos2 comments – viewed 7,370 times – ( +2 ) – version 1.1
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
tags: CListView, Assets