It is assumed to prepare the variable $to to be usable in the current viewfile, but it returns this error: Deprecated: htmlentities(): Passing null to parameter 1 ($string) of type string is deprecated in C:\xampp\htdocs\crow\vendor\corviz\crow\src\Crow.php(138) : eval()'d code on line 1
Okay I tried to move the @php block to inside the @section block and it works. I prefer to introduce a way to share all codes from @php block through all that view file for a better code logic organizing.
Here is a quick example to describe the error:
It is assumed to prepare the variable
$to
to be usable in the current viewfile, but it returns this error: Deprecated: htmlentities(): Passing null to parameter 1 ($string) of type string is deprecated in C:\xampp\htdocs\crow\vendor\corviz\crow\src\Crow.php(138) : eval()'d code on line 1