Wiki

Displaying 521-530 of 692 result(s).

Relations: BELONGS_TO versus HAS_ONE

Created 3 years ago by Steve FriedlFAQs9 comments – viewed 78,204 times – ( +65 ) – 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 17,786 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,694 times – ( +1 ) – version 1.1
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

How to avoid multiple Ajax Request

Created 3 years ago by nickcvHow-tos24 comments – viewed 37,535 times – ( +23 / -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,237 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

Uploading multiple images with CMultiFileUpload

Created 3 years ago by rsinghHow-tos16 comments – viewed 74,659 times – ( +37 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

How-To: Create a REST API

Created 3 years ago by jwernerHow-tos52 comments – viewed 215,778 times – ( +107 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Ativando temas no Zii Widgets

Created 3 years ago by Ivan WilhelmTutorials3 comments – viewed 7,243 times – ( +4 / -2 ) – version 1.1
Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.

An easy way to use escopes and CActiveDataProvider

Created 3 years ago by Rafael GarciaTips8 comments – viewed 21,278 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

Created 3 years ago by qiangTips2 comments – viewed 24,458 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.