Articles
Benchmarking requestAction
February 27 2009 | Mark Story | CakePHP
Now there has been a lot of discussion in the past few months about requestAction() and how it can very easily create a negative impact on your application. In fact I even wrote such an article myself. However, its high time that someone did the number crunching to really see if requestAction() is actually as slow as we all seem to think it is. So onto the testing method and the results.
Testing methodTo test this theory I used a smal...
[ Read More | 5 Comments ]RSS Feeds, Fast and Easy
December 25 2008 | | CakePHP
For my first entry, I am going to talk about how to create an RSS Feed on your website. RSS (Really Simple Syndication) is a format used to publish frequently updated works such as blogs or featured products. RSS defines a set of XML elements that are used to describe a channel or feed of information. An RSS feed is comprised of two parts, first is the metadata describing the channel and second is the records that make up the elements of the f...
[ Read More | 7 Comments ]Lighty Story
December 20 2008 | | System Administration
I will tell you a story. Once upon a time... Seriously though, it was not too long ago in the past - but it happened and it is possible you can benefit from it.
What?This tutorial will show how to make lighttpd 1.4.20 serve virtual hosts with CakePHP applications. Our scenario is quite simple:
For admin purposes, lighttpd will listen on localhost, it will serve several CakePHP applications on several external ip addresses, without SSL. ...[ Read More | 3 Comments ]Basic CakePHP markup for designers
December 15 2008 | | Uncategorized
This article assumes you practice semantic markup and have a fairly good understanding of CSS.
CakePHP does a number of things automatically that designers might not expect, which can cause confusion for designers and difficulty for developers in implementing markup. I hope to provide some general purpose information and guidelines to designing for a CakePHP site. I would like to make a couple quick notes first however. CakePHP is a very flex...
[ Read More | 9 Comments ]Meet the CakeDC
December 08 2008 | Larry E Masters | Company News
The articles section of our site will include best practices, business advice, and technical advice, updated weekly or more often by our talented developers. Our articles will touch upon a wide range of topics from our experiences and expertise. Check back frequently for fresh thoughts from our seasoned talent, including Mark Story who was at CakeFest in Argentina providing updates daily on the talks.
As a founder of and lead developer at the...
[ Read More | 2 Comments ]Felix Geisendörfer - Jquery and CakePHP
December 05 2008 | Mark Story | CakeFest, CakePHP
Felix started off by baking his application. While baking his controller he added in the Javascript Helper and RequestHandler Component. This will save adding them in later. Because the demo was based on Jquery the Ajax helper could not be used. However, Felix raised a very good issue of using a helper vs. writing Javascript. His opinion is that if you want to build a heavy AJAX application you should write all your javascript. If you just...
[ Read More | 0 Comments ]Garret Woodworth - Advanced console
December 05 2008 | Mark Story | CakeFest, CakePHP
Since we got through bake on the last talk, we are going to look at some advanced usage of bake and other consoles. The interactive console was demonstrated. With the interactive console, you can examine the routes, interact with models. Following the console demonstration, Garrett demonstrated creation of a custom shell. Building on a previous example application, garret started building a shell to generate a menu. This covered creating met...
[ Read More | 0 Comments ]Mariano Iglesias - Internationalization with CakePHP
December 04 2008 | Mark Story | CakeFest, CakePHP
Why internationalize? You can attract a larger market by making content available in additional languages. When offering international content, you need to translate both the fixed and dynamic content in the database. In CakePHP you can facilitate translation with __() and __n(). In addition content stored in the database can be translated with TranslateBehavior. Multibyte characters exist in many languages, characters outside the traditio...
[ Read More | 1 Comment ]Martin Radosta - Record level security based on SQL
December 04 2008 | Mark Story | CakeFest, CakePHP
Martin's presentation was based around a behavior that he wrote to provide access control using SQL. In designing a solution, martin came up with a few criteria. The solution must be generic, it only requires 4 fields on any table that will be using the behavior. It should perform quickly and not create a lot of extra queries. The solution he searched for also needed to provide a few features. It should provide permissions for read write an...
[ Read More | 292 Comments ]Fabian Andres - CakePHP in big companies, real cases
December 04 2008 | Mark Story | CakeFest, CakePHP
Why talk about large companies. Larger companies have large demands and often they involve money over the internet. Large companies require fast and efficient applications, which in turn requires efficient tools. This is where CakePHP steps in. Current solutions for large merchant solutions include Java, and .Net solutions. In addition to these solutions, there are alternatives in PHP, ruby, python. However, rapid development is difficult...
[ Read More | 0 Comments ]Jeff Loiselle - Authentication & Authorization with CakePHP
December 04 2008 | Mark Story | CakeFest, CakePHP
Why authorize and authenticate?
Authorization ensures someone is who they say they are. Restricting access is a separate process. Authorization is done in CakePHP with Auth Component. Auth works with a database by default, but it can be changed to work with anything. LDAP, Radius, and OpenID are some examples of alternate authentication sources. Auth component has a number of benefits. It hashes passwords, and it provides one API for all au...
[ Read More | 0 Comments ]Jim Lerza - Origami - Automating the paper world.
December 03 2008 | Mark Story | CakeFest, CakePHP
Jim is from Expungement Assitance Services. They run clearMyRecord.com which helps people get their criminal records expunged. Origami is a proposed solution for automating criminal records relief in the United States. The application helps manage all the different types of forms that need to be filled out. All these forms need to be collected and standardized so that the data can be normalized. This helps to automate future applications, an...
[ Read More | 0 Comments ]