php mvc single entrance with smarty