What to automate? Auto routing no more defining in routes.conf.php Auto view rendering no need to specify a view to be rendered
Let’s do some tweaksAuto routing1. Remove the routes definition in routes.conf.php2. Set AUTOROUTE to true in common.conf.phpAuto view rendering1. Remove $this->renderc() in controller2. Set $autorender property to true in controller
Remove the routes definition in routes.conf.phpSet AUTOROUTE to true in common.conf.php
What’s the difference?Manual way Gives you whole lot of manual controls, good news for ya’, control freaks! Auto way Save you all da’ tedious wok’! Good news for ya, lazy bump!
Hybrid? When?When you’re using auto routing BUT You want some freaking awesome URLs (for SEO purpose, maybe) You want to redirect some non-existent URLs. You want URLs for your users. http://twitty.com.my/leng And some weirdo situation you would never thought of...
Freaking awesome URL* You won’t be ranked number 1 in Google search that easily though