title: Joomla 2.5 MVC Model prepareTable function
body: <p>while developing a MVC Component, I'm faced with the following problem: Before saving the posted data from the default.php, some data should be revised, if necessary. From what I know so far, the protected Function prepareTable(&amp;$table) in the specific Model should cover my need. I started with a very simple approach, as follows:</p>
  
  <pre><code>protected function prepareTable(&amp;$table){
  
  $table=$this-&gt;getTable();
  
  $table-&gt;image="HelloWorld";
  
  }
  </code></pre>
  
  <p>My expectation is, that after submitting the template a specific field in my table has now the value "HelloWorld", but it isn't. </p>
  
  <p>Perhaps, someone could give me an advice how to handle the prepareTable() function?</p>
  
  <p>Thank you</p>