Home>

I use Phalcon for the framework.
I want to get the value sent by POST in view.

Press the edit button on the management page → POST post ID to edit.php

Get ID in edit.php, search ID from database and set value in edit form

I want to process

, but the controller cannot receive the ID.

Add editno POST sent by controller to $fid

$fid = $this->request->getPost ("editno");


var_dump in view

<? php var_dump ($fid)?>

and NULL are displayed. I wonder if I couldn't send POST,

The ID is displayed when you echo the view.

<? php echo $_POST ["editno"];?>

I think this is the first time I've used a framework, and I don't understand the flow of processing.
How can we pass values ​​from view to controller?

php
Trends