addes smarty as template engine for php and bugfix