IntSmarty -Duhh

Well I thought I figured out what I did wrong. I didn't have a constructor in my version of IntSmarty. So I made one.

PHP:
  1. <?php
  2. // load IntSmarty library
  3. require("/.../intsmarty.class.php");
  4.  
  5. class MyIntSmarty extends IntSmarty {
  6.      function MyIntSmarty() {
  7.         parent::IntSmarty('')
  8.         $this->template_dir = '/.../smarty/templates';
  9.         $this->compile_dir = '/.../smarty/templates_c';
  10.         $this->config_dir = '/.../smarty/configs';
  11.         $this->cache_dir = '/.../smarty/cache';
  12.         $this->force_compiletrue;
  13.         $this->default_lang = 'en-us';
  14.         $this->lang_path = '/.../public_html/languages/';         
  15.      }
  16. }
  17. ?>

It works kind of. But again I am not saving the language table. Coogle save me from hell!

del.icio.us:IntSmarty -Duhh  digg:IntSmarty -Duhh  furl:IntSmarty -Duhh  reddit:IntSmarty -Duhh

WordPress database error: [Table 'wp1_comments' is marked as crashed and last (automatic?) repair failed]
SELECT * FROM wp1_comments WHERE comment_post_ID = '42' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply