Set FW_DIST

main
Robert 3 years ago
parent b6e570fed3
commit e44e3a364d
  1. 7
      src/ex/models/app/home_model.php
  2. 2
      src/main.php
  3. 7
      src/mockup/models/app/home_model.php

@ -41,13 +41,6 @@ class home_model extends \tts\model {
} }
public function populate($rows): void { public function populate($rows): void {
if (defined('FW_DIST')) {
$tts_arrays = FW_DIST . '/tts_arrays.php';
if (!class_exists('\tts\rnd_names') && file_exists($tts_arrays)) {
require_once $tts_arrays;
}
}
$dummy = new \tts\dummy_data($this->pdo); $dummy = new \tts\dummy_data($this->pdo);
$data = [ 'first_name' => \tts\rnd_names::get_first_names(), $data = [ 'first_name' => \tts\rnd_names::get_first_names(),
'last_name' => \tts\rnd_names::get_last_names(), 'last_name' => \tts\rnd_names::get_last_names(),

@ -1,5 +1,7 @@
<?php <?php
\tts\site_helper::set_fw_dist(FW_DIST);
\tts\set_ns(); \tts\set_ns();
/* /*
declare(strict_types=1); declare(strict_types=1);

@ -41,13 +41,6 @@ class home_model extends \tts\model {
} }
public function populate($rows): void { public function populate($rows): void {
if (defined('FW_DIST')) {
$tts_arrays = FW_DIST . '/tts_arrays.php';
if (!class_exists('\tts\rnd_names') && file_exists($tts_arrays)) {
require_once $tts_arrays;
}
}
$dummy = new \tts\dummy_data($this->pdo); $dummy = new \tts\dummy_data($this->pdo);
$data = [ 'first_name' => \tts\rnd_names::get_first_names(), $data = [ 'first_name' => \tts\rnd_names::get_first_names(),
'last_name' => \tts\rnd_names::get_last_names(), 'last_name' => \tts\rnd_names::get_last_names(),

Loading…
Cancel
Save