dear
i am facing problem in populating array in my code as when i poulate an array in add code it works and when i do same in the edit section it gives undefined index error so how to solve this
when press add button to add fruits from the drop down list then fruit array is populated.
$fruit = $this->popArr;
so when i want t edit the fruit name then i have to populate the same array but it give errors