Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
added "ROOT_URL()" option
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Apr 20, 2018
1 parent 41181fc commit d7dc455
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.1.3 - 2018-04-17

* Added `after-load-hooks` action hook.
* Added `ROOT_URL()` option.

## 1.1.3 - 2018-02-19

Expand Down
1 change: 1 addition & 0 deletions README-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Ejecutar todas las pruebas anteriores:
- [ ] Refactorizar código para las reglas de estilo de código deshabilitadas. Ver [phpmd.xml](phpmd.xml) y [.php_cs.dist](.php_cs.dist).
- [ ] Documentar el método `changeDatabaseConnection()` de los modelos.
- [ ] Documentar el nuevo gancho de acción: `after-load-hooks`.
- [ ] Documentar la opción `APP::ROOT_URL()`.

## Contribuir

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Run all previous tests:
- [ ] Refactor code for disabled code style rules. See [phpmd.xml](phpmd.xml) and [.php_cs.dist](.php_cs.dist).
- [ ] Document the model's `changeDatabaseConnection()` methods.
- [ ] Document about `after-load-hooks` hook.
- [ ] Document about `APP::ROOT_URL()` option.

## Contribute

Expand Down
1 change: 1 addition & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ private function setUrls($baseDirectory, $type)
break;
}

$this->setOption('ROOT_URL', $baseUrl);
$this->setOption('PUBLIC_URL', $baseUrl . 'public/');
$this->setOption('MODULES_URL', $baseUrl . 'modules/');
$this->setOption('PLUGINS_URL', $baseUrl . 'plugins/');
Expand Down

0 comments on commit d7dc455

Please sign in to comment.