PHP – How to Get current url using CodeIgniter controller’s URL from a view

PHP – How to Get current url using CodeIgniter controller’s URL from a view

In this Post We Will Explain About is PHP – How to Get current url using CodeIgniter controller’s URL from a view With Example and Demo.Welcome on Live24u.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Load view by current URL last segment in Codeigniter Example

In this post we will show you Best way to implement php – Current URI Segment in CodeIgniter, hear for Get current controller/method name in Codeigniter – PHP with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Also Read :   Stripe API Webhook upgrade and downgrade Subscriptions




PHP simple current_url() methods viwa we can get the run mode current url in your PHP based Codeigniter web-application. so, you should load simple “url” and then helper before use simple methods Like as a current_url(). ad then you may simple load url helper as some source code bellow:

$this->load->helper('url');

Codeigniter – How to get current url in controller or view ?

In this bellow example, We can see simple source code how can We get the run mode to current url in your PHP Based controller file.

$this->load->helper('url');

$get_currentURL = current_url();
print_r($get_currentURL);

You are Most welcome in my youtube Channel Please shubscibe my channel. and give me FeedBackMore Details……
Angularjs Example

Also Read :   country state city Dynamic dependent dropdown using jquery in codeigniter





Example

I hope you have Got What is How do I get a controller’s URL from a view in Codeigniter And how it works.I would Like to have FeedBack From My Blog(live24u.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(live24u.com) Are Most Always Welcome.