• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.