Please how can i call a function in a custom Model in my view?
@OnlineWebTutor4 жыл бұрын
Hi why you are trying to call model in view. You can go with the steps like view then controller and then model. If you are nevertheless want to do you can do this by helpers.
@nanayawowusu14984 жыл бұрын
@@OnlineWebTutor okay I want to get the username by it user id using a function in model ....can you help me please.
@OnlineWebTutor4 жыл бұрын
You need to create a function in any of your custom helper, this function Will take user id and by the help of this id you can return user name. Finally call that helper method into view.
@nanayawowusu14984 жыл бұрын
@@OnlineWebTutor thank you senior Do another video about the encryption library .....that’s encrypting and decrypting
@Rahul-iq9lx4 жыл бұрын
Thank you so much sir for this video and Congrats for new channel You are best 😍😍😘😘
@OnlineWebTutor4 жыл бұрын
Thank you so much 😀
@nanayawowusu14984 жыл бұрын
Boss i still don't get it please help me. I used to do this in Ci3 but can't do it in Ci4 $this->crud_model->get_name_by_id ( table_name, $rowname, $table_row_name ) the get_name_by_id is a function in my Model