com presentations: Mongo talk for PHP Benelux.: mongo-schema-bnl.xml slides/mongodb/blog.xml slides/mongodb/blog1.png slides/mongodb/blog2.png
slides/mongodb/blog2.xml slides/mongodb/considerations.xml slides/mongodb/embed-vs-link.xml slides/mongodb/indexes4.xml
slides/mongodb/inherit-mongo.xml slides/mongodb/inherit-rdbms.xml slides/mongodb/inherit-summary.xml slides/mongodb/inherit.xml
slides/mongodb/inherit1.png slides/mongodb/many-to-many1.pn

From: Date: Wed, 28 Mar 2012 13:57:28 +0000
Subject: com presentations: Mongo talk for PHP Benelux.: mongo-schema-bnl.xml slides/mongodb/blog.xml slides/mongodb/blog1.png slides/mongodb/blog2.png
slides/mongodb/blog2.xml slides/mongodb/considerations.xml slides/mongodb/embed-vs-link.xml slides/mongodb/indexes4.xml
slides/mongodb/inherit-mongo.xml slides/mongodb/inherit-rdbms.xml slides/mongodb/inherit-summary.xml slides/mongodb/inherit.xml
slides/mongodb/inherit1.png slides/mongodb/many-to-many1.pn
Groups: php.pres 
Request: Send a blank email to pres+get-1790@lists.php.net to get a copy of this message
Commit: afdebe44b212db3a347dd8b08372a81fcafb54dd Author: Derick Rethans <github@derickrethans.nl> Wed, 28 Mar 2012 15:57:28 +0200 Parents: 490391373ba014ab03b71f56e32c1d78d4ace9f5 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=afdebe44b212db3a347dd8b08372a81fcafb54dd Log: Mongo talk for PHP Benelux. Changed paths: A mongo-schema-bnl.xml A slides/mongodb/blog.xml A slides/mongodb/blog1.png A slides/mongodb/blog2.png A slides/mongodb/blog2.xml A slides/mongodb/considerations.xml A slides/mongodb/embed-vs-link.xml A slides/mongodb/indexes4.xml A slides/mongodb/inherit-mongo.xml A slides/mongodb/inherit-rdbms.xml A slides/mongodb/inherit-summary.xml A slides/mongodb/inherit.xml A slides/mongodb/inherit1.png A slides/mongodb/many-to-many1.png A slides/mongodb/many-to-many1.xml A slides/mongodb/many-to-many2.xml A slides/mongodb/many-to-many3.xml A slides/mongodb/many-to-many4.xml A slides/mongodb/normalisation.xml A slides/mongodb/one-to-many1.png A slides/mongodb/one-to-many1.xml A slides/mongodb/one-to-many2.xml A slides/mongodb/one-to-many3.xml A slides/mongodb/one-to-many4.xml M slides/mongodb/replset.png M slides/mongodb/sharding.png A slides/mongodb/tip-array-key.xml A slides/mongodb/tip-paged-result.xml A slides/mongodb/tips.xml A templates/default/table.ezt A templates/default/td.ezt A templates/default/th.ezt A templates/default/tr.ezt

afdebe44b212db3a347dd8b08372a81fcafb54dd diff --git a/mongo-schema-bnl.xml b/mongo-schema-bnl.xml new file mode 100644 index 0000000..3174769 --- /dev/null +++ b/mongo-schema-bnl.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen.css"> +<topic>mongoDB</topic> +<title>MongoDB schema design</title> +<event>PHP Benelux</event> +<location>Leuven, Belgium</location> +<date>Mar 28th, 2012</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<url>http://derickrethans.nl/talks.html</url> +<joindin></joindin> +<slide>slides/mongodb/title.xml</slide> +<slide>slides/mongodb/me.xml</slide> + +<slide>slides/mongodb/databasefield.xml</slide> +<slide>slides/mongodb/nosql.xml</slide> +<slide>slides/mongodb/collections-documents.xml</slide> +<slide>slides/mongodb/document.xml</slide> + +Common Patterns + +- RDBMS-normalisation. + +<slide>slides/mongodb/normalisation.xml</slide> +<slide>slides/mongodb/blog.xml</slide> +<slide>slides/mongodb/blog2.xml</slide> + +<slide>slides/mongodb/considerations.xml</slide> + +**OSMify** +<slide>slides/mongodb/inherit.xml</slide> +<slide>slides/mongodb/inherit-rdbms.xml</slide> +<slide>slides/mongodb/inherit-mongo.xml</slide> +<slide>slides/mongodb/inherit-summary.xml</slide> + +<slide>slides/mongodb/eav.xml</slide> +<slide>slides/mongodb/eav2.xml</slide> +<slide>slides/mongodb/eav3.xml</slide> + +<slide>slides/mongodb/one-to-many1.xml</slide> +<slide>slides/mongodb/one-to-many2.xml</slide> +<slide>slides/mongodb/one-to-many3.xml</slide> +<slide>slides/mongodb/one-to-many4.xml</slide> + +<slide>slides/mongodb/many-to-many1.xml</slide> +<slide>slides/mongodb/many-to-many2.xml</slide> +<slide>slides/mongodb/many-to-many3.xml</slide> +<slide>slides/mongodb/many-to-many4.xml</slide> + +<slide>slides/mongodb/embed-vs-link.xml</slide> +<slide>slides/mongodb/tip-array-key.xml</slide> +<slide>slides/mongodb/tip-paged-result.xml</slide> + +<slide>slides/mongodb/indexes.xml</slide> +<slide>slides/mongodb/indexes2.xml</slide> +<slide>slides/mongodb/indexes3.xml</slide> +<slide>slides/mongodb/indexes4.xml</slide> +- ensureIndex +- single +- compound +- sorting +- regexp with ^ + +<slide>slides/mongodb/indexes-geo.xml</slide> +- 2d index +- within: box/circle + +<slide>slides/mongodb/replication.xml</slide> +- setup +- slaveOk +- journal +- write concerns +- tags (mention briefly) +- php connection string + +<slide>slides/mongodb/sharding.xml</slide> +- mongos +- diagram +- transparent + +<slide>slides/mongodb/who-uses.xml</slide> +<slide>slides/mongodb/mms.xml</slide> +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/mongodb/blog.xml b/slides/mongodb/blog.xml new file mode 100644 index 0000000..77f63e2 --- /dev/null +++ b/slides/mongodb/blog.xml @@ -0,0 +1,5 @@ +<slide> +<title>Blog in a RDBMS</title> + +<image filename="blog1.png"/> +</slide> diff --git a/slides/mongodb/blog1.png b/slides/mongodb/blog1.png new file mode 100644 index 0000000..8b60cc0 Binary files /dev/null and b/slides/mongodb/blog1.png differ diff --git a/slides/mongodb/blog2.png b/slides/mongodb/blog2.png new file mode 100644 index 0000000..5768523 Binary files /dev/null and b/slides/mongodb/blog2.png differ diff --git a/slides/mongodb/blog2.xml b/slides/mongodb/blog2.xml new file mode 100644 index 0000000..4b46062 --- /dev/null +++ b/slides/mongodb/blog2.xml @@ -0,0 +1,5 @@ +<slide> +<title>Blog in MongoDB</title> + +<image filename="blog2.png"/> +</slide> diff --git a/slides/mongodb/considerations.xml b/slides/mongodb/considerations.xml new file mode 100644 index 0000000..1f7087e --- /dev/null +++ b/slides/mongodb/considerations.xml @@ -0,0 +1,17 @@ +<slide> +<title>Schema considerations</title> + +<list> +<blurb>Access Patterns?</blurb> + <bullet>Read / Write Ratio</bullet> + <bullet>Types of updates</bullet> + <bullet>Types of queries</bullet> + <bullet>Data life-cycle</bullet> +</list> +<break/> +<blurb>Considerations</blurb> +<list> + <bullet>No Joins</bullet> + <bullet>Document writes are atomic</bullet> +</list> +</slide> diff --git a/slides/mongodb/embed-vs-link.xml b/slides/mongodb/embed-vs-link.xml new file mode 100644 index 0000000..9209e3e --- /dev/null +++ b/slides/mongodb/embed-vs-link.xml @@ -0,0 +1,21 @@ +<slide> +<title>Embedding versus Linking</title> + +<blurb>Embedding</blurb> +<list> + <bullet>Simple data structure</bullet> + <bullet>Limited to 16MB</bullet> + <bullet>Larger documents</bullet> + <bullet>How often do you update?</bullet> + <bullet>Will the document grow and grow?</bullet> +</list> +<break/> + +<blurb>Linking</blurb> +<list> + <bullet>More complex data structure</bullet> + <bullet>Unlimited data size</bullet> + <bullet>More, smaller documents</bullet> + <bullet>What are the maintenance needs?</bullet> +</list> +</slide> diff --git a/slides/mongodb/indexes4.xml b/slides/mongodb/indexes4.xml new file mode 100644 index 0000000..e597f69 --- /dev/null +++ b/slides/mongodb/indexes4.xml @@ -0,0 +1,24 @@ +<slide> +<title>More about indexes</title> + +<list> + <bullet>Compound indexes: + <example>$myCol->ensureIndex( [ _id: 1, ts: -1 ] )</example></bullet> + + <bullet>Searching with regexp: %^%: + <example>$myCol->find( [ 'name' => new MongoRegex( '/^tan/i' ) ] )</example></bullet> + <bullet>%2d% index wants longitude, latitude (as in GeoJSON) + <example> +$myCol->insert( [ + _id: 42, loc: [ 6.43, 52.1233 ] +] ); +$myCol->insert( [ + _id: 42, loc: { long: 6.43, lat: 52.1233 } +] ); +$myCol->insert( [ + _id: 42, loc: { latitude: 6.43, longitude: 52.1233 } +] ); +</example> +</bullet> +</list> +</slide> diff --git a/slides/mongodb/inherit-mongo.xml b/slides/mongodb/inherit-mongo.xml new file mode 100644 index 0000000..261e5f4 --- /dev/null +++ b/slides/mongodb/inherit-mongo.xml @@ -0,0 +1,13 @@ +<slide> +<title>Single table inheritance - MongoDB</title> + +<example><![CDATA[ +{ _id: "1", type: "circle", area: 3.14, radius: 1} + +{ _id: "2", type: "square", area: 4, d: 2} + +{ _id: "3", type: "rectangle", area: 10, length: 5, width: 2} +]]></example> + + +</slide> diff --git a/slides/mongodb/inherit-rdbms.xml b/slides/mongodb/inherit-rdbms.xml new file mode 100644 index 0000000..92cd313 --- /dev/null +++ b/slides/mongodb/inherit-rdbms.xml @@ -0,0 +1,11 @@ +<slide> +<title>Single table inheritance - RDBMS</title> + +<table> +<tr><th>id</th><th>type</th><th>area</th><th>radius</th><th>d</th><th>length</th><th>width</th></tr> +<tr><td>1</td><td>circle</td><td>3.14</td><td>1</td><td></td><td></td><td></td></tr> +<tr><td>2</td><td>square</td><td>4</td> <td></td><td>2</td><td></td><td></td></tr> +<tr><td>3</td><td>rectangle</td><td>10</td> <td></td><td></td><td>5</td><td>2</td></tr> +</table> + +</slide> diff --git a/slides/mongodb/inherit-summary.xml b/slides/mongodb/inherit-summary.xml new file mode 100644 index 0000000..26832cc --- /dev/null +++ b/slides/mongodb/inherit-summary.xml @@ -0,0 +1,8 @@ +<slide> +<title>Inheritance</title> + +<list> + <bullet>Simple to query across sub-types</bullet> + <bullet>Indexes on specialized values will be small</bullet> +</list> +</slide> diff --git a/slides/mongodb/inherit.xml b/slides/mongodb/inherit.xml new file mode 100644 index 0000000..15ba355 --- /dev/null +++ b/slides/mongodb/inherit.xml @@ -0,0 +1,5 @@ +<slide> +<title>Inheritance</title> + +<image filename="inherit1.png"/> +</slide> diff --git a/slides/mongodb/inherit1.png b/slides/mongodb/inherit1.png new file mode 100644 index 0000000..c055fd1 Binary files /dev/null and b/slides/mongodb/inherit1.png differ diff --git a/slides/mongodb/many-to-many1.png b/slides/mongodb/many-to-many1.png new file mode 100644 index 0000000..cfcdef5 Binary files /dev/null and b/slides/mongodb/many-to-many1.png differ diff --git a/slides/mongodb/many-to-many1.xml b/slides/mongodb/many-to-many1.xml new file mode 100644 index 0000000..8179716 --- /dev/null +++ b/slides/mongodb/many-to-many1.xml @@ -0,0 +1,10 @@ +<slide> +<title>Many to Many (n:m)</title> + +<list> + <bullet>products can be in many categories</bullet> + <bullet>category can have many products</bullet> +</list> +<break lines="2"/> +<image filename="many-to-many1.png"/> +</slide> diff --git a/slides/mongodb/many-to-many2.xml b/slides/mongodb/many-to-many2.xml new file mode 100644 index 0000000..a1e2f48 --- /dev/null +++ b/slides/mongodb/many-to-many2.xml @@ -0,0 +1,21 @@ +<slide> +<title>Many to Many (n:m)</title> + +<example><![CDATA[products: +{ _id: 10, name: "Blue elephpant", category_ids: [ 4, 7 ] } +{ _id: 11, name: "Pink elephpant", category_ids: [ 4, 8 ] } + +categories: +{ _id: 4, name: "toys", product_ids: [ 10, 11 ] } +{ _id: 8, name: "everything pink", product_ids: [ 11 ] }]]></example> + +<blurb>All categories for a given product (pink elephpant):</blurb> +<example>db.categories.find( { product_ids: 11 } );</example> +<break/> + +<blurb>All products for a given category (toys):</blurb> +<example>db.products.find( { category_ids: 4 } );</example> +<break/> + +<blurb>Updates need to be done in two collections</blurb> +</slide> diff --git a/slides/mongodb/many-to-many3.xml b/slides/mongodb/many-to-many3.xml new file mode 100644 index 0000000..f7be7f9 --- /dev/null +++ b/slides/mongodb/many-to-many3.xml @@ -0,0 +1,19 @@ +<slide> +<title>Many to Many (n:m) - alternative 1</title> + +<example><![CDATA[products: +{ _id: 10, name: "Blue elephpant", category_ids: [ 4, 7 ] } +{ _id: 11, name: "Pink elephpant", category_ids: [ 4, 8 ] } + +categories: +{ _id: 4, name: "toys" } +{ _id: 8, name: "everything pink"}]]></example> + +<blurb>All categories for a given product (pink elephpant):</blurb> +<example>product = db.products.find( { category_ids: 4 } ); +db.categories.find( { _id: { $in: product.category_ids } } );</example> +<break/> + +<blurb>All products for a given category (toys):</blurb> +<example>db.products.find( { category_ids: 4 } );</example> +</slide> diff --git a/slides/mongodb/many-to-many4.xml b/slides/mongodb/many-to-many4.xml new file mode 100644 index 0000000..b55689e --- /dev/null +++ b/slides/mongodb/many-to-many4.xml @@ -0,0 +1,21 @@ +<slide> +<title>Many to Many (n:m) - alternative 2</title> + +<example><![CDATA[products: +{ _id: 10, name: "Blue elephpant" } +{ _id: 11, name: "Pink elephpant" } + +categories: +{ _id: 4, name: "toys", product_ids: [ 10, 11 ] } +{ _id: 8, name: "everything pink", product_ids: [ 11 ] }]]></example> + +<blurb>All categories for a given product (pink elephpant):</blurb> +<example>db.categories.find( { product_ids: 11 } );</example> +<break/> + +<blurb>All products for a given category (toys):</blurb> +<example>category = db.categories.find( { category_ids: 4 } ); +db.products.find( { _id: { $in: category.product_ids } } );</example> +<break/> + +</slide> diff --git a/slides/mongodb/normalisation.xml b/slides/mongodb/normalisation.xml new file mode 100644 index 0000000..8eb54b9 --- /dev/null +++ b/slides/mongodb/normalisation.xml @@ -0,0 +1,18 @@ +<slide> +<title>RDBMS: Normalisation</title> + +<list> + <bullet>1970 E.F.Codd introduces 1st Normal Form (1NF)</bullet> + <bullet>1971 E.F.Codd introduces 2nd and 3rd Normal Form (2NF, 3NF)</bullet> + <bullet>1974 Codd &amp; Boyce define Boyce/Codd Normal Form (BCNF)</bullet> + <bullet>2002 Date, Darween, Lorentzos define 6th Normal Form (6NF)</bullet> +</list> + +<blurb>Goals:</blurb> +<list> + <bullet>Avoid anomalies when inserting, updating or deleting</bullet> + <bullet>Minimize redesign when extending the schema</bullet> + <bullet>Make the model informative to users</bullet> + <bullet>Avoid bias towards a particular style of query</bullet> +</list> +</slide> diff --git a/slides/mongodb/one-to-many1.png b/slides/mongodb/one-to-many1.png new file mode 100644 index 0000000..ab4925f Binary files /dev/null and b/slides/mongodb/one-to-many1.png differ diff --git a/slides/mongodb/one-to-many1.xml b/slides/mongodb/one-to-many1.xml new file mode 100644 index 0000000..e204613 --- /dev/null +++ b/slides/mongodb/one-to-many1.xml @@ -0,0 +1,12 @@ +<slide> +<title>One to Many (1:n)</title> + +<blurb>One to Many relationships can specify:</blurb> +<list> + <bullet>degree of association between objects</bullet> + <bullet>containment</bullet> + <bullet>life-cycle</bullet> +</list> + +<image filename="one-to-many1.png"/> +</slide> diff --git a/slides/mongodb/one-to-many2.xml b/slides/mongodb/one-to-many2.xml new file mode 100644 index 0000000..6b4d516 --- /dev/null +++ b/slides/mongodb/one-to-many2.xml @@ -0,0 +1,21 @@ +<slide> +<title>One to Many (1:n)</title> + +<blurb>Embedded Array / Array Keys</blurb> +<list> + <bullet>slice operator to return subset of array</bullet> + <bullet>some queries harder e.g find latest comments across all documents</bullet> +</list> + +<example><![CDATA[blogs: { + author: "Hergé", + date: "Tue Mar 28 2012 12:41:29 GMT", + comments: [ + { + author: "Kyle", + date: "Tue Mar 28 2012 12:41:54 GMT", + text: "great book" + } + ] +}]]></example> +</slide> diff --git a/slides/mongodb/one-to-many3.xml b/slides/mongodb/one-to-many3.xml new file mode 100644 index 0000000..62b71a5 --- /dev/null +++ b/slides/mongodb/one-to-many3.xml @@ -0,0 +1,25 @@ +<slide> +<title>One to Many (1:n)</title> + +<blurb>Embedded Tree</blurb> +<list> + <bullet>single document</bullet> + <bullet>natural</bullet> + <bullet>hard to query</bullet> +</list> + +<example><![CDATA[blogs: { + author: "Hergé", + date: "Tue Mar 28 2012 12:41:29 GMT", + comments: [ + { + author: "Kyle", + date: "Tue Mar 28 2012 12:41:54 GMT", + text: "great book" + replies: [ + { author: "Derick", ... } + ] + } + ] +}]]></example> +</slide> diff --git a/slides/mongodb/one-to-many4.xml b/slides/mongodb/one-to-many4.xml new file mode 100644 index 0000000..0481679 --- /dev/null +++ b/slides/mongodb/one-to-many4.xml @@ -0,0 +1,23 @@ +<slide> +<title>One to Many (1:n)</title> + +<blurb>Normalised (with two collections)</blurb> +<list> + <bullet>most flexble</bullet> + <bullet>more queries</bullet> +</list> + +<example><![CDATA[blogs: { + author: "Hergé", + date: "Tue Mar 28 2012 12:41:29 GMT", + comments: [ + { comment: ObjectId("1") } + ] +} + +comments: { + _id: "1", + author: "Kyle", + date: "Tue Mar 28 2012 12:41:54 GMT", +}]]></example> +</slide> diff --git a/slides/mongodb/replset.png b/slides/mongodb/replset.png index 0d65f26..9790aba 100644 Binary files a/slides/mongodb/replset.png and b/slides/mongodb/replset.png differ diff --git a/slides/mongodb/sharding.png b/slides/mongodb/sharding.png index d0f2619..9784ea3 100644 Binary files a/slides/mongodb/sharding.png and b/slides/mongodb/sharding.png differ diff --git a/slides/mongodb/tip-array-key.xml b/slides/mongodb/tip-array-key.xml new file mode 100644 index 0000000..669646b --- /dev/null +++ b/slides/mongodb/tip-array-key.xml @@ -0,0 +1,25 @@ +<slide> +<title>Tips and hints: array keys</title> + +<blurb>Don't do:</blurb> +<example><![CDATA[temperature: { + _id: 42, + points: [ + { 1332942067: 17.3 }, + { 1332942118: 17.5 } + ] +}]]></example> +<break/> + +<blurb>instead, do:</blurb> +<example><![CDATA[temperature: { + _id: 42, + points: [ + { ts: 1332942067, temp: 17.3 }, + { ts: 1332942118, temp: 17.5 } + ] +}]]></example> +<break/> + +<blurb>*Define and document your keys!*</blurb> +</slide> diff --git a/slides/mongodb/tip-paged-result.xml b/slides/mongodb/tip-paged-result.xml new file mode 100644 index 0000000..07edaca --- /dev/null +++ b/slides/mongodb/tip-paged-result.xml @@ -0,0 +1,31 @@ +<slide> +<title>Tips and hints: pre-page results</title> + +<example><![CDATA[article: { + _id: 42, + title: "Xdebug saves you time!" +}]]></example> +<break/> + +<example><![CDATA[comments: +{ + _id: 42, + page: 0, + comments: [ + { ts: 1332942067, author: "Derick", comment: "It also costs a lot of time to write!" }, + { ts: 1332942118, author: "...", comment: "..." }, + ... + ] +}, +{ + _id: 42, + page: 1, + comments: [ + { ts: 1332942261, author: "Derick", comment: "blah blah" }, + { ts: 1332942482, author: "...", comment: "..." }, + ] +}]]></example> +<break/> + +<blurb>A bit more work when updating, but a lot easier to retrieve</blurb> +</slide> diff --git a/slides/mongodb/tips.xml b/slides/mongodb/tips.xml new file mode 100644 index 0000000..669646b --- /dev/null +++ b/slides/mongodb/tips.xml @@ -0,0 +1,25 @@ +<slide> +<title>Tips and hints: array keys</title> + +<blurb>Don't do:</blurb> +<example><![CDATA[temperature: { + _id: 42, + points: [ + { 1332942067: 17.3 }, + { 1332942118: 17.5 } + ] +}]]></example> +<break/> + +<blurb>instead, do:</blurb> +<example><![CDATA[temperature: { + _id: 42, + points: [ + { ts: 1332942067, temp: 17.3 }, + { ts: 1332942118, temp: 17.5 } + ] +}]]></example> +<break/> + +<blurb>*Define and document your keys!*</blurb> +</slide> diff --git a/templates/default/table.ezt b/templates/default/table.ezt new file mode 100644 index 0000000..d20f242 --- /dev/null +++ b/templates/default/table.ezt @@ -0,0 +1,10 @@ +{use $node, $pres} +<div> +<table> +{foreach $node->childNodes as $child} + {if is_set( $child->tagName )} + {include $child->tagName . '.ezt' send $child as $node, $pres} + {/if} +{/foreach} +</table> +</div> diff --git a/templates/default/td.ezt b/templates/default/td.ezt new file mode 100644 index 0000000..b78767c --- /dev/null +++ b/templates/default/td.ezt @@ -0,0 +1,10 @@ +{use $node, $pres} +<td> +{foreach $node->childNodes as $child} + {if is_set( $child->tagName )} + {include $child->tagName . '.ezt' send $child as $node, $pres, true as $inline} + {else} + {raw format_text( $pres, $child->nodeValue )} + {/if} +{/foreach} +</td> diff --git a/templates/default/th.ezt b/templates/default/th.ezt new file mode 100644 index 0000000..d4924a8 --- /dev/null +++ b/templates/default/th.ezt @@ -0,0 +1,10 @@ +{use $node, $pres} +<th> +{foreach $node->childNodes as $child} + {if is_set( $child->tagName )} + {include $child->tagName . '.ezt' send $child as $node, $pres, true as $inline} + {else} + {raw format_text( $pres, $child->nodeValue )} + {/if} +{/foreach} +</th> diff --git a/templates/default/tr.ezt b/templates/default/tr.ezt new file mode 100644 index 0000000..68330f2 --- /dev/null +++ b/templates/default/tr.ezt @@ -0,0 +1,8 @@ +{use $node, $pres} +<tr> +{foreach $node->childNodes as $child} + {if is_set( $child->tagName )} + {include $child->tagName . '.ezt' send $child as $node, $pres} + {/if} +{/foreach} +</tr>
« previous php.pres (#1790) next »