Last active
February 1, 2017 09:11
-
-
Save ayies128/f0a72dc46a39f628134ae8c87940e410 to your computer and use it in GitHub Desktop.
CodeIgniter URIパスとセグメントをごにょる ref: http://qiita.com/ss_watanabe/items/93b624e14bfb282eb079
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button type="button" onclick="location.href='http://localhost/seach/list'">reset</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button type="button" onclick="location.href='<?= base_url() . uri_string() ?>'">reset</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button type="button" onclick="location.href='<?= base_url() . ($this->uri->segment(3) ? str_replace($this->uri->slash_segment(3, 'leading'), '', uri_string()) : uri_string()) ?>'">reset</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment