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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -