Categories
Zend Framework 1.12

Zend_form populate() not working?

Zend_form populate() not working Below are a few reasons and a method for correcting: Zend_form populate() not working 1. Get the record used to populate $myModel = new Model_My(); $id = $this->_request->getparam(‘id’); $record = $myModel->find($id)->current(); 2. Make Sure is the form of key value pairs array Zend_Debug::dump($record->toArray()); 3. Make Sure you are calling correctly $frmResource […]

Categories
Github

What is the clone URL of my Private Remote Git Repository?

The URL is of the form: user@my.site.com:project.git git@git.droplet.com:my-project.git

Categories
PHP PHP 5 Web Development

PHP Developer Checklist: Application Level Package Managers

PHP Application Level Package Manager: Composer What is Composer? Ever used apt, dpkg, yum?  These are package managers for unix systems, they automatically update your server with latest updates and install dependant libraries. Composer does the same thing just for PHP. It allows you to declare the dependant libraries for your project in a: composer.json […]

Categories
Github Server

Private Remote Git Repository Debian Wheezy and other stories from Hell

Setting up your Private Remote Git Repository So you need a private remote git repository for collaborative, backup or convenience reasons. You have your local repository setup and now you want another repository in the cloud. Recently, a few moments ago, I started this task and here I am about an hour and a half […]

Categories
Programming

Progam Writing and Coding Style and Commenting Code

Your Coding Style should contain Comments /* comment */ /********************************************************************* * Program Name: description * * Author: Name Surname * * Purpose: Reason for program * * Usage: What to Expect * *********************************************************************/ Commenting: Commenting in HTML Commenting in Bourne Shell(unix, Shell, perl, Python, Ruby) # comment Commenting in Java, C, C#, C++, PHP /* […]