public function createTemplate()
 {
     try {
         $this->data->idFrame = $this->data->id;
         $model = new Template();
         $model->createFromFrame($this->data->idFrame);
         $this->renderPrompt('information', 'Template [' . $model->getName() . '] was created.');
     } catch (\Exception $e) {
         $this->renderPrompt('error', $e->getMessage());
     }
 }