take paramters assigning to smarty automatically