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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -