We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Get value element in View when submited

Hi all, I using phalcon 3.x.

$form = new LandPostForm();
$this->view->form = $form;

Code in LandPostForm();

$post_title = new Text('post_title', [
    'class' => 'form-control',
    'placeholder' => 'Tiêu đề'
$post_title->setLabel('Tiêu đề:');

How to get value post_title when submited in view file volt template


Hi, I success,

    {{ dump(form.get('post_title').getValue()) }}