@jasen
To redirect to a specific part of a page in CodeIgniter, you can use anchor tags with a specified anchor name in the URL. Here's how you can do it:
1 2 3 4 |
public function redirectToSpecificPart(){ $url = base_url('controller_name/method_name#specific_part'); redirect($url); } |
1 2 |
<a name="specific_part"></a> <h1>This is the specific part you want to redirect to</h1> |
When the redirectToSpecificPart
function is called, it will redirect to the specified anchor on the page. Make sure to replace 'controller_name' and 'method_name' with the actual controller and method names in your CodeIgniter application.