Magento Forum

   
Image dependency, use of Helper
 
nalex
Jr. Member
 
Total Posts:  1
Joined:  2009-10-05
 

(In version 1.3.2.3)

if a product loses its image for some reason (e.g someone can easily disable it in admin), the front end crashes. 

code like:

$this->helper->(’catalog/image’)->init($_product,’small_image’)->resize(x,y)

does a programmer friendly die()

informative but implies that helper should not be in release code?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top