title: Get public attribute from a magento model
body: <p>I want to get the a variable of a magento model. In my <code>app/code/community/Project/Module/Model/Module.php</code>, I declare a variable like that :</p>
  
  <p>public var = "image_predefined";</p>
  
  <p>And I want to get this variable from <code>app/design/frontend/product/default/template/product/extension/image.phtml</code></p>
  
  <p>I can get the model name with <code>mage::getModel($model)</code> where <code>$model</code> contains my model. But I can't get the attribute directly. I tried with <code>-&gt;var</code> or with <code>getAttribute()</code> but it doesn't work. </p>
  
  <p>How should I do to get the variable please ?</p>