The Zen Cart Execution Process
以:http://192.168.0.161/lightbox/index.php?main_page=account 为例
We know $main_page=account
index.php will do the following:
1. it loads 'includes/application_top.php'
This file will load in all of general definitions used site-wide, initialize some site-wide classes ($template, $db) and do other general stuff.
2. it loads all of the files starting with 'header_php' in 'includes/modules/pages/account'
'header_php.php'
3. now it loads from includes/templates/mytemplate/common/
'html_header.php'
The default html_header.php file will simply create all of the HTML up to the </head> tag
It loads 'includes/modules/meta_tags.php',
It loads 'includes/templates/mytemplate/css/style*.css'
It loads 'includes/templates/mytemplate/js/jscript_*.js'
'main_template_vars.php'
set $body_code to: includes/templates/mytemplate/templates/tpl_{$main_page}_default.php (tpl_account_default.php)
Here all of the program logic and variables will be mixed up with the actual displayed HTML code
'tpl_main_page.php'
this file lays out the basic page.
1. <body>
2. loads the 'includes/modules/header.php' file
3. if the left column is enabled, it loads 'includes/modules/column_left.php'
4. it loads the file set in $body_code (tpl_{$main_page}_default.php 也就是: tpl_account_default.php)
5. if the right column is enabled, it loads 'includes/modules/column_right.php'
6. loads 'includes/modules/footer.php'
7. </body>
Reference: The Zen Cart Execution Process
Subscribe to:
Posts (Atom)
Featured Post
Windows和Ubuntu双系统完全独立的安装方法
http://www.ubuntuhome.com/windows-and-ubuntu-install.html | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...
-
http://www.williamlong.info/archives/3125.html -月光博客 互联网精准广告定向技术,指的是依托于搜索引擎庞大的网民行为数据库,对网民几乎所有上网行为进行个性化的深度分析,按广告主需求锁定目标受众,进行一对一传播,提供多通道投放,按照效...
-
VOA News A wine-tasting near Beijing, China Finally, a listener in Taiwan wrote to ask why his face turns red when he drinks alcohol. Th...
-
How to Debug PHP Using Firefox with FirePHP July 11th, 2009 by Nuno Franco da Costa Typically, there are two main ways of debugging serve...
No comments:
Post a Comment