Zend Framework

Zend Framework Hell – Deploying from Windows Development Server to Linux Production Server

The Zend Framework is great, and it has definitely enhanced and minimized the code I have had to write in order to deploy applications. However the time that I don’t spend typing away in my IDE, I have been typing in google trying to search for solutions as to why things are this way, or how I do this, etc. There obviously is a learning curve, and I am hoping by keeping some notes here that future issues will be easily overcome by me (and others) having already found the solutions.
› Continue reading

Tuesday, August 18th, 2009 Zend Framework 3 Comments

Zend Framework – Zend_Form – Adding Form OptGroups for a Select Input

When you get a select with over 50 different options… probably not a bad idea to categorized them in some way. Luckily, Zend_Form already supports the ability for you to pass in those values and create the select as normal. Pass the form object back to your view and echo it out and voila!
› Continue reading

Thursday, August 13th, 2009 Zend Framework 2 Comments

Adding Jquery Functionality to your Zend Framework Project

In your bootstrap you need to include the following code in order to add the Jquery Helper:
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();

//This being the path to your ZendX Library

$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");

$viewRenderer->setView($view);

Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

Then inside your layout file you need to have this inside the head tags:

echo $this->Query();

That’s it!

Add a date picker inside your view file:

Pick your Date:

  echo datePicker("dp1",'',array('defaultDate' => date('Y/m/d', time()))); 

NOTE: If you are using external scripts you MUST instantiate the use of jquery by inserting the following inside your view file:

 $this->jQuery()->enable(); 
Monday, August 10th, 2009 Zend Framework 2 Comments

Adventures with the Zend Framework 1.8 … 1.9

I have started to learn the Zend framework to take advantage of all the classes and object oriented nature of the framework. I will be creating many posts to explain different challenges that I have had while implementing the framework on this blog, so that others can have a speadier process in getting their site up and running.

A couple of the key features that I am implementing that are not always used in the Zend Framework are:

  • Multiple Database Adapters (connect to multiple database types, servers etc.)
  • Creating modular pieces that fit to a larger system

Other Zend Framework classes I will be implementing are:

  • Zend DB
  • Zend Form
  • Zend Logger
  • Zend Loader
  • MVC Architecture

And I am sure many more as I run into new issues.

Wednesday, July 22nd, 2009 Zend Framework No Comments
[ad code=1 align=center]