Welcome to my blog !

A blog devoted to all things geeky, including PHP, Web Development, Photography, Design, Gadgets and Gizmos.

October 10 2008

Using VIM to edit PHP

Tagged Under : ,

I’ve bee through a number of different editors for coding PHP, including PHPStudio, Dreamweaver, Eclipse, Zend Studio for Eclipse.  The quality of those editors ranged from great (eclipse) to terrible (Zend studio for eclipse, crashing buggy nightmare). I had some kind of negative issue on each of those platforms, generally things not working properly or certain functionality missing.

So I’ve made the leap to using Vim fulltime as a PHP editor.  The main advantage with VIM is that it can be found on pretty much every UNIX/OS X server on the internet.  I can log in and with some VIM knowledge continue editing a file quickly and easily.  No need to depend upon platform specific and expensive editing software.

To get started in vim on OS X the quickest way is to open a terminal window and type vimtutor and you’ll be presented with a pretty simple tutorial.  I just burned through that to make sure I had the basics down, then moved onto the help section and looked into creating new windows in vim (very cool) and search commands and patterns (very powerful).  In about 4-5 hrs you can go from VIM noob to vim intermediate.   Even if you don’t want to make it your fulltime editor and prefer something like dreamweaver, it’s a handy skill to have for editing files efficiently on UNIX boxes.

July 08 2008

Drupal 6 fun!

Tagged Under : ,

Drupal Logo

A recent project has required me to get back into Drupal, which I had some experience using last year (Drupal 5).  Initially its a pretty bare bones systems in some regards.  Not really tailored to SEO or complex views.  But once you have discovered which custom modules to install, the power of the CMS really explodes.

The CCK modules are seriously powerful, numerous SEO modules, numerous image and RTE modules.  The Admin is very user friendly, always good for the clients and Drupal 6 has an improved UI.

The only issue I have had with Drupal 6 so far (coincidentally I had the same issue on Drupal 5) is messing with the navigation system, attempting to get navigation to tertiary menu items displaying correctly.  By all accounts the menu_navigation_links() function should be able to pull out child menu items, but as of yet I have had no luck.