Assuming you’re using the method demonstrated in the Zend Framework Manual, the first thing you need is to configure the Zend AutoLoader. Add this to the index.php file in your public directory:
// Configure autoloader
require_once ‘Zend/Loader/Autoloader.php’;
$autoloader = Zend_Loader_Autoloader::getInstance();
// Require Smarty Engine
require_once ‘Smarty/Smarty.class.php’; // Assuming that you have the Smarty engine at “library/Smarty”
$autoloader->pushAutoloader(‘Smarty’, ’smartyAutoload’);
Change the following line [...]
Recently I went through and upgraded a website from Zend Framework 1.7 to the latest 1.9 minor version. Everything worked great for the most part (aside from a minor code change involving Zend Filter for requests), but there was one significant change that was a bit of a hassle to fix (i.e. “File not found” [...]
I’ve done this a few times already, and it seems every time I make the same time-wasting mistakes. So here’s the process quick and dirty (be sure to follow the links if there’s a point you don’t understand or know how to do):
SSH into your website, navigate to your virtual host directory – the directory [...]
Zend Framework 1.7 has been released!
Here’s what I’m excited about:
Zend_Amf with support for AMF0 and AMF3 protocols
Performance enhancements in Zend_Loader, Zend_Controller, and server components
File transfer enhancements
“In addition, almost three hundred bugs have been fixed”
Download it today!
Parse error: syntax error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in …
I encountered this weird PHP error today; if it happens to you it’s probably because you forgot to declare a variable by leaving off the ‘$’ prefix (e.g., ‘myVar’ instead of ‘$myVar’). More info here: http://en.wikipedia.org/wiki/Paamayim_Nekudotayim.
Obviously, it’s a fairly cryptic error message; albeit its [...]
Here’s a quick little “gotcha” when using the Zend PHP Framework:
If you plan on using Flash at all (i.e., SWF or FLV files) be sure to append the necessary extensions the .htaccess file in the “public” folder to the rewrite rule:
RewriteEngine On
RewriteRule !\.(js|ico|gif|jpg|png|css|swf|flv)$ index.php
Note the added “swf” and “flv” extensions. Otherwise access to these [...]
Good things are coming to PHP, and sooner than expected: http://www.sitepoint.com/article/whats-new-php-5-3
Here’s a quick list:
Namespaces
Namespace Aliases
Native MySQL Driver
Class constants
Late static binding
I can’t wait to start using this.
I’ve been reading a lot about ASP.Net (with C#) recently. I want to learn to use ASP.Net proficiently so that I can add it to my web “toolkit” (development languages I’m familiar with). A major downside to learning a new language is that as you consistently practice the new, it seems that you lose [...]
The following is a compilation of notes taken while installing and configuring Symfony for Windows XP with Apache 2.2:
The Process
Make sure that PHP is installed, then go to your PHP directory (i.e., C:\php) and double click go-pear.bat.
It will ask whether you would like to install a system-wide or local copy, type in “local” and press [...]
The following is a series of notes that I compiled while installing and configuring Apache 2.2, PHP 5, and MySQL 5 on Windows XP:
Apache Installation
Download Apache HTTP Server (v2.2) from apache website or from mirror, make sure to get a binary file.
Run binary file and install Apache.
MySQL Installation
Download MySQL Server from dev.mysql.com, do NOT get [...]
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Nov | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||