<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raphael Monroe.com &#187; php</title>
	<atom:link href="http://www.raphaelmonroe.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raphaelmonroe.com</link>
	<description>Blog de novidades em tecnologia, web, games e muito mais!</description>
	<lastBuildDate>Thu, 22 Apr 2010 11:20:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tutorial PHP 5 &#8211; Construção de Layout &#8211; Parte 2</title>
		<link>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout-parte-2/</link>
		<comments>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout-parte-2/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 23:45:20 +0000</pubDate>
		<dc:creator>Raphael Monroe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.raphaelmonroe.com/?p=181</guid>
		<description><![CDATA[Requisitos: Artigo &#8220;Tutorial PHP5 &#8211; Construção de Layout&#8220;.
Olá pessoal,
Seguindo com nosso tutorial de criação de layouts utilizando o php 5, iremos criar a classe &#8220;header&#8221;, a qual será responsável pela criação do cabeçalho do site(topo,imagem do topo, título e descrição).
Utilizarei CSS para o design. Se surgir alguma dúvida a respeito das regras utilizadas, poste seu [...]]]></description>
			<content:encoded><![CDATA[<p>Requisitos: Artigo &#8220;<a href="http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout/" target="_blank">Tutorial PHP5 &#8211; Construção de Layout</a>&#8220;.</p>
<p>Olá pessoal,</p>
<p>Seguindo com nosso <a href="http://www.raphaelmonroe.com/tag/tutorial/">tutorial</a> de criação de <a href="http://www.raphaelmonroe.com/tag/layout/">layouts</a> utilizando o php 5, iremos criar a classe &#8220;header&#8221;, a qual será responsável pela criação do cabeçalho do site(topo,imagem do topo, título e descrição).</p>
<p>Utilizarei CSS para o design. Se surgir alguma dúvida a respeito das regras utilizadas, poste seu comentário ou visite o site do <a href="http://www.maujor.com/index.php">maujor</a>. Lá, você encontrará diversos artigos relacionados à criação e utilização de regras css.</p>
<p><span id="more-181"></span></p>
<p>Vamos ao código comentado:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
&nbsp;
/* Regras CSS */ 
#tudo{
	background-color:#CCCCCC;
	width:800px;
	height:600px;
	float:left;	
}
&nbsp;
#topo{
	width:800px;
	height:100px;
	float:left;
	background-color:#FFFFFF;
	border:1px solid #000;
}
&nbsp;
&nbsp;
--&gt;
&lt;/style&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Criado por : Raphael Monroe Marcondes</span>
<span style="color: #666666; font-style: italic;">// BLOG : www.raphaelmonroe.com</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> head
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//construtor da classe...</span>
	<span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	   <span style="color: #666666; font-style: italic;">//Chama a função de inclusão de início de código HTML...</span>
	   <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">inclui_HTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	   <span style="color: #666666; font-style: italic;">//Chama a função de criação do topo...</span>
	   <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cria_topo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	   <span style="color: #666666; font-style: italic;">//&quot;Fecha&quot; as tags HTML que foram abertas...</span>
	   <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fecha_tags</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> inclui_HTML<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">//HTML...</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;!DOCTYPE html PUBLIC <span style="color: #000099; font-weight: bold;">\&quot;</span>-//W3C//DTD XHTML 1.0 Transitional//EN<span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;html xmlns=<span style="color: #000099; font-weight: bold;">\&quot;</span>http://www.w3.org/1999/xhtml<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;head&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;meta http-equiv=<span style="color: #000099; font-weight: bold;">\&quot;</span>Content-Type<span style="color: #000099; font-weight: bold;">\&quot;</span> content=<span style="color: #000099; font-weight: bold;">\&quot;</span>text/html; charset=iso-8859-1<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #666666; font-style: italic;">//Título da página (será melhorado posteriormente a forma de dar títulos á suas paginas)...</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;title&gt;MINHA PÁGINA&lt;/title&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/head&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;body&gt;&quot;</span><span style="color: #339933;">;</span>	
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> cria_topo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	   <span style="color: #666666; font-style: italic;">//Cria dois boxes, um que engloba todo o site e o outro sendo o topo.</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>tudo<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">;</span>
	   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>topo<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> fecha_tags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">//Fecha a a div &quot;tudo&quot;...</span>
	    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/body&gt;&quot;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/html&gt;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>	
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Salve o código acima como &#8220;head.class.php&#8221;.<br />
Com essa nova classe, já podemos obter nossa primeira visualização de página!<br />
Basta criar o index:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$index</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> index
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	  <span style="color: #666666; font-style: italic;">//Inclui as classes necessárias...</span>
	  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">inclui_classes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	  <span style="color: #666666; font-style: italic;">//Criando a página index...</span>
	  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">constroi_index</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> inclui_classes<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">//Incluindo a classe layout...</span>
	    <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;layout.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> constroi_index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	    <span style="color: #666666; font-style: italic;">//Criando uma nova página através de layout...</span>
	    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">layout</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> layout<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Salve o código acima como &#8220;index.php&#8221;.</p>
<p>Portanto, só para lembrá-los, até agora possuímos 3 arquivos : &#8220;layout.class.php&#8221;, &#8220;head.class.php&#8221; e &#8220;index.php&#8221;. </p>
<p>Basta agora, salvá-los na mesma pasta e abrir o index. Você obterá a primeira visualização da página!</p>
<p><strong>OBS:Para conseguir &#8220;rodar&#8221; o index sem erros, é necessário comentar, na classe &#8220;layout&#8221;, as linhas que incluem as classes que ainda não foram feitas, como por exemplo, &#8220;menu_nav.class.php&#8221;.</strong></p>
<p>Para facilitar, você pode <a href="http://www.raphaelmonroe.com/wp-content/uploads/2009/06/tutoriais-blog.rar">baixar</a> todas as classes(inclusive o &#8220;layout.class.php&#8221; com as linhas comentadas).<br />
Lembrando à todos que estou tentando ser o mais direto possível. Qualquer dúvida é só postar seu comentário!</p>
<p>[]`s</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout-parte-2/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Tutorial PHP 5 &#8211; Construção de Layout.</title>
		<link>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout/</link>
		<comments>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout/#comments</comments>
		<pubDate>Thu, 22 May 2008 21:14:17 +0000</pubDate>
		<dc:creator>Raphael Monroe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.raphaelmonroe.com/?p=115</guid>
		<description><![CDATA[Olá caros leitores,
Hoje abordarei como construir aplicações em php, utilizandoa idéia de classes e objetos.
Não vou, entretanto, abordar aspectos teóricos sobre classes e objetos nesse tutorial. Meu objetivo, neste primeiro tutorial da série, é mostrar os primeiros passos para construção de layouts utilizando orientação à objeto.
Então, mãos à obra!  Nosso &#8220;desenho final&#8221; será um [...]]]></description>
			<content:encoded><![CDATA[<p>Olá caros leitores,</p>
<p>Hoje abordarei como construir aplicações em <a href="http://www.raphaelmonroe.com/tag/php/" target="_blank">php</a>, utilizandoa idéia de classes e objetos.</p>
<p>Não vou, entretanto, abordar aspectos teóricos sobre classes e objetos nesse tutorial. Meu objetivo, neste primeiro <a href="http://www.raphaelmonroe.com/tag/tutorial/" target="_blank">tutorial</a> da série, é mostrar os primeiros passos para construção de <a href="http://www.raphaelmonroe.com/tag/layout/">layouts</a> utilizando orientação à objeto.</p>
<p>Então, mãos à obra!  Nosso &#8220;desenho final&#8221; será um layout de três colunas, com menu de navegação, header e rodapé, como mostra a figura a seguir :</p>
<p><span id="more-115"></span><a href="http://www.raphaelmonroe.com/wp-content/uploads/2009/05/layout.jpg"><img class="size-full wp-image-117" title="Layout" src="http://www.raphaelmonroe.com/wp-content/uploads/2009/05/layout.jpg" alt="Layout que será construído" width="332" height="258" /></a></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_117" class="wp-caption aligncenter" style="width: 342px;">
<dd class="wp-caption-dd">Layout que será construído</dd>
</dl>
</div>
<p>Iremos desenvolver, portanto, 7 classes : &#8220;layout&#8221;, &#8220;header&#8221;, &#8220;menu_nav&#8221;, &#8220;barra_esq&#8221;, &#8220;corpo&#8221;, &#8220;barra_dir&#8221;, &#8220;rodape&#8221;. Percebam que a classe &#8220;layout&#8221; será utilizada para &#8220;unir&#8221; todas as outras.  Hoje, começaremos a desenvolver o código da classe layout.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Criado por : Raphael Monroe Marcondes</span>
<span style="color: #666666; font-style: italic;">// BLOG : www.raphaelmonroe.com</span>
<span style="color: #000000; font-weight: bold;">class</span> layout
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//construtor da classe...</span>
	<span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Chama a função de inclusão de classes necessárias...</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">inclui_classes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//Chama a função de inicialização de variáveis...</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">inicializa_variaveis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Função pra incluir todas as classes que precisaremos para o desenvolvimento </span>
	<span style="color: #666666; font-style: italic;">//do layout...</span>
	<span style="color: #000000; font-weight: bold;">function</span> inclui_classes<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;head.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;menu_nav.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;barra_esq.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;corpo.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;barra_dir.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;rodape.class.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>				
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Função responsável por criar objetos(instâncias) daquelas classes adicionais.</span>
	<span style="color: #666666; font-style: italic;">//A partir de uma linha &quot;$var = new objeto();&quot;, você cria um objeto que será</span>
	<span style="color: #666666; font-style: italic;">//representado por $var.</span>
	<span style="color: #000000; font-weight: bold;">function</span> inicializa_variaveis<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">head</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">menu_nav</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> menu_nav<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">barra_esq</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> barra_esq<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">corpo</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> corpo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">barra_dir</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> barra_dir<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rodape</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> rodape<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>	
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Salve o código acima como &#8220;layout.class.php&#8221; utilizando o seu editor favorito.</p>
<p>O arquivo fonte pode ser baixado <a href="http://www.raphaelmonroe.com/tutoriais/php5/layout.rar" target="_blank">aqui</a>.</p>
<p>Lembrando que se você rodar o código, nada acontecerá ainda. Estamos iniciando nossos trabalhos!</p>
<p>Aguardem os próximos posts!</p>
<p>Abraço.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raphaelmonroe.com/tutoriais/tutorial-php-5-construcao-de-layout/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
