in reply to Reducing the complexity of dispatch tables
Your entire dispatch table can be replaced by the following 2 lines:
$action = $apr->param('a') || 'home'; render_template( $action, $action );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reducing the complexity of dispatch tables
by moritz (Cardinal) on Aug 31, 2007 at 17:48 UTC | |
by BrowserUk (Patriarch) on Aug 31, 2007 at 18:15 UTC | |
|
Re^2: Reducing the complexity of dispatch tables
by jdporter (Paladin) on Aug 31, 2007 at 19:12 UTC | |
by BrowserUk (Patriarch) on Aug 31, 2007 at 19:22 UTC |