Jonathan Snook’s Blog: Password Protecting Admin Functions in CakePHP

Original post provide by PHP Freaks

Jonathan Snook has posted a helpful trick for CakePHP users out there looking to secure sections of their site away from normal users and keep it only in the hands of the admins.

I just wanted to document this for easy future reference but if you don’t want to hook up a complex user adminstration with authorization components, you can simply specify that the admin path be password protected in either your .htaccess file or in your httpd.conf.

This method is actually one of the builtin methods Apache has for restricting access (http authentication) that he’s placed on his /admin directory. Call htpasswd to create the password file and you’re all set to go.

Previous Articles:
Matthew O'Phinney's Blog: Burlington PHP Tonight
Bradley Holt is founder and web developer for Found Line, a local design and development studio which has used Zend Framework in several recent projects. You can get more information about the meetup from this event page on their Google Groups site (happening at the Brown and Jenkins Coffee Roasters).
Zend Developer Zone: Lifting The Skirt On Zend Framework 1.5 - Zend_Form
Zend_Form gives you all the tools necessary to create forms and form elements via PHP code. Like everything in Zend Framework, almost everything is configurable; however the defaults are probably good for most uses. They include some sample code that shows the creation of both a simple, sample form and something a little bit more advanced including validation methods and making fields required.
Community News: Latest PHPClasses.org Releases For 01.30.2008
Latest PHPClasses.org Releases:JPEG Slicerclass upload fileFeed GeneratorCSV CreationKG MySQL ClassMYDB ClassmyYouYubeCotação do DollarObject dynamic generationHTTP client classconvert
AJAX Virtualization? Java Applets To Create Dynamic Web Pages
The OPC DataHub from Cogent Real-Time Systems now provides more ways to visualize and interact with real-time data in a web browser. Its new streaming AJAX Web Data Browser displays immediate updates to data from a wide range of sources like databases, spreadsheets, and OPC servers.
WebTech 2007
The 4th Internet technologies conference will take place from June 29 till 30th in the Bulgarian seaside at city of Varna where you can combine sun, sea and technologies. The conference as in the previous 3 years will focus on new technologies in web programming, open source and everything that stands for IT.
More Articles:
Tobias Schlitt's Blog: Book Of The Month (eZ Components)
Tobias Schlitt mentioned today that the book from him and fellow coauthor Kore Nordmann, a guide to the eZ Components framework, has been made the featured book of the month over on DynamicWebPages.de. On the website you now find a picture of the book in a very prominent place and an extensive recension (German) linked from there.
DevShed: Keeping Track Of Objects When Using Destructors In PHP 5
Devshed continues their series looking at the use of destructors in PHP5 applications with part three, a method for keeping track of objects you've created during execution. In this third part of the series, I'm going to show you how to retrieve some useful information about a specific object, including its properties and methods, prior to its being destroyed by the PHP parser via the implementation of a simple destructor.
The Bakery: New Articles/Components/Helpers Posted
The Bakery (for the CakePHP framework) has several new articles/helpers/components they've posted about lately here's the list: CakePHP on IIS Yahoo! Weather Component ACL Management Plugin Visualize Generate a graphic of your models/tables Tree Helper New Year, New Beta Check out The Bakery for more information on these and other great CakePHPrelated items.
A Mythbuster's Biggest Tech Headaches (and Solutions)
extra features tend to bog down your system by demanding more processing power and memory. Computer-makers: Don't load up operating systems with features and then make us sweat to figure out how to get rid of the fat ...
ProDevTips.com: HTML Entity Encoding Everything
However, sometimes you might want to encode different languages to entities too. I just found a script that will do that in the form of an html encode application. He includes an example showing how to encode a string of nonenglish characters out to an easytodisplay HTMLified string.

Leave a Reply