Welcome Guest, Not a member yet? Register   Sign In
Use Entity function in COntroller or view
#1

HI , how can i use entity  function in controller or in view ?

i have this function in Ore_giornata_quarti_dora_Entity :

PHP Code:
      function ritorna_orario_standard($id){

        $ore_giornata_quarti_dora_model= new Ore_giornata_quarti_doraModel();

        $record $ore_giornata_quarti_dora_model->find($id);

        return $record;

      


i use it on list get by  model findAll() but in a simple view or controller ?
Reply
#2

You would need to load the class just like any other class, but using it in a Controller or View is breaking the MVC.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB