Refactored project structure.
This commit is contained in:
parent
cfe93434ad
commit
c015d8c58b
308 changed files with 39 additions and 47 deletions
|
|
@ -86,7 +86,7 @@ LOGO;
|
|||
if ($databaseSettings) {
|
||||
$phinxSettings = [
|
||||
'paths' => [
|
||||
'migrations' => ROOT_DIR . 'src/PHPCensor/Migrations',
|
||||
'migrations' => ROOT_DIR . 'src/Migrations',
|
||||
],
|
||||
'environments' => [
|
||||
'default_migration_table' => 'migration',
|
||||
|
|
@ -167,18 +167,12 @@ abstract class Element
|
|||
*/
|
||||
public function render($viewFile = null)
|
||||
{
|
||||
$viewPath = SRC_DIR . 'View/';
|
||||
|
||||
if (is_null($viewFile)) {
|
||||
$class = explode('\\', get_called_class());
|
||||
$viewFile = end($class);
|
||||
}
|
||||
|
||||
if (file_exists($viewPath . 'Form/' . $viewFile . '.phtml')) {
|
||||
$view = new View('Form/' . $viewFile);
|
||||
} else {
|
||||
$view = new View($viewFile, SRC_DIR . 'Form/View/');
|
||||
}
|
||||
$view = new View('Form/' . $viewFile);
|
||||
|
||||
$view->name = $this->getName();
|
||||
$view->id = $this->getId();
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue