2 Docs2Whoops! This page hasn't been written yet.
This has probably been logged as an issue on the project
Issue Tracker
on Github. You can check on the status there.
[exec: 0.0015s]
App = App Object
(
[env] => development
[title:App:private] => Painfree-load_js - | Documentation | | PHPainfree2
[htmx] =>
[htmx_boosted] =>
[headers] => Array
(
[User-Agent] => CCBot/2.0 (https://commoncrawl.org/faq/)
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Accept-Language] => en-US,en;q=0.5
[If-Modified-Since] => Fri, 12 Jun 2026 04:26:57 GMT
[Accept-Encoding] => zstd, br, gzip
[Host] => php.programming-is-easy.com
[Connection] => Keep-Alive
)
[response_headers] => Array
(
[X-Frame-Options] => SAMEORIGIN
)
[route] => docs/painfree-load_js
[app] =>
[view] => docs
[id] => painfree-load_js
[action] =>
[output_file] =>
[data] => Array
(
[doc] => painfree-load_js
)
[objects] => Array
(
)
[BASE_PATH] => /var/www/vhosts/php.programming-is-easy.com
[BASE_URI] => https://php.programming-is-easy.com
[db] =>
[route_parts] => Array
(
[0] => docs
[1] => painfree-load_js
)
)
Painfree = PHPainfree Object
(
[Version] => 2.3.0
[URI] => https://php.programming-is-easy.com/docs/painfree-load_js
[route] => docs/painfree-load_js
[Root] => /var/www/vhosts/php.programming-is-easy.com/
[Autoload] => Array
(
[PainfreeUtils.php] => /var/www/vhosts/php.programming-is-easy.com/includes/Autoload/PainfreeUtils.php
)
[db] =>
[__debug] => Array
(
[App] => App Object
(
[env] => development
[title:App:private] => Painfree-load_js - | Documentation | | PHPainfree2
[htmx] =>
[htmx_boosted] =>
[headers] => Array
(
[User-Agent] => CCBot/2.0 (https://commoncrawl.org/faq/)
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Accept-Language] => en-US,en;q=0.5
[If-Modified-Since] => Fri, 12 Jun 2026 04:26:57 GMT
[Accept-Encoding] => zstd, br, gzip
[Host] => php.programming-is-easy.com
[Connection] => Keep-Alive
)
[response_headers] => Array
(
[X-Frame-Options] => SAMEORIGIN
)
[route] => docs/painfree-load_js
[app] =>
[view] => docs
[id] => painfree-load_js
[action] =>
[output_file] =>
[data] => Array
(
[doc] => painfree-load_js
)
[objects] => Array
(
)
[BASE_PATH] => /var/www/vhosts/php.programming-is-easy.com
[BASE_URI] => https://php.programming-is-easy.com
[db] =>
[route_parts] => Array
(
[0] => docs
[1] => painfree-load_js
)
)
)
[options:PHPainfree:private] => Array
(
[ApplicationController] => App.php
[BaseView] => app.php
[DefaultRoute] => main
[PublicFolder] => htdocs
[AppFolder] => apps
[TemplateFolder] => templates
[LogicFolder] => includes
[ControllerFolder] => Controllers
[ImagesFolder] => images
[CssFolder] => css
[JsFolder] => js
[DynamicFolder] => views
[Database] => Array
(
)
[RouteParameter] => route
)
)
DebugExamples = Please be aware that there are several $Painfree->debug() calls made in templates/debug.php to be used as examples. You should probably remove them.
$TestArray = Array
(
[this_is] => a simple dummy array.
[example] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
)
$PainfreeConfig = Array
(
[ApplicationController] => App.php
[BaseView] => app.php
[DefaultRoute] => main
[PublicFolder] => htdocs
[AppFolder] => apps
[TemplateFolder] => templates
[LogicFolder] => includes
[ControllerFolder] => Controllers
[ImagesFolder] => images
[CssFolder] => css
[JsFolder] => js
[DynamicFolder] => views
[Database] => Array
(
)
[RouteParameter] => route
)
EXAMPLE = You can basically pass anything to $Painfree->debug().