Difference between revisions of "Zen Cart initSystem"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(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...")
 
(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 ==
  
See [[Zen Cart API]].
+
* [[Zen Cart]]
 +
* [[Zen Cart API]]

Revision as of 04: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:

See also