Integrating pheanstalk with CI |
[eluser]msgmash[/eluser]
Hi, I want to use Pheanstalk with CI but, being a CI newcomer, I'm a little unsure about how to do this. What I have so far is pheanstalk in a directory under /var and a library class coded as follows: Code: <?php This then gets called every time a particular controller is requested. I'm sure there must be a better way to do this, so am seeking advice! Thanks Simon
[eluser]vbsaltydog[/eluser]
According to this documentation: https://github.com/pda/pheanstalk Your code seems fine for queuing the controller's output to the pheanstalk service. You may need to exit CI after sending the payload to the queue depending on your situation. You can also choose to do the pheanstalk->put() in the post system hook. I don't see the reason for it but thats your business.
[eluser]manasrawat[/eluser]
Hi, Did you guys figure out how to use pheanstalk with CI? It will be awesome if you can post an example here. I am a total newbie and am having a hard time figuring this out. Thanks.
[eluser]tapan.thapa[/eluser]
Hi, I got success in integrating Pheanstalk with Codeigniter 2.1.4. Here are the steps. 1. Download Pheastalk from github (https://github.com/pda/pheanstalk) and add pheanstalk folder inside application/libraries. 2. Create pheanstalk.php under application/config and put below content on it. Code: <?php Code: <?php Code: <?php Note: All method of pheanstalk should work ideally however i have not tried all methods. Let me know if it works for you or ping me for any issue. Thanks & Regards Tapan Thapa |
Welcome Guest, Not a member yet? Register Sign In |