by
176 10
0
5
1,895
7
Top 1% !
Popular
Famous
Refined
OpenSource
Popularity: 11415th place

Published on:

No tags for this snippet yet.
Architecturex86_64
Extensionnew 17
LanguageText
OSWindows
Windows VersionWindows8

calling a controller from another controller in codeigniter - no hmvc- Nassim baci

calling a controller from another controller in codeigniter - no hmvc-  we ll need Request library http://requests.ryanmccue.info/
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/654585/calling-a-controller-from-another-contro?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$this->load->library('PHPRequests'); $this->load->helper("url"); $response_url = base_url()."controller/method"; $response_str = Requests::get($response_url); echo($response_str->body); $json_data = json_decode($response_str->body);
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus