hinom 5 Denunciar post Postado Setembro 12, 2009 005 - Módulo "Home" app\model\home.php <?php class ModuleHome extends Controller { function Form( ) { return null; } function Prepare( ) { return null; } function View( ) { $this -> app['Labels']['hello'] = time(); return null; } } ?> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 12, 2009 app\template\eng\home.html <?php // HTML Elements and tags $L['html'] = array( 'title' => 'FooBar PHP Framework Light - Home Module', 'meta' => array( 'description' => 'FooBar PHP Framework Light', 'keywords' => 'FooBar Framework, Light PHP Framework', ), ); // Page Labels $L['Labels'] = array( 'ContentTitle' => 'Hello World!', ); include 'header.html'; /* ------------------------------------------------------------------ */ ?> <table class="Content"> <tr> <td class="ContentTitle"><?php echo $L['Labels']['ContentTitle'];?></td> </tr> <tr><td class="ContentAll"> <?php echo $L['Labels']['hello'];?> </td></tr> </table> <?php /* ------------------------------------------------------------------ */ include 'footer.html'; ?> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 13, 2009 app\template\eng\header.html <?php $H['Labels'] = array( 'MainTitle' => 'FooBar Light PHP Framework', ); ?> <html> <title><?php echo $L['html']['title'];?></title> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META NAME="DESCRIPTION" CONTENT="<?php echo $L['html']['meta']['description'];?>"> <META NAME="KEYWORDS" CONTENT="<?php echo $L['html']['meta']['keywords'];?>"> <META NAME="OWNER" CONTENT="Foo.Bar"> <META NAME="AUTHOR" CONTENT="Mr. Foo"> <META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English"> <META NAME="RATING" CONTENT="General"> <META NAME="ROBOTS" CONTENT="index,follow"> <link rel="stylesheet" type="text/css" href="/css/Styles.css" /> <script language="javascript" type="text/js" src="/js/Scripts.js"></script> </head> <body> <table class="All"><tr><td class="All"> <table class="MainContent"> <tr> <td class="MainTop"><span class="MainTitle"><?php echo $H['Labels']['MainTitle'];?></span></td> </tr> <tr> <td class="MainContent"> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 13, 2009 app\template\eng\footer.html </td> </tr> </table> </td></tr></table> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 13, 2009 public_html\css\Styles.css @charset "utf-8"; *{ margin: 0; padding: 0; border: 0; border-spacing:0px; border-collapse: collapse; color: #000000; font-family: Verdana, Helvetica, Arial, Trebuchet MS, sans-serif; font-weight: normal; font-size: 16px; } body{ background-color: #e7eef6; } td{ padding-top: 10px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; vertical-align: text-top; text-align: left; font-weight: normal; } table.All { width: 100%; height: 100%; margin-top: -18px; } td.All{ width: 100%; height: 100%; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; text-align: center; vertical-align:text-middle; } table.MainContent { width: 100%; height: 100%; background-color: #FFFFFF; } td.MainTop { width: 100%; height: 10%; background-color: #ace9f3; vertical-align:text-middle; } td.MainContent { width: 100%; height: 90%; background-color: #FFFFFF; padding-top: 4px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; vertical-align:text-top; } span.MainTitle{ font-size: 18px; } a{ color: #a80000; text-decoration: none; } a:hover{ text-decoration: underline; } td.ContentTitle{ background-color: #e6e6e6; border-top: solid 1px #ffffff; border-bottom: solid 1px #ffffff; border-left: solid 1px #e6e6e6; border-right: solid 1px #e6e6e6; font-weight: bold; } table.Content{ width: 100%; height: 100%; } td.ContentAll{ background-color: #ffffff; border-top: solid 0px #f1dcdf; border-bottom: solid 1px #f1dcdf; border-left: solid 1px #f1dcdf; border-right: solid 1px #f1dcdf; width: 100%; height: 100%; } td.WordTranslated{ background-color: #ffffff; border-top: solid 0px #f1dcdf; border-bottom: solid 1px #f1dcdf; border-left: solid 1px #f1dcdf; border-right: solid 1px #f1dcdf; } td.WordJP, .WordJPKana{ background-color: #ffffff; border-top: solid 0px #f1dcdf; border-bottom: solid 1px #f1dcdf; border-left: solid 1px #f1dcdf; border-right: solid 0px #f1dcdf; } span.WordJPRomanji{ color: #336600; } span.WordVariants{ color: #666666; } div.NavMainMenu, a.NavMainMenu, a.NaviCurrent{ color: #6699cc; font-size: 14px; margin-bottom: 4px; } a.NavMainMenu:hover{ color: #cc33cc; } a.NaviCurrent{ color: #669933; } a.NaviCurrent:hover{ color: #cc33cc; } Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 13, 2009 public_html\js\Scripts.js /* empty */ obs: Por equanto não há necessidade no uso de scripts JavaScript, por isso, o script será mantido vazio. http://forum.imasters.com.br/public/style_emoticons/default/seta.gif Índice http://forum.imasters.com.br/public/style_emoticons/default/seta.gif 004 - Library Template http://forum.imasters.com.br/public/style_emoticons/default/seta.gif 006 - Rewrite Rules (.htaccess) Compartilhar este post Link para o post Compartilhar em outros sites