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    
Ratings Unique User Downloads Download Rankings
StarStar 39%Total: 557 This week: 1All time: 5,383 This week: 336Up
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.

Picture of Juraj Puchký
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

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

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

For more information send a message to info at phpclasses dot org.