cvs: presentations /slides/top7 funcdisp.php functmpl.tpl functmpl.xml phptmpl.xml sincurve.gif smart_ex.xml smarty.xml thanks.xml titlepage.xml
| From: | Sterling Hughes | Date: | Mon, 18 Nov 2002 18:41:39 +0000 |
| Subject: | cvs: presentations /slides/top7 funcdisp.php functmpl.tpl functmpl.xml phptmpl.xml sincurve.gif smart_ex.xml smarty.xml thanks.xml titlepage.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-530@lists.php.net to get a copy of this message | ||
sterling Mon Nov 18 13:41:39 2002 EDT
Added files:
/presentations/slides/top7 funcdisp.php functmpl.tpl functmpl.xml
phptmpl.xml sincurve.gif smart_ex.xml
smarty.xml
Modified files:
/presentations/slides/top7 thanks.xml titlepage.xml
Log:
some presentation modifications...
Index: presentations/slides/top7/thanks.xml
diff -u presentations/slides/top7/thanks.xml:1.3 presentations/slides/top7/thanks.xml:1.4
--- presentations/slides/top7/thanks.xml:1.3 Thu Nov 14 01:56:42 2002
+++ presentations/slides/top7/thanks.xml Mon Nov 18 13:41:39 2002
@@ -4,5 +4,8 @@
<link fontsize="4.0em" align="left" leader="These Slides, "
href="http://talks.php.net/"/>
<blurb>
</blurb>
+<link fontsize="4.0em" align="left" leader="Smarty, "
href="http://smarty.php.net/"/>
+<blurb>
+</blurb>
<link fontsize="4.0em" align="left" leader="My Email, "
href="sterling@php.net"/>
</slide>
Index: presentations/slides/top7/titlepage.xml
diff -u presentations/slides/top7/titlepage.xml:1.1 presentations/slides/top7/titlepage.xml:1.2
--- presentations/slides/top7/titlepage.xml:1.1 Sat Nov 2 01:16:35 2002
+++ presentations/slides/top7/titlepage.xml Mon Nov 18 13:41:39 2002
@@ -1,5 +1,10 @@
<slide fontsize="3.5em">
-<title>Welcome!</title>
+<title>Welcome...</title>
+<blurb align="center" fontsize="7.0em">To Sin City!</blurb>
+<blurb>
+</blurb>
+<image filename="sincurve.gif"/>
+
<blurb align="center" fontsize="6.0em">Top 7 Mistakes in PHP
Programming</blurb>
<blurb align="center" fontsize="4.0em">ApacheCon Las Vegas</blurb>
<blurb align="center">Nov 19, 2002</blurb>
Index: presentations/slides/top7/funcdisp.php
+++ presentations/slides/top7/funcdisp.php
<?
function dispnames() {
$names = array("betty", "johnny", "sue");
foreach ($names as $name) {
print "<td>$name</td>";
}
}
function commonHeader($title) {
?>
<html>
<head>
<title><?=$title?></title>
</head>
<body bgcolor="#ffffff">
<?
}
function commonFooter() {
print "</body></html>";
}
?>
Index: presentations/slides/top7/functmpl.tpl
+++ presentations/slides/top7/functmpl.tpl
<? include_once("./presentations/slides/top7/funcdisp.php"); ?>
<? commonHeader("Hello World"); ?>
<table border="0" width="100%">
<tr>
<? dispnames(); ?>
</tr>
</table>
<? commonFooter(); ?>
Index: presentations/slides/top7/functmpl.xml
+++ presentations/slides/top7/functmpl.xml
<slide title="Function templating">
<blurb>
Code it in html with a set of functions which serve to output/format dynamic blocks.
</blurb>
<example filename="functmpl.tpl" result="1" title="Template
File"/>
<blurb>
<![CDATA[<br /><br />]]>
</blurb>
<example filename="funcdisp.php" title="Display Functions"/>
</slide>
Index: presentations/slides/top7/phptmpl.xml
+++ presentations/slides/top7/phptmpl.xml
<slide title="PHP Templating">
<blurb>
<![CDATA[<br /><br /><br /><br />]]>
</blurb>
<blurb fontsize="5.0em" align="center">
Use PHP to be the templating language itself, use conrolled seperation of logic and content.
</blurb>
</slide>
Index: presentations/slides/top7/smart_ex.xml
+++ presentations/slides/top7/smart_ex.xml
<slide title="Smarty Example">
<example title="Simple template"><![CDATA[{* Smarty *}
Hello, {$name}!
]]></example>
<example title="PHP Code"><![CDATA[<?
define(SMARTY_DIR,'/usr/local/lib/php/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir =
'/web/www.mydomain.com/smarty/guestbook/templates/';
$smarty->compile_dir =
'/web/www.mydomain.com/smarty/guestbook/templates_c/';
$smarty->config_dir =
'/web/www.mydomain.com/smarty/guestbook/configs/';
$smarty->cache_dir =
'/web/www.mydomain.com/smarty/guestbook/cache/';
$smarty->assign('name','Ned');
$smarty->display('index.tpl');
?>]]></example>
</slide>
Index: presentations/slides/top7/smarty.xml
+++ presentations/slides/top7/smarty.xml
<slide title="Be Smart">
<blurb>
</blurb>
<list fontsize="5.0em">
<bullet effect="hide" type="none" marginleft="4.0em">... Use
Smarty!</bullet>
</list>
<blurb>
</blurb>
<list>
<bullet effect="slide">MVC Paradigm</bullet>
<bullet effect="slide">Precompiled templates</bullet>
<bullet effect="slide">Multiple Caching Backends</bullet>
<bullet effect="slide">Plugin architecture</bullet>
<bullet effect="slide">Filter Architecture</bullet>
<bullet effect="hide" marginleft="2.0em">Prefilter</bullet>
<bullet effect="hide" marginleft="2.0em">Postfilter</bullet>
<bullet effect="slide">Output block caching</bullet>
<bullet effect="slide">Security Features</bullet>
</list>
</slide>