phalcon set view template
<p>I have some problems with templates in phalcon. It doesn't render as it have. Here is an example of do method of action. Action called UploadSave.
And after this action I want to render my image/upload temlate.</p>

<pre><code>     try {
        $hash = $this-&gt;request-&gt;getPost('hash');
        $File = $this-&gt;_getUploadedFile();
        $Validator = new ImageQualityValidator();
        if($Validator-&gt;isValid($File)){
            $Image = $this-&gt;_saveImage($File);
            $EnvCfg = self::_getEnvCfgDir();
            $cfg_data = $EnvCfg-&gt;getObject(self::MYPAINT);
            $this-&gt;response-&gt;redirect($cfg_data-&gt;host.'image/crop?hash='.$hash);
        }else {
            $this-&gt;getViewData()-&gt;hash = $hash;
            $this-&gt;getViewData()-&gt;validation_error = 'Image is invalid!!';
        }
    } catch (AMyPaintExceptions $Exc) {
        $this-&gt;getViewData()-&gt;validation_error = $Exc-&gt;getMessage();
    }
    $this-&gt;view-&gt;setMainView('image/upload');
    return $this-&gt;getViewData();
</code></pre>

<p>But result is white screen.
image/upload.phtml is not empty:</p>

<pre><code>{{
   if( false == $this-&gt;is_already_image_uploaded) {

       echo $Tag-&gt;form(
       [
        "image/uploadSave",
        "method" =&gt; "post",
        "enctype" =&gt; "multipart/form-data"
       ]
    ); 
}}

&lt;p&gt;  {{ echo $Tag-&gt;fileField('my_photo');   }}&lt;/p&gt;
&lt;p&gt; {{ echo $Tag-&gt;hiddenField(["hash", "value" =&gt; $this-&gt;hash]); }}&lt;/p&gt;
&lt;p&gt; {{ echo $Tag-&gt;submitButton('Submit'); }} &lt;/p&gt;
   {{ if($this-&gt;validation_error){ }}
        &lt;p&gt;{{ print_r($this-&gt;error_information);}}&lt;/p&gt;
    {{ } }}
{{ echo $Tag-&gt;endForm(); }}

{{
}
else { }}

    Image has been uploaded already.
{{ } }}
</code></pre>

<p>{{ instead of </p>