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/17 05:45] – [Directory Structure] squirespublic:cs-cart [2014/03/03 05:34] (current) squires
Line 7: Line 7:
 This information is for version 4.1.2. This information is for version 4.1.2.
  
-Themes repository. Originals are kept here. (I think.) When an addon is installed, its template files are copied from the repository area into the design area.+Themes repository. Originals are kept here. (I think.) When an addon is installed, its template files are copied from the repository area into the design area. When it is uninstalled, they are deleted from the design area.
  
   * var   * var
Line 18: Line 18:
      * themes      * themes
         * basic         * basic
 +
 +===== Execution Path =====
 +
 +index
 +init
 +config setup
 +
 +fn_dispatch (fn.control.php)
 +  * determines all controllers that need to run, including addons and pre- and post-hooks
 +  * calls fn_run_controller() for each
 +  * 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
 +
 +==== 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 32: Line 48:
  
 The hooks are generally only found where the developers needed to put them to develop their built-in addons. More often, you'll find you need to replace an entire template. You won't easily discover this method by looking at the built-in addons, because the developers have added hooks so that they don't need to override template files. The hooks are generally only found where the developers needed to put them to develop their built-in addons. More often, you'll find you need to replace an entire template. You won't easily discover this method by looking at the built-in addons, because the developers have added hooks so that they don't need to override template files.
 +
 +==== Template Engine ====
 +
 +'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.1392615923.txt.gz · Last modified: 2014/02/17 05:45 by squires

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki