Esempio n. 1
0
 /**
  * Render markdown input
  *
  * @param  string $markDownSyntax Markdown syntax to put inside textarea
  * @param  string $template       Template name
  * @return string HTML string
  */
 public function renderInput($markdownSyntax = '', $template = '_markdown/form')
 {
     $this->view->set('app', $this->app);
     $this->view->set('id', $this->random());
     $this->view->set('markdown', $markdownSyntax);
     $counter = count(explode('.php', $template));
     $bladeCounter = count(explode('.blade.php', $template));
     if ($counter == 1 and $bladeCounter == 1) {
         $template .= '.php';
     }
     return $this->view->fetch($template);
 }