How to Protect Functions in CakePHP

If you don’t want to implement complex user administration with authorization components for you application then you can simple protect your secret functions by using .htpasswd file. I am just giving an example for admin function.

Add the below lines on your apache virtual host configuration

Now you required user name and password […]
Continue reading…