Refactored project structure.

This commit is contained in:
Dmitry Khomutov 2018-03-04 18:04:15 +07:00
commit c015d8c58b
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
308 changed files with 39 additions and 47 deletions

View file

@ -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',

View file

@ -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