Welcome Guest, Not a member yet? Register   Sign In
URI Class
#1

[eluser]omed habib[/eluser]
How do I use the following method:

Code:
$this->uri->segment(1)

In the config file? When I try to use it I get the following error message:


Fatal error: Using $this when not in object context in /opt/local/apache2/htdocs/silvercreditapp_com/system/application/config/config.php on line 16


Any ideas?
#2

[eluser]BravoAlpha[/eluser]
Use it in the controller or the view.

http://ellislab.com/codeigniter/user-gui...s/uri.html
#3

[eluser]omed habib[/eluser]
There is no way to retrieve the controller from the current URL in the config file?
#4

[eluser]Michael Wales[/eluser]
Why would you want to? I can't think of a single setting within the config file where it would prove useful.




Theme © iAndrew 2016 - Forum software by © MyBB