I am trying to do this code in my CodeIgniter application :
OK, I agree this is a MAJOR goof-up; comes from lack of OOP understanding;
current_stock(); // and we called the other method here! } }
Just that I didn"t expect it to be so easy