This is a Tutorial: Change Git Username and Email These instructions are given to you when you first commit with git. Just btw. git config –global user.name “Your Name” git config –global user.email you@example.com Afterwards type: git commit –amend –reset-author
Author: me
In git config #C:/User/Name/.gitconfig: [user] email = my@email.com name = My Name [core] … [diff] tool = bc3 [difftool] prompt = false [difftool “bc3”] path = C:/Program Files (x86)/Beyond Compare 3/Bcomp.exe trustExitCode = true [merge] tool = bc3 [mergetool] prompt = false keepBackup = false [mergetool “bc3”] path = C:/Program Files (x86)/Beyond Compare 3/Bcomp.exe […]
How to Setup Yii on your Environment Server 1. Make Sure your vhost is setup correctly, with debian/ubuntu that is /etc/apache2/sites-available/sitename Options FollowSymLinks -Indexes Includes AllowOverride All 2. Set your include path in php.ini that is etc/php/apache2/php.ini ; UNIX: “/path1:/path2” include_path = “.:/usr/share/library” 3. Download, get url from Yii Download Page wget https://github.com/yiisoft/yii/releases/download/1.1.14/yii-1.1.14.f0fee9.tar.gz 4. Unzip […]
It’s a New Year That means Instead of Saying 2014 on the bottom of your website it says 2014. copyright (c) 2013 Mysite.co.za Well here’s how to make that line dynamic so you need not change it again Zend: <?php $date = new Zend_Date(); echo $date->get(Zend_Date::YEAR); ?> PHP: echo date(“Y”);
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 […]