Welcome Guest, Not a member yet? Register   Sign In
[BR] Qual a melhor prática? - What is the best practice?
#1

Oi,
Confused Preciso inserir uma rotina que verifique se o código do "produto" existe na tabela.
Qual a melhor prática? Inserir esta rotina no Controller do Produto ou no Helper de funções genéricas? 
(desculpe, utilizei o Google tradutor Smile  )

Hi,
Must enter a routine to check if the code of the "product " exists in the table .
What is the best practice? Entering this routine the Product Controller or the generic functions Helper ?
(Sorry , I used Google translator)
Reply
#2

check the form_validation's callback.

it's exactly do for that Smile


http://www.codeigniter.com/user_guide/li...on-methods
Reply




Theme © iAndrew 2016 - Forum software by © MyBB