Expression Engine URL Segments via PHP


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?
  2. $this->EE =& get_instance();
  3. $seg1 = $this->EE->uri->segment(1);
  4. $seg2 = $this->EE->uri->segment(2);
  5. ?>

URL: http://expressionengine.com/user_guide/templates/globals/url_segments.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.