[eluser]Cristian Gilè[/eluser]
[quote author="sorenchr" date="1296059864"][quote author="Cristian Gilè" date="1296018541"]
Quote:Code:
if(isset($_POST))
{
$route['everything'] = "ajax/".theroutehere;
}
It should work. You can use the ternary operator for more elegant code:
Code:
$route['everything'] = isset($_POST) ? "ajax/".theroutehere : 'controller/method';
but, what doesn't work? Please, could you post some code?
Cristian Gilè[/quote]
The example was for illustration purposes only, I am quite sure it doesn't work.[/quote]
I'm sure it works.
Cristian Gilè