Skip to content

Commit

Permalink
update files : axm_helper, Axm
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Nov 23, 2023
1 parent 101d3db commit 3a35f98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Axm.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public static function is_cli(): bool
*/
private static function initializeEnvironment()
{
// Obtain the value of AXM_ENVIRONMENT or use a default value
static::$_environment = $env = env('AXM_ENVIRONMENT', 'production');
// Obtain the value of APP_ENVIRONMENT or use a default value
static::$_environment = $env = env('APP_ENVIRONMENT', 'production');

// Configuring environment-based error handling.
if ($env === 'debug') {
Expand Down
2 changes: 1 addition & 1 deletion src/axm_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function raxmScripts()
* @param string $ext The file extension of the View template (default is '.php').
* @return void
*/
function view(string $view, $params = null, bool $buffer = true, string $ext = '.php')
function view(string $view, array $params = [], bool $buffer = true, string $ext = '.php')
{
// Render the View template using the provided parameters.
$renderedView = Axm::app()->controller->renderView($view, $params, $buffer, $ext);
Expand Down

0 comments on commit 3a35f98

Please sign in to comment.