zen of coding

Controller makeover (from ugly to beautiful)

Let’s take a controller ridden with problems and see how we can improve it. Hopefully this little experiment can help you beautify your code and optimize your app… This is our ugly Users controller: class UsersController extends AppController { var $name = ‘Users’; var $uses = array(’User’, ‘Profile’); function add()[…]

Read More »
%d bloggers like this: