Reading the generally very clear and concise Yii documentation you can quickly get started with the framework. However one issue that I struggled to be clear on is setting up the database driven authorisation system. I recommend reading this blog post which finally helped me to understand wth I was supposed to do. The official [...]
Archive: solution
Posts Tagged ‘solution’
I was recently asked by a client to create a scrollable, navigation menu for their site. However, they wanted it to have an onHover submenu that expanded to the side, over the top of the scrollbar. The problem with this is that there is noway to do this using normal css, over the overflow:scroll hides [...]
So you have a plesk backup file and you want to extract and open the files from it? No problem. This blog will show you how. The file is a mime file. The "mpack" package will let you unpack it. First we install the "mpack" package PLAIN TEXT CODE: sudo apt-get install mpack Let's imagine [...]
I recently needed magento to be able to load a product, and if that product was part of a configurable product detect this and return the parent product if that existed. Looking around google I came across this code snippet and thought it should work PLAIN TEXT PHP: $_product = Mage::getModel('catalog/product')->load($productId); $parentIdArray = $_product->loadParentProductIds() [...]
I have been making a mwnu system for magento that would allow a client to add extra links to CMS page to top menu through a static block. One of the requirements was when you clicked the link the menu should display as active. To do this I extended the Category_Navigation Block so it would [...]
I've recently been asked to customise the front page of a magento store. The client wanted the ability to specify a different set of top links depending on whether the customer was logged in or not, and they wanted to be able to changes these links from the admin section. They also wanted the logged [...]
Many database queries rely on seeing if two columns match / differ, however sometimes you may want to check if either column contains a sub-string of the other. MySql allows you to do this, but it isn't that well documented, so hopefully this will help someone looking for this in the future SELECT * FROM [...]
Often you will see SSL warnings or errors related to insecure content being displayed on a secure page. This could be as simple as one javascript file or image that is being included via http rather than https, though some times this can be a bit tricky to track down. The easiest solution is to [...]
Thanks to the acquisition of Magento by eBay, one of the major extension developers, Ess, now has an agreement with eBay/Magento to provide their integration extension free. Here's their site and here's the extension on Magento Connect It's also worth knowing that the extension is avaiable on Magento Go, so if you're looking for hosted-only, [...]
There is a new feature in Netbeans that tries to auto fill the variables for methods and functions in PHP. Whilst this may be something that is a time saver for some, it often gets these wrong, and if you are using descriptive variables in the method then these are overwritten if you have a [...]