GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Move the code-xx element checks to a separate MidgardRootFile in case 
somebody still needs them
bergie (author)
Sun Aug 24 05:25:14 -0700 2008
commit  0ec86fc9fc76a4860b32a5f5f14d9bea450bb32b
tree    7378aa2a41df0043e6d54c83ba128672641a9bb1
parent  64dc312f6479a75f7d628c9f343fbd03fd6f2b5e
...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
 
 
 
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
 
35
36
37
38
 
39
40
41
42
43
44
45
46
47
48
49
50
 
 
 
 
51
...
7
8
9
 
 
 
 
 
 
 
 
 
 
 
10
11
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
15
16
17
 
 
 
18
19
 
 
 
 
 
 
 
 
 
 
20
21
22
23
24
25
0
@@ -7,43 +7,17 @@
0
  *
0
  * MidgardRootFile for running MidCOM 3 under Apache
0
  */
0
-// If code-compat is defined we use that, otherwise we load MidCOM 3
0
-if (mgd_is_element_loaded('code-compat'))
0
-{
0
- ?><(code-compat)><?php
0
-}
0
-else
0
-{
0
- // Note: your MidCOM base directory has to be in PHP include_path
0
- require('midcom_core/framework.php');
0
- $_MIDCOM = new midcom_core_midcom('midgard');
0
-}
0
+// Load MidCOM 3
0
+// Note: your MidCOM base directory has to be in PHP include_path
0
+require('midcom_core/framework.php');
0
+$_MIDCOM = new midcom_core_midcom('midgard');
0
 
0
-// code- elements used for things run before output
0
-?>
0
-<(code-global)>
0
-<?php
0
-if (mgd_is_element_loaded('code-init'))
0
-{
0
- ?><(code-init)><?php
0
-}
0
-elseif (isset($_MIDCOM))
0
-{
0
- // Call the controller if available
0
- $_MIDCOM->process();
0
-}
0
+// Call the controller if available
0
+$_MIDCOM->process();
0
 
0
-if (isset($_MIDCOM))
0
-{
0
- $_MIDCOM->templating->template();
0
+$_MIDCOM->templating->template();
0
 
0
- // Read contents from the output buffer and pass to MidCOM rendering
0
- $_MIDCOM->templating->display();
0
-}
0
-else
0
-{
0
- ?><(ROOT)><?php
0
-}
0
-// code-finish can be used for custom caching etc
0
-?>
0
-<(code-finish)>
0
\ No newline at end of file
0
+// Read contents from the output buffer and pass to MidCOM rendering
0
+$_MIDCOM->templating->display();
0
+unset($_MIDCOM);
0
+?>
0
\ No newline at end of file

Comments

    No one has commented yet.