Toggen Blog
Tech tips
Articles
Latest
When we move to Melbourne what do I call my blog then?
So since my first post on this blog in July 2006 I have lived in Telarah a suburb of Maitland 40 minutes west of Newcastle in the Hunter Valley 2 hours north of Sydney. In the next couple of months my Wife and I are planning on moving to Melbourne.... So I'm wondering...
CakePHP Getting Back to Where You Were After You Submit an Edit Form
I don't know if this is the proper way to do it but... You have an edit button in a view pointing to a form... When you click edit and you navigate to the edit page and you click submit. The edit actions default is to take you back to the controllers index action...
CakePHP Editable Table Based Dynamic Superfish JQuery Menus (<==mouthful)
Below is one way to create dynamic menus in CakePHP. It uses an element, a custom helper and a database table setup for the Tree behavior. It uses CakePHP 2.6.3. Since posting the below I have made some improvements and posted them to github ==>...
Globally Change the Default Database Connection in CakePHP 2
Note: Sadly this doesn't work in CakePHP 3.x The secret is define a new database config in the DATABASE_CONFIG class ( I use "app/Console/cake bake" and the database option ) Edit AppModel.php to specify the $useDbConfig property as the correct connection name as...
Installing PostgreSQL Server and Connecting PGAdmin3 to a Local Instance on Fedora 21
yum install postgresql-server pgadmin3 postgresql-setup initdb sudo pgadmin3 disable the local all all peer line add local all all trust ...
Fixing “You have only 184MB of freespace….” on a CentOS7 VirtualBox VM
Just had a CentOS7 VirtualBox VM popup a warning saying I was down to my last few hundred MB of free space. (I installed it as a trial with a 8GB root partition and then started using it as an Apache test VM with heaps of data) The VM is using LVM and XFS. So my VM...
