Creating Action Controller in PHP
We could handle actions in PHP like this… <?php $actions = $_GET['action']; switch( $actions ) { case ‘hello’: say_hello(); break; case ‘bonjour’: say_bonjour(); break; default: echo ‘Unknown action ‘.$actions; } … ?> But this way is hard to extend and hard to maintain.
Want to have your say? just login


Be first to show your opinion !!!