User Tools

Site Tools


public:cs-cart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:cs-cart [2014/02/22 19:18] squirespublic:cs-cart [2014/03/03 05:34] (current) squires
Line 28: Line 28:
   * determines all controllers that need to run, including addons and pre- and post-hooks   * determines all controllers that need to run, including addons and pre- and post-hooks
   * calls fn_run_controller() for each   * calls fn_run_controller() for each
-  * calls $view->display(Registry::get('runtime.root_template'))+  * calls $view->display(Registry::get('runtime.root_template')) (where root_templates=index.tpl)
     * since all the controllers have run at this time, all smarty variable assignments should be ready     * since all the controllers have run at this time, all smarty variable assignments should be ready
 +
 +==== Form Submission ====
 +
 +Javascript event ce.formpost_[form_name] is triggered after validation and before form is posted. Returning false will cancel the submission.
  
 ===== User Interface ===== ===== User Interface =====
Line 48: Line 52:
  
 'view' entry in the registry (Registry::get('view')) is an instance of SmartyCore (setup in fn.init.php). 'view' entry in the registry (Registry::get('view')) is an instance of SmartyCore (setup in fn.init.php).
 +
 +==== Template Javascript ====
 +
 +For templates that are added to the page via ajax calls, embedded scripts are not executed. However, a 'ce.commoninit' event is triggered, which scripts can subscribe to.
 +
 +<code>
 +$.ceEvent('on', 'ce.commoninit', function(context) {
 +  // code here
 +});
 +</code>
  
 ===== Code / Addons ===== ===== Code / Addons =====
public/cs-cart.1393096691.txt.gz · Last modified: 2014/02/22 19:18 by squires

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki