Wiki

Articles tagged with "request", sorted by ratingX
Displaying 1-5 of 5 result(s).

URL component access functions

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

Update CGridview row separately using ajax request

Created about a year ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 9,715 times – ( +6 ) – version 1.1
There are cases you want to update a record on CGridview directly

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 3 months ago by Wade ShulerHow-tos1 comment – viewed 10,900 times – ( +8 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

Update specific cgridview html row after AJAX request

Created about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 8,295 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Make an ajax request to another server using JSONP

Created about a year ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 4,705 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.