Wiki

Sorted by ratingX
Displaying 71-80 of 752 result(s).

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,533 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

An easy way to display a success page using flash messages

Created 4 years ago by qiangTips2 comments – viewed 30,668 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.

How to use an application behavior to maintain runtime configuration

Created 4 years ago by zaccariaHow-tos3 comments – viewed 27,697 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

How to add ajax-loading indicators

Created 5 years ago by schmunkTutorials5 comments – viewed 47,667 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Saving CGridView filter

Created about a year ago by sefburhanTutorials5 comments – viewed 5,725 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

How to use a Widget as an Action Provider

Created 4 years ago by Antonio RamirezHow-tos14 comments – viewed 36,023 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

URL management for Websites with secure and nonsecure pages

Created 2 years ago by qiangHow-tos12 comments – viewed 25,833 times – ( +27 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Using CJuiDatePicker for CGridView filter

Created 3 years ago by softarkHow-tos14 comments – viewed 40,552 times – ( +26 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

X-Sendfile - serve large static files efficiently from web applications

Created 4 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 48,045 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 2 years ago by shulmeHow-tos12 comments – viewed 43,466 times – ( +26 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is: