Welcome Guest, Not a member yet? Register   Sign In
Send value from view to method and vice versa
#1

Hi!

I need send value from view to function in controller and return to view.
Example on code:

VIEW:
PHP Code:
echo 'Count: ' AddNumber(2); 

CONTROLLER:
PHP Code:
function AddNumber($value) {
 
  $NewValue $value*2;
 
       
   
return $NewValue// = 4, pass this to view again in the same place

Reply


Messages In This Thread
Send value from view to method and vice versa - by vertisan - 09-11-2015, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB