Question and answer is powered by AnsPress.io
I have applied this code
$this->uri->segments(2);
I have got this error:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined method CI_URI::segments()
Filename: /home/salesport/domains/salesport.co.in/
public_html/application/views/_headers/header_main.php
Line Number: 82