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: php
Posts Tagged ‘php’
If you want to serve up text files for download (perhaps product feeds etc) then you might like this little snippet. Not only will it force the file to be downloaded but it allows you to specify a custom filename that it should be saved as. PLAIN TEXT PHP: if(isset($_GET['download_file'])){ header("Content-type: application/octet-stream"); [...]
The first development release of Magento 2 has a few areas worthy of note for developers of the coming changes to Magento. Magento 2 now requires PHP 5.3 Zend is still version 1.11.1. Magento 2 now implements templates on a per modules basis. So now all the different bits of the theme are separated into [...]
Magento version two is coming. For those of us who are eagerly awaiting the next major version of the most popular and powerful open source e-commerce platform, you can now see, track and download the code on GitHub. Not had chance to have an in depth look as yet but we expect great things! https://github.com/magento/magento2 [...]
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() [...]
If you are a PHP developer looking for a job in the Bradford area then please do get in touch with Edmonds Commerce. We are a team of PHP developers who focus on e-commerce based on open source packages such as Magento, osCommerce, Prestashop, OpenCart and others. We also do a fair bit of WordPress, [...]
If you use Netbeans then you have no doubt seen the red wavy underline that pops under lines that have errors. Unfortunatley if your errors relate to punctuation, eg concatenation full stops, then the red wavy line can actually obscure these making finding and fixing the error tricky. An nice alternative is to set Netbeans [...]
Just found out this bug that occurs when you try to call an overridden Magento magic methods within the override method. I created a custom attribute for a product with code "price_grid_csv" and I needed to still call the actual Magento magic method; see the below code PLAIN TEXT PHP: public function getPriceGridCsv(){ $price_csv=parent::getPriceGridCsv(); if(condition) [...]
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 [...]
Magento is a typical PHP Model View Architecture (MVC) system which routes its URLs in ways not particularly different from other PHP MVC Frameworks like codeigniter, symphony etc. But the difference it has with other MVC architecture is that most of its routing directives or configurations are XML based i.e. found in one XML file [...]