How to Truncate a Table Using Joomla’s Database Abstraction Layer
We know, you’ve always dreamt of truncating a database table using the Joomla database library, but you didn’t know how to do that, so you used the following code instead: $db = JFactory::getDbo(); $sql = ‘TRUNCATE TABLE `mytable`’; $db->setQuery($sql); $db->execute(); The above code works, but it doesn’t say much about your Joomla skills. A cleaner […]
Protecting Joomla’s Files and Directories from Accidents
A few days ago, a managed client of ours called us and told us that their website stopped working, and that that event coincided when an employee was trying to upload a file to the images folder using FileZilla. We immediately knew what the issue was, as it happened to another client of ours a […]
A Custom Module Is Always Better than a Joomla Plugin
When a Joomla developer is asked to add some JavaScript tracking code to a Joomla website, he typically codes a content plugin in order to achieve this result. This, of course, works. But, it’s a very inefficient way of doing things. Why? Because this can be done easily with a custom HTML module and a […]