Wiki

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

Adding Yii Search to Your Browser Search Box

Created 6 years ago by qiangTips1 comment – viewed 43,076 times – ( +28 ) – version 1.1
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

URL component access functions

Created 5 years ago by Steve FriedlTips1 comment – viewed 13,017 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 5 years ago by qiangTips2 comments – viewed 38,659 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 5 years ago by zaccariaHow-tos3 comments – viewed 31,460 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.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created about a year ago by skwordenHow-tos12 comments – viewed 106,642 times – ( +27 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

How to add ajax-loading indicators

Created 7 years ago by schmunkTutorials5 comments – viewed 55,478 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

Using CJuiDatePicker for CGridView filter

Created 4 years ago by softarkHow-tos21 comments – viewed 50,337 times – ( +27 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Saving CGridView filter

Created 3 years ago by sefburhanTutorials5 comments – viewed 7,770 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 6 years ago by Antonio RamirezHow-tos15 comments – viewed 41,864 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

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

Created 6 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 61,004 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.