PHP Classes

File: fwphp/glomodul/z_examples/todo_csv_js/todolist/home.phtml

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/todo_csv_js/todolist/home.phtml   Download  
File: fwphp/glomodul/z_examples/todo_csv_js/todolist/home.phtml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/todo_csv_js/todolist/home.phtml
Date: 1 year ago
Size: 7,139 bytes


Class file image Download
<?php /* * */ namespace TodoList; ?> <!DOCTYPE html> <!-- --> <html> <head> <title>TODO List - sample application for NetBeans IDE</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <link rel="stylesheet" href="/zinc/themes/bootstrap/css/bootstrap.min.css"> <!--link href="web/css/layout.css" rel="stylesheet" type="text/css" > <link href="web/css/style.css" rel="stylesheet" type="text/css" > <link href="" rel="stylesheet" --> </head> <body id="page"> <div id="main"> <!-- header --> <div id="header"> <!--i class="material-icons logo">assignment</i> <div class="title"> <h1>TODO List</h1> <h2>PHP CRUD sample module</h2> </div--> <div class="nb"> <a href="" target="_blank" title="NetBeans PHP Support"><img src="/zinc/img/meatmirror.jpg" alt="module logo"></a> </div> </div> <!-- content --> <div id="content"> <!--div class="wrapper"--> <div class="col-8"> <div class="indent"> <h3>What is TODO List?</h3> <p class="p">TODO List is a personal list of things that are to be done. This PHP application is created to highlight PHP features supported by NetBeans IDE. </p> <p class="p"> <b>This sample is not intented to be used on a production server without any changes.</b> </p> <h3>This sample demonstrates the following features:</h3> <ul class="p"> <li>OOP concepts</li> <li>preventing public access to your scripts</li> <li>configuration your application</li> <li>accessing your database data</li> <li>changing your database data (with redirect-after-post pattern)</li> <li>validating your data</li> <li>splitting scripts and templates</li> <li>handling expected and unexpected exceptions</li> </ul> <h3>Requirements</h3> Follow these before you run the sample: <ul class="p"> <li>Install NetBeans IDE with PHP support</li> <li>Install and configure PHP Runtime (PHP 5.4 or newer)</li> </ul> <h3>What is included?</h3> <ul class="p"> <li>NetBeans <i>PHP Application</i> Project</li> <li>Database together with SQL Script</li> <li>Additional Stylesheet, JavaScript</li> </ul> <h3>Before the start</h3> <ul class="p"> <li>If you want to try the sample out, follow <a href="#getting_started">Getting Started</a> guidelines.</li> <li>If you want to try debugging features of the NetBeans IDE, follow the <a href="#debugging">Debugging</a> guidelines.</li> </ul> <h3 id="getting_started">Getting Started</h3> <ol class="p"> <li> As a database, the application uses <a href="" target="_blank">SQLite</a> database with some sample data (see <i>db</i> directory). </li> <li> As a server, the application uses the PHP built-in web server. </li> <li> Run the project. Right-click the project node again and select <i>Run Project</i> or use the <i>Run Project</i> icon in the main menu toolbar. The sample PHP application should open in the Web browser. </li> <li>Play further with the sample. :)</li> </ol> <h3 id="debugging">Debugging</h3> <p class="p"> These steps should enable you the debugging option at the sample project, <a href="" target="_blank">if you already have PHP debugger installed and configured</a>. </p> <ol class="p"> <li> To debug the application, right-click the project node and select <i>Debug Project</i> or use the <i>Debug Project</i> icon in the main menu toolbar. </li> <li> Put breakpoint somewhere in any PHP script and (re)load the proper URL. </li> <li>Play further with the sample. :)</li> </ol> <h3>Project folder's structure</h3> <ul class="p"> <li><i>config</i> - Contains configuration file <i>config.ini</i> where you can edit the DB connection settings.</li> <li><i>dao</i> - Contains DAO (Data Access Object) classes.</li> <li><i>db</i> - Contains the database and SQL dump for its creating.</li> <li><i>exception</i> - Contains custom exceptions.</li> <li><i>layout</i> - Contains layout common for all web pages.</li> <li><i>mapping</i> - Contains classes used for mapping from database to model classes.</li> <li><i>model</i> - Contains model classes.</li> <li><i>page</i> - Contains pages of the TodoList application.</li> <li><i>util</i> - Contains utility classes.</li> <li><i>validation</i> - Contains validation classes.</li> <li><i>web</i> - Contains publicly accessible files (PHP scripts, CSS, JS, images).</li> </ul> </div> </div> <!--/div--> </div> <!-- footer NOT include_once ! --> <?php //$thispge = __FILE__; include 'ftr_home_pge.phtml'; ?> </div> </body> </html>