Code in Controller
//...
public function editAction(){
//...
$this->view->field = Fields::findFirst(5);
}
//...
Code in View
<?php var_dump(isset($field->name));?>Output false
<?php var_dump($field->name)?> Can be output value correct
Check that value of the $field->name is not Null. Isset will return false if variable is null.
For objects I suggest to use property_exists instead of isset.
Me myself prefer to use template engine instead of using php code in view files.
The problem is that $field->name is not null but a string form a ORM object ,isset return false,Is there a shortcut for property_exists method in volt?
I think there is no volt function for property_exist. You need to add custom function to volt compiler.
See https://docs.phalconphp.com/en/3.0.0/reference/volt.html#extending-volt