This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
if (!empty($this->data)) { | |
$redirect = array( | |
'controller' => '{controller}', | |
'action' => '{action}' | |
); | |
foreach ($this->data as $key => $value) { | |
$redirect[$key] = $value; | |
} | |
$this->redirect($redirect); | |
} |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer