php - Shall a Model class in CodeIgniter send back MySQL error messages as they are to the controller class? -
i'm writing crud (create read update delete) model in ci (codeigniter) framework.
i ask, security , accordance mvc paradigm, shall model send eventual mysql error messages controller when happen, knowing can contain table or column names, or, shall "map" these errors inside model , communicate controller proper feed-backs.
in production user needs see basic error informations. in development can display errors debug them. opinion there no need show users table structure , rest ...
Comments
Post a Comment