Tag : Current Page
ItSolutionStuff.com have tutorials for Current Page tag, here you can study articles of Current Page tag, Current Page tag posts collection, most popular and useful tutorials of Current Page tag, here you can find list of all relevant posts and example about Current Page tag, we have lists of tutorials and examples about Current Page tag. very simple and quick example collection of Latest Current Page tag.
Sometimes, we need to get current URL path in your controller file or view file. So, we can get simply using "url" helper. Codeigniter provide url helper library that way we can get existing page url or base url etc.
current_url() through we can get current url in your Codeigniter application. But, you should load "url" helper before use current_url(). you can load url helper as bellow:
<pre>
$this->load->helper('url');
</pre>
In bellow example, you can see code how can i get current url in your controller file. So, let's see.
<pre class="prettyprint lang-php">
$this->load->helper('url');
<b.....
We always require to get current URL path when work on ajax pagination or something, at that we require to get current page URL on Controller or blade file. So, you can get current url easily.
Laravel provide URL facade that way we can get current URL anywhere, as bellow you can see i use current() of URL facade. URL facade through you can get your current page url from every where. So you can check your current url this way:
<strong>Example:</strong>
<pre class="prettyprint lang-php">
$currentURL = URL::current();
dd($currentURL);
</pre>
Whenever you need to get actual page url in Native PHP then you can do using this post. I give you the example that way you can get easily current URL in PHP. following PHP code through you can get:
<strong>Example:</strong>
<pre class="prettyprint lang-php">
$currentLink = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
print_r($currentLink);
</pre>
How to create custom helper in Laravel 5?
Open Post
How to integrate jQuery Fullcalendar using Bootstrap, PHP and MySQL ?
Open Post
How to install laravel framework on windows xampp server from scratch?
Open Post
PHP - Dynamically Add Remove input fields using JQuery Ajax Example with Demo
Open Post
Laravel 5 - How to create API Authentication using Passport ?
Open Post
Laravel 5.3 new feature and update - $loop variable
Open Post