|All requests||>||Console app to call mvc controller ac...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Ritesh Upadhyay - 6 years ago (2015-03-24)
Yii i use console to call controller action Console app to call mvc controller action to real time process Pcntl is advatage for this process my problem is my controller action inside some other action that take too much time bacause inside i call update and api multiple curl call so please guide me what i do
Here there is a good class that when it was written by me. It is intended for the asynchronous execution of the action. See an example, there's simple. Most importantly, note that from the web interface it will not work, but if a strong desire, you can call the class of the function exec() or other analogs. If you need to process after launch to get rid of the console outside the class at the end add the function posix_setsid(). Aluchshe just read the article http://www.phpclasses.org/blog/post/270-Creating-a-PHP-Daemon-Service.html, it will help you.
1. by Ritesh Upadhyay - 6 years ago (2015-04-07) Reply
Hello can you help me how to develop process like when i open my detail page it controller/action with unique id pass into browser inside action id related update and calculation api call in background but same type or other id of request more than 10000 so use background this process how develop.please guide me thanks in advance