Haciendo perfil

This commit is contained in:
imnavajas
2023-05-23 15:34:20 +02:00
parent aa43f9f28d
commit 176f11bef0
7 changed files with 1303 additions and 298 deletions

View File

@ -56,8 +56,9 @@ class Profile extends BaseController
$session = session();
$data['obj'] = $this->user_model->where('id_user',$this->id_user)->first();
if(!empty($data['obj']['date_birth'])){
$data['obj']['date_birth'] = dateFormatWeb($data['obj']['date_birth']);
if(!empty($data['obj']->date_birth)){
$data['obj']->date_birth = dateFormatWeb($data['obj']->date_birth);
}
$data['country'] = $this->countries_model->select('code,name')->where('data_lang',session()->get('lang')??'en')->findAll();