Welcome Guest, Not a member yet? Register   Sign In
Default Method for Controllers
#6

[eluser]Chad Fulton[/eluser]
$0 matches the entire string that matched the regex pattern, and since the pattern is (:any), $0 is the same as $1 in this case. If the pattern was index/(:any), then $0 would be (for example) "index/dashboard", whereas $1 would be "dashboard".


Messages In This Thread
Default Method for Controllers - by El Forum - 09-03-2009, 08:35 AM
Default Method for Controllers - by El Forum - 09-03-2009, 08:48 AM
Default Method for Controllers - by El Forum - 09-03-2009, 10:58 AM
Default Method for Controllers - by El Forum - 09-03-2009, 12:29 PM
Default Method for Controllers - by El Forum - 09-03-2009, 12:58 PM
Default Method for Controllers - by El Forum - 09-03-2009, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB