Displaying 611-620 of 779 result(s).

How to avoid multiple Ajax Request

Created 5 years ago by nickcvHow-tos26 comments – viewed 52,802 times – ( +25 / -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 5 years ago by MikeHow-tos2 comments – viewed 9,079 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 5 years ago by rsinghHow-tos16 comments – viewed 99,016 times – ( +38 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

How-To: Create a REST API

Created 5 years ago by jwernerHow-tos56 comments – viewed 331,417 times – ( +113 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Ativando temas no Zii Widgets

Created 5 years ago by Ivan WilhelmTutorials3 comments – viewed 8,973 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 5 years ago by Rafael GarciaTips8 comments – viewed 27,801 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 5 years ago by qiangTips2 comments – viewed 37,183 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.

To configure Yii path in Windows platform

Created 5 years ago by CodaTutorials2 comments – viewed 38,708 times – ( +3 / -6 ) – version 1.1
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

Actions code reuse with CAction

Created 5 years ago by Antonio RamirezHow-tos13 comments – viewed 40,057 times – ( +36 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Configuring controller access rules to default-deny

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 79,334 times – ( +12 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.