Difference between revisions of "Zen Cart initSystem"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "In Zen Cart, In '''initSystem''' handles startup procedures. == initSystem breakpoints == Source: List of useful Zen Cart breakpoints found in <code>includes/auto_loade...") |
(No difference)
|
Revision as of 10:01, 13 October 2015
In Zen Cart, In initSystem handles startup procedures.
initSystem breakpoints
Source:
List of useful Zen Cart breakpoints found in includes/auto_loaders/config.core.php
:
breakpoint [0]:
- $zco_notifier is created
breakpoing [10]:
- database connection is made
- $db object is created (You can access database now)
breakpoint [40]:
- configuration table is read
- configuration constants are defined
breakpoint [70]:
- sessions are initiated
breakpoint [80]:
- $shoppingCart is created
- $navigation is created
breakpoint [90]:
- $currencies is created (but init_currencies are not yet executed until breakpoing 120!)
breakpoint [110]:
- init_languages script is executed
breakpoint [120]:
- $messageStack is created
- init_currencies is executed
If you use breakpoint system to init your own script:
- Be careful not to use Zen Cart variables (such as
$messageStack
before they are created. - Calling $messageStack at breakpoint level 40 (or early) will cause an error.
Source:
See also
See Zen Cart API.