0
Inside the model, how do I show the user name: Example of the name that is in DB: José Alberto da Silva Nogueira. I would like you to show only José Nogueira.
public function getNome(){
if($this->group == User::GROUP_NOME_CLIENTE)
return $this->nome_cliente->ds_nome;
the problem I still have is that if the user registers with a single name (José). Hence it is replicated the name.
– Mauro Santos
I changed the code to foresee this case placed
– Jhonatan Simões