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...") |
Karl Jones (Talk | contribs) (→See also) |
||
Line 44: | Line 44: | ||
* http://www.data-diggers.com/useful-zen-cart-initsystem-breakpoints/ | * http://www.data-diggers.com/useful-zen-cart-initsystem-breakpoints/ | ||
− | == See also == | + | == See also == |
− | + | * [[Zen Cart]] | |
+ | * [[Zen Cart API]] |
Revision as of 03:54, 7 February 2016
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: