Articles
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 ]Ryan Petersen - Collective Intelligence
December 03 2008 | Mark Story | CakeFest, CakePHP
Collective intelligence is a shared or group intelligence that emerges from the collaboration and competition of many individual. Some examples would be Amazon's book recommendations. Netflix uses collective intelligence to track their stock and supply changes, and more accurately allocate their resources.
Recommendations requires something to track like sales, or user preferences. A group of users is also required, the larger the group the ...
[ Read More | 1 Comment ]Martín Sarsale - Death of Apache Long Live Lighttpd
December 03 2008 | Mark Story | CakeFest, CakePHP
Lighttpd runs as one thread there are no forks, and only one thread. Lighttp is not good for large virtualhosts. It also bottlenecks on the disk speed. It is however good, when you have a single large application or need to total control.
Lighttpd has several modules that are analogous to Apache such as Rewrite, Auth, Expires etc.
Configuration files in lighttpd are very dynamic and allow for variables, regular expressions and if blocks.
B...
[ Read More ]Garrett Woodworth - CakePHP console basics
December 03 2008 | Mark Story | CakeFest, CakePHP
Garret's talk focused on getting command line tools setup. Before getting started on that he covered how to setup a virtual host for a cake project. Once he got into the cake shell, he covered the basic core shells and how to call shells.
Garret then used bake to create a new project and a database config file. Using cake bake project and cake bake db_config.
Up next was creating a schema file with cake schema generate. The schema file was...
[ Read More | 0 Comments ]Mariano Iglesias - CakeFest.org: Themes, ACL, Auth, Security, and more
December 03 2008 | Mark Story | CakeFest, CakePHP
Mariano is presenting about creating a complete website with a framework. Specifically Mariano will be talking the CakeFest site. This should help to show how to apply the theories that have been talked about up to today and throughout the rest of the week. cakefest.org was developed for the first Cakefest, it is multi-user, multi-event, multi-language application, that was needed to scale for mulitple events. It was built with Themes, Beha...
[ Read More | 0 Comments ]Nate Abele - PHP is dying
December 03 2008 | Mark Story | CakeFest, CakePHP
Nate started with a brief history of computation, starting with the abacus. And progressing to PHP and covering the presence of bad PHP and Perl code.
The good and bad of frameworksFrameworks can help inexperienced developers write better code, however a framework can also be used in a black box context. As a tool that you use, you should try to understand how and why it works. Having a blackbox is not going to help you get better. If y...
[ Read More | 1 Comment ]