Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The ami_env.php procedural file



Page Details:

Environment setting up entry point.

Entry point must be included from global context and supposes in current symbol table array $AMI_ENV_SETTINGS having following possible data:
  •  $AMI_ENV_SETTINGS array(
  •      'response_mode'     => 'HTML'|'JSON'// response type, 'HTML' by default
  •      'response_buffered' => true|false,    // response buffering flag, true by default
  •      'external_call'     => true|false     // environment is included from external code, global scope will be saved into "Amiro" scope and can be restored via AMI::restoreGlobalScope('Amiro'); false by default, since 5.12.4
  •  );



Tags:

version:  $Id$
copyright:  Amiro.CMS. All rights reserved. The changes are undesirable and dangerous.
since:  5.10.0
example:  Simple script that includes entry point from external place
example:  Simple buffered JSON response for CMS context AJAX application
example:  Simple buffered script using session manipulation
example:  Simple buffered "Hello world" script
example:  Simple unbuffered script


Includes:

require($path) [line 224]