php - CodeIgniter controller to view to another controller url -
say example, loaded view controller1
the url should index.php/controller1/<function view ran>
then view have link.
<a href='controller2/view'>view</a>
after clicking link, url looks this.
index.php/controller1/controller2/view
is there way clear previous url_segment, or there better way link controller's function.
do.
<?=base_url(); ?>/controller2/view
inside href.
Comments
Post a Comment