Wiki

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

URL component access functions

Created 5 years ago by Steve FriedlTips1 comment – viewed 12,622 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

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

Created about a year ago by Wade ShulerHow-tos2 comments – viewed 36,363 times – ( +16 / -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 CGridview row separately using ajax request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 13,508 times – ( +7 ) – version 1.1
There are cases you want to update a record on CGridview directly

Update specific cgridview html row after AJAX request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 10,899 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 2 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 6,745 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.