A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: November 2007

Using FCKEditor with Zend Framework (File Browser Enabled)

If you are trying to use FCKEditor with Zend Framework, you might be getting errors where ZF is trying to look for a controller named: “FCKEditor”. To fix this, open your .htaccess file in your /html directory and add “xml” … Continue reading

Posted in General | Tagged , | 52 Comments

Using Zend Framework for a CMS

I have just completed (well almost – but it is now fully functional) my CMS (Content Managment System) using the Zend Framework. I’m calling it “Hamburger” – after the current project I am working on, WorldsGreatestHamburgers.com. I am excited to … Continue reading

Posted in General | Tagged , | 6 Comments

Handling HTML Checkboxes. Execute something when checked/unchecked.

In some cases, you are required to do something (EG: show/hide divs) when a checkbox is clicked. Here is an example using jQuery. First your checkbox will look like this: …html code here… < input name=”myCheckBox” id=”myCheckBox” value=”yes” type=”checkbox” /> … Continue reading

Posted in General | Tagged , | Leave a comment

PHP 5: MySQL Singleton Example

What is a Singleton? In software engineering, the singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the … Continue reading

Posted in General | Tagged , , , | Leave a comment

jQuery on Ruby on Rails

I found this: jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library. jRails provides drop-in functionality for these existing … Continue reading

Posted in General | Tagged , , , | Leave a comment

Zend Framework Training

I found this at the Zend Website. The training costs $800 using WeBex – an online training tool. The Zend Framework (ZF) course is designed for experienced PHP programmers who want to learn to combine ZF concepts and structural elements … Continue reading

Posted in General | Tagged , | Leave a comment

File Downloads With Zend Framework

I have been handling file uploads in most of my web applications. Sometimes, I store them in databases and sometimes I feel like storing them in directories. This post will not deal with uploading files, but rather downloading them. Basically, … Continue reading

Posted in General | Tagged , , | Leave a comment

10 projects every php developer should use

This news has circulating around the PHP Community for a few days already – posting it here for record purposes. As a php web developer, you should know that php is probably the language that has the biggest code repository. … Continue reading

Posted in General | Tagged , , , | 4 Comments

Zend Framework with Smarty Templates

Here is a post by zomg from #zftalk. So, we want to have a nice syntax for calling Zend’s viewhelpers from Smarty templates. First, we have some issues we have to find solutions for: * Smarty does not “know” about … Continue reading

Posted in General | Tagged , | Leave a comment