-1
I have a function called tires on the codeigniter model
And in the same model I have another function I need to call the function Cod tires
Can someone tell me how I do it here an example of what I want to do...
$this->db->where('xcod1 = ', $this->pneus->cod);
Are you accessing the table? You don’t need to specify the DB table
– Miguel
It was not clear what the problem is, could explain better and put the important parts of the model?
– rray
Let’s say sql is this : $this->db->Where('xcod1 = ', Here I want to get a Cod); And this Cod comes from another function so I want to know how I can get it done using $this->featureName->Cod;
– Vagner
Make the function return the value, then pass it forward.
– rray
And how do I pass her ?
– Vagner