mvc + php + smarty + ajax