Integrating Smarty and ez Components with the Zend Framework
by Ralf Eggert |
5 comments | Monday, April 17, 2006
Here is a follow-up to the first part of the little tutorial Integrating Smarty with the Zend Framework. I want to address some of the issues in the comments of the first part and add some further information on how to setup your application to use the Travello_View_Smarty class. Along the way you learn how to integrate classes of the eX Components.
Trick-Out Your Session Handler
by John Herren (staff) |
3 comments | Monday, April 10, 2006
Since HTTP uses a stateless request-response method to transfer web pages, all but the simplest web applications need a way to store data between requests. The best way to accomplish this in PHP is to use sessions. A session identifier is kept client-side in a cookie, and is matched up with data kept on the server, which is made available in scripts through the $_SESSION superglobal. By default, session data is stored on the filesystem in individual files. This works fine for most people, but when it comes to storing session data, PHP has several options available. This article will discuss some of the built-in options for session storage and also show you how to write your own session handler.
Integrating Smarty with the Zend Framework
by Ralf Eggert |
22 comments | Tuesday, April 4, 2006
Inspired by this article I started to play around a bit to integrate the Smarty template engine into the Zend Framework. My ambition was to minimize the required code in the controller actions but stay close to the given Zend_View API. I also wanted to integrate the Smarty caching feature. Here is the code I came up with.
Keeping Your Site Bot Free with "Captchas"
by Cal Evans (roving reporter) |
3 comments | Tuesday, April 4, 2006
As a web programmer, bots are a pain in my Ethernet port if you catch my drift. So how do you keep them out but let people in? You use those little boxes of random letters and numbers that you can read and decipher but (currently) computers can’t.
Roll Your Own Search Engine with Zend_Search_Lucene
by John Herren (staff) |
22 comments | Tuesday, March 28, 2006
On several occasions developing database-driven web applications, I've been approached by clients who want Google-style search implemented at the last minute of the development cycle. Usually this leads to using some canned script that crawls the website, or a hacked up search function that uses the database but either returns too many results or none at all. On top of that, the queries performed are too many or too slow. Until now, most developers have been forced to use relational databases to power search, install extra component packages, or seek out other non-php solutions. The problem with using a relational database, such as MySql's fulltext indexing, is that scalability problems crop up as your search criteria becomes more complicated. One of the features that sets the Zend Framework apart from the others is the inclusion of a decent search module. Zend_Search_Lucene is a php port of the Apache Lucene project, a full-text search engine framework. Zend_Search_Lucene promises a simple way to add search functionality to an application without requiring additional php extensions or even a database.
Zend Framework - Using Smarty as template engine
by seven-php |
0 comments | Sunday, March 26, 2006
This is very interesting article. I am one of many smarty users, and this looks like a nice and easy way to do transition to Zend Framework.
ZF - Enabling Hierarchical URI (Article & Patch)
by Dan Morris |
5 comments | Wednesday, March 22, 2006
IBM, PHP, SEO...Can I get another TLA in this subject line?
by Cal Evans (roving reporter) |
1 comment | Wednesday, March 22, 2006
Like 10,000+ piece puzzles? Got 2 hours to kill? SEO important to you? If you answered yes to any of these, then IBM wants the next two hours of your life. Tyler Anderson has released a PHP tutorial on developerWorks that is part 1 of a 2 part series detailing how to build an application to track SEO information for a set of domains. I’m seeing a muti-service Googlefight in the works. (How I do love improperly applying technology!)
DVD Wallet Covers via PHP and Amazon Web Services
by Cal Evans (roving reporter) |
1 comment | Tuesday, March 21, 2006
J Wynia creates a cool new mashup! PHP + Amazon = Printable DVD Wallet Covers. A great sample showing a practical, real-world example of PHP doing the Web 2.0 thing.
Fun with File Uploads
by Cal Evans (roving reporter) |
10 comments | Tuesday, March 14, 2006
File uploading. Wait. Is it done yet? Did it stop? HELLO?!? Stop the worrying. Read these two approaches to asynchronous file uploads using AJAX as covered by Tomas Larsson and Joshua Eichorn.
