Пример #1
0
 /**
  * Build our views files
  */
 public function build()
 {
     $cache = new QuickCache();
     $cached = $cache->get('fieldsinfo');
     $this->template = [0 => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'view_index', 1 => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'view_edit', 2 => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'view_create'];
     $this->name = $cached['name'];
     $this->fields = $cached['fields'];
     $this->files = $cached['files'];
     $this->names();
     $template = (array) $this->loadTemplate();
     $template = $this->buildParts($template);
     $this->publish($template);
 }
Пример #2
0
 /**
  * Build our request file
  */
 public function build()
 {
     $cache = new QuickCache();
     $cached = $cache->get('fieldsinfo');
     $this->template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'request';
     $this->name = $cached['name'];
     $this->fields = $cached['fields'];
     $this->soft = $cached['soft_delete'];
     $this->names();
     $template = [$this->loadTemplate(), $this->loadTemplate()];
     $template = $this->buildParts($template);
     $this->publish($template);
 }
 /**
  * Build our controller file
  */
 public function build()
 {
     $cache = new QuickCache();
     $cached = $cache->get('fieldsinfo');
     $this->template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'controller';
     $this->name = $cached['name'];
     $this->fields = $cached['fields'];
     $this->relationships = $cached['relationships'];
     $this->files = $cached['files'];
     $this->names();
     $template = (string) $this->loadTemplate();
     $template = $this->buildParts($template);
     $this->publish($template);
 }
 /**
  * Build our model file
  */
 public function build()
 {
     $cache = new QuickCache();
     $cached = $cache->get('fieldsinfo');
     $this->template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'model';
     $this->name = $cached['name'];
     $this->fields = $cached['fields'];
     $this->soft = $cached['soft_delete'];
     $this->password = $cached['password'];
     $this->date = $cached['date'];
     $this->names();
     $template = (string) $this->loadTemplate();
     $template = $this->buildParts($template);
     $this->publish($template);
 }