title: Smarty - catching "Unable to load template" error
body: <p>i use automatic loading .tpl files by get parameter.</p>
  
  <p>The parameter might be wrong and on next move it stops by error "Smarty: Unable to load template".</p>
  
  <p>Can i catch this error and redirect page to some default template?</p>
  
  <p>Thank you very much!</p>
  
  <pre><code>$seo = $params[0];
  $smarty-&gt;display($seo . '.tpl');
  </code></pre>