base smarty classes