Optimize your Joomla! 1.5 component installer

Most developers know that a component can have an install.componentname.php, containing a com_install() function with your custom instructions. For example, copying files to different locations or inserting localized sample data. When these instructions fail, you can of course print a message about that. The result however, is that the user sees both your ‘Failed’ message, as well as Joomla!’s ‘Success’ message. Users find this is very confusing.

The solution is actually extemely simple: inside com_install(), you need to return false. This tells the installer that your custom script has failed, and a relevant error message will be displayed. There is an added benefit as well: the installer will perform a rollback, removing all the files in the process.

By the way: I’m blogging live from the Joomlatools Bug Squashing event in Brussels!

Read more

Hello world! at the Joomlatools Blog

Joomlatools blog is launched and it has already two entries on it! … Yay!

We are happy to be finally up and buzzing in the blogosphere, a great place to be! We will be blogging about what’s cooking in the Joomlasphere and especially about the things we are doing at Joomlatools.

Exciting stuff happening behind the scenes. We have a few surprises cooking. It’s going to be an great start of 2008, hint. Stay tuned for more information !

Read more