Difference between revisions of "Zen Cart initSystem"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(See also)
(See also)
 
Line 48: Line 48:
 
* [[Zen Cart]]
 
* [[Zen Cart]]
 
* [[Zen Cart API]]
 
* [[Zen Cart API]]
 +
 +
[[Category:Zen Cart]]

Latest revision as of 09:20, 21 April 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:

See also