simple routes question |
[eluser]winter[/eluser]
Hi all, I have a very simple app that takes a DB id from the user and does some calculations from data in the some dbs and shows the results. I'd like to make a link and the bottom of the results page that emails the results to an email address. Rather than pass a large amount of data via the URL to a controller, I thought I'd execute the index function one more time. I want to be able pass a boolean argument to the index function in my controller. This boolean value will then determine if the data is send to screen or if it is returned. I playing with routes to try to get a default argument set to FALSE. However, it only works when the exact controller/function is entered. I'd like it to also work when root url is used and $route['default_controller'] routes to the correct controller. ':any' doesn't seem to work nor does '/:any'. The low down: How can set a route for the root URL? (http://mysite.com/myapproot) Does that make sense? Thanks all!
[eluser]winter[/eluser]
Never mind... Sorry for the noise. It was simple. Set $route['default_controller']. |
Welcome Guest, Not a member yet? Register Sign In |