PHP Classes
elePHPant
Icontem

Clear Framework: General purpose Web application framework

Recommend this page to a friend!
  Info   View files View files (52)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-09-05 (2 months ago) RSS 2.0 feedStarStar 39%Total: 531 This week: 1All time: 5,433 This week: 599Up
Version License PHP version Categories
cf 1.6GNU General Publi...5.0PHP 5, Libraries
Description Author

This package is a general purpose Web application framework.

It provides a collection of classes for several purposes when developing Web applications. Currently it provides classes for:

- Generating HTML forms
- Generating HTML menus with menu items
- Generating HTML tables from arrays of data
- Accessing MySQL databases
- Recording banner views and clicks in a database
- Making SEO friendly URLs
- Generating pagination links
- Sending email
- Redirecting to a different page
- Etc.

  Performance   Level  
Name: Juraj Puchkı <contact>
Classes: 5 packages by
Country: Czech Republic Czech Republic
Age: 35
All time rank: 163915 in Czech Republic Czech Republic
Week rank: 231 Up3 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 2x

Details

Clear Framework

Clear framework is simple MVC Object oriented framework.

How to start

1) Copy content of sandbox folder to your DOCUMENT_ROOT 2) Copy include folder to DOCUMENT_ROOT 3) Copy libs folder to DOCUMENT_ROOT

How to work with Database

In index PHP is initialized global cfDb instance of Db OBject. Please specify your database connection details in config.php file.

For getting results from table use following sample.

$results = $cfDb->getResults ( "SELECT * FROM your_table;");

For inserting to table is used following sample.

$assoc = array('column_1' => 'val_1'); $cfDb->insert('your_table',$assoc);

For updating table records use following sample.

$assoc = array('column_1' => 'val_1'); $cfDb->update('your_table',$assoc,"yourid='$id'");

Working with database should be in Model part of MVC. Create Class in models folder with public static functions as model operations. See example

class Book { public static function newBook($bookName) {

...

}

public static function listBooks() {

...

}

}

Functions are accessed after in Controler part of MVC as... $books = Book::listBooks();

  Files folder image Files  
File Role Description
Files folder image.settings (2 files)
Files folder imageexamples (1 directory)
Files folder imageinclude (21 files)
Files folder imagelibs (1 directory)
Files folder imagesandbox (4 files, 2 directories)
Accessible without login Plain text file .buildpath Data Auxiliary data
Accessible without login Plain text file .project Data Auxiliary data
Accessible without login Plain text file README.md Data Description

  Files folder image Files  /  .settings  
File Role Description
  Accessible without login Plain text file org.eclipse.php.core.prefs Data Auxiliary data
  Accessible without login Plain text file org.eclipse.wst.co...ject.facet.core.xml Data Auxiliary data

  Files folder image Files  /  examples  
File Role Description
Files folder imageannonce (3 files, 2 directories)

  Files folder image Files  /  examples  /  annonce  
File Role Description
Files folder imagecontrollers (4 files)
Files folder imageviews (1 file)
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  examples  /  annonce  /  controllers  
File Role Description
  Plain text file Controller.php Class Class source
  Plain text file Error404Controller.php Class Class source
  Plain text file ErrorController.php Class Class source
  Plain text file RouterController.php Class Class source

  Files folder image Files  /  examples  /  annonce  /  views  
File Role Description
  Accessible without login Plain text file mainpage.phtml Data Auxiliary data

  Files folder image Files  /  include  
File Role Description
  Plain text file ad.php Class Class source
  Accessible without login Plain text file bootstrap.php Example Example script
  Plain text file db.php Class Class source
  Plain text file Form.php Class Class source
  Plain text file FormField.php Class Class source
  Plain text file Hidden.php Class Class source
  Accessible without login Plain text file i18n.php Aux. Auxiliary script
  Plain text file Login.php Class Class source
  Plain text file Mailer.php Class Class source
  Plain text file Menu.php Class Class source
  Plain text file MenuItem.php Class Class source
  Plain text file PermisionRule.php Class Class source
  Plain text file Permisions.php Class Class source
  Accessible without login Plain text file README.md Doc. Documentation
  Plain text file Redir.php Class Class source
  Plain text file Saxophone.php Class Class source
  Plain text file Select.php Class Class source
  Plain text file seo.php Class Class source
  Plain text file Snips.php Class Class source
  Plain text file Table.php Class Class source
  Plain text file Tools.php Class Class source

  Files folder image Files  /  libs  
File Role Description
Files folder imagephpmailer (8 files)

  Files folder image Files  /  libs  /  phpmailer  
File Role Description
  Plain text file class.phpmailer.php Class Class source
  Plain text file class.phpmaileroauth.php Class Class source
  Plain text file class.phpmaileroauthgoogle.php Class Class source
  Plain text file class.pop3.php Class Class source
  Plain text file class.smtp.php Class Class source
  Plain text file get_oauth_token.php Class Class source
  Accessible without login Plain text file gmail.phps Example Example script
  Accessible without login Plain text file PHPMailerAutoload.php Aux. Auxiliary script

  Files folder image Files  /  sandbox  
File Role Description
Files folder imagecontrollers (4 files)
Files folder imageviews (2 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  sandbox  /  controllers  
File Role Description
  Plain text file Controller.php Class Class source
  Plain text file Error404Controller.php Class Class source
  Plain text file ErrorController.php Class Class source
  Plain text file RouterController.php Class Class source

  Files folder image Files  /  sandbox  /  views  
File Role Description
  Accessible without login Plain text file main.phtml Example Example script
  Accessible without login Plain text file mainpage.phtml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:531
This week:1
All time:5,433
This week:599Up
User Ratings User Comments (2)
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:39%StarStar
Rank:2936