Файл: Form Generator/Documentations/Guide for developers.html
Строк: 276
<?php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Form Generator for CodeIgniter Documentation</title>
<!-- Framework CSS -->
<link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
<!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
<style type="text/css" media="screen">
p, table, hr, .box { margin-bottom:25px; }
.box p { margin-bottom:10px; }
</style>
</head>
<body>
<div class="container">
<h3 class="center alt">“Form Generator for CodeIgniter” Documentation for <strong>developers</strong> by “Adrien Vinet” v1.0</h3>
<hr>
<h1 class="center">“Form Generator for CodeIgniter”</h1>
<div class="borderTop">
<div class="span-6 colborder info prepend-1">
<p class="prepend-top">
<strong>
Created: 13/02/2013<br>
By: Adrien Vinet<br>
Email: <a href="mailto:adrien@devtoo.fr">adrien@devtoo.fr</a>
</strong>
</p>
</div><!-- end div .span-6 -->
<div class="span-12 last">
<p class="prepend-top append-0">Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form <a href="http://themeforest.net/user/Subshadow">here</a>. Thanks so much!</p>
</div>
</div><!-- end div .borderTop -->
<hr>
<h2 id="toc" class="alt">Table of Contents</h2>
<ol class="alpha">
<li><a href="#codeigniter">What is CodeIgniter FW ?</a></li>
<li><a href="#existing">Files to include in CI's existing project</a></li>
<li><a href="#new">Way to use this package for new web project</a></li>
<li><a href="#customize">Customize form generated</a></li>
</ol>
<hr>
<h3 id="codeigniter"><strong>A) What is CodeIgniter FW ?</strong> - <a href="#toc">top</a></h3>
<p>CodeIgniter (CI) is an easy PHP Framework used by many developers in any project type.</p>
<p>You can know more about CI here : <a href="http://ellislab.com/codeigniter/user-guide/overview/getting_started.html">http://ellislab.com/codeigniter/user-guide/overview/getting_started.html</a></p>
<hr>
<h3 id="existing"><strong>B) Files to include in CI's existing project</strong> - <a href="#toc">top</a></h3>
<p>If you have an existing project under CI, you can install files of this package in your project package :</p>
<ul>
<li>1 - Move all <strong>/assets</strong> content (css folder/js folder) in your <strong>/</strong> folder</li>
<li>2 - Move <strong>/application/controller/generator.php</strong> in your <strong>/application/controller/</strong> folder</li>
<li>3 - Move <strong>/application/libraries/fileup.php</strong> in your <strong>/application/libraries/</strong> folder</li>
<li>4 - Move <strong>/application/views/generator.php</strong> in your <strong>/application/views/</strong> folder</li>
<li>5 - Move <strong>/application/views/form_helper/</strong> folder in your <strong>/application/views/</strong> folder</li>
</ul>
<p>Ensure you have activated database autoload in <strong>/application/config/autoload.php</strong> like this :</p>
<pre>
$autoload['libraries'] = array('database');
</pre>
<p>and configured database in <strong>/application/config/database.php</strong> :</p>
<pre>
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'your_username';
$db['default']['password'] = 'your_password';
$db['default']['database'] = 'your_database_name';
</pre>
<p>Ensure you activated url autoload in <strong>/application/config/database.php</strong> :</p>
<pre>
$autoload['helper'] = array('url');
</pre>
<p>Ensure your www-data user have permissions to write in these folders : </p>
<ul>
<li>/application/controllers/</li>
<li>/application/models/</li>
<li>/application/views/</li>
</ul>
<p>Ensure your database user have permisssion to CREATE TABLE</p>
<hr>
<h3 id="new"><strong>C) Way to use this package for new web project</strong> - <a href="#toc">top</a></h3>
<p>In first, you have to know <a href="#codeigniter">what is CodeIgniter FW and how it work</a>.</p>
<p>Upload <strong>all files</strong> of package in your FTP's base folder (generaly /www) : </p>
<ul>
<li>Upload /application/...</li>
<li>Upload /assets/...</li>
<li>Upload /system/...</li>
<li>Upload .htaccess</li>
<li>Upload index.php</li>
<li>Upload license_CI.txt</li>
<li>Upload licenses.txt</li>
</ul>
<img src="assets/images/cap_dev2.png" alt="Project" />
<p>Activate database autoload in <strong>/application/config/autoload.php</strong> like this :</p>
<pre>
$autoload['libraries'] = array('database');
</pre>
<p>and configure database in <strong>/application/config/database.php</strong> :</p>
<pre>
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'your_username';
$db['default']['password'] = 'your_password';
$db['default']['database'] = 'your_database_name';
</pre>
<p>Now activate url autoload in <strong>/application/config/database.php</strong> :</p>
<pre>
$autoload['helper'] = array('url');
</pre>
<p>Ensure your www-data user have permissions to write in these folders : </p>
<ul>
<li>/application/controllers/</li>
<li>/application/models/</li>
<li>/application/views/</li>
</ul>
<p>Ensure your database user have permisssion to CREATE TABLE</p>
<hr>
<h3 id="customize"><strong>D) Customize form generated</strong> - <a href="#toc">top</a></h3>
<p>To customize your form, create your own css file in <strong>/assets/css/</strong> and add the css file name in settings box</p>
<img src="assets/images/cap_dev1.png" alt="Setting Box" />
<hr>
<p>Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.</p>
<p class="append-bottom alt large"><strong>Adrien Vinet</strong></p>
<p><a href="#toc">Go To Table of Contents</a></p>
<hr class="space">
</div><!-- end div .container -->
</body>
</html>
?>