Recommend this page to a friend! |
Download .zip |
Info | View files (52) | Download .zip | Reputation | Support forum (4) | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
39% | Total: 557 This week: 1 | All time: 5,383 This week: 336 |
Version | License | PHP version | Categories | |||
cf 1.6 | GNU General Publi... | 5.0 | PHP 5, Libraries |
Description | Author | |
This package is a general purpose Web application framework. |
Clear framework is simple MVC Object oriented framework.
1) Copy content of sandbox folder to your DOCUMENT_ROOT 2) Copy include folder to DOCUMENT_ROOT 3) Copy libs folder to DOCUMENT_ROOT
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 | / | .settings |
File | Role | Description |
---|---|---|
org.eclipse.php.core.prefs | Data | Auxiliary data |
org.eclipse.wst.co...ject.facet.core.xml | Data | Auxiliary data |
Files | / | examples | / | annonce |
File | Role | Description | ||
---|---|---|---|---|
controllers (4 files) | ||||
views (1 file) | ||||
bootstrap.php | Aux. | Auxiliary script | ||
config.php | Aux. | Auxiliary script | ||
index.php | Example | Example script |
Files | / | examples | / | annonce | / | controllers |
File | Role | Description |
---|---|---|
Controller.php | Class | Class source |
Error404Controller.php | Class | Class source |
ErrorController.php | Class | Class source |
RouterController.php | Class | Class source |
Files | / | include |
File | Role | Description |
---|---|---|
ad.php | Class | Class source |
bootstrap.php | Example | Example script |
db.php | Class | Class source |
Form.php | Class | Class source |
FormField.php | Class | Class source |
Hidden.php | Class | Class source |
i18n.php | Aux. | Auxiliary script |
Login.php | Class | Class source |
Mailer.php | Class | Class source |
Menu.php | Class | Class source |
MenuItem.php | Class | Class source |
PermisionRule.php | Class | Class source |
Permisions.php | Class | Class source |
README.md | Doc. | Documentation |
Redir.php | Class | Class source |
Saxophone.php | Class | Class source |
Select.php | Class | Class source |
seo.php | Class | Class source |
Snips.php | Class | Class source |
Table.php | Class | Class source |
Tools.php | Class | Class source |
Files | / | libs | / | phpmailer |
File | Role | Description |
---|---|---|
class.phpmailer.php | Class | Class source |
class.phpmaileroauth.php | Class | Class source |
class.phpmaileroauthgoogle.php | Class | Class source |
class.pop3.php | Class | Class source |
class.smtp.php | Class | Class source |
get_oauth_token.php | Class | Class source |
gmail.phps | Example | Example script |
PHPMailerAutoload.php | Aux. | Auxiliary script |
Files | / | sandbox |
File | Role | Description | ||
---|---|---|---|---|
controllers (4 files) | ||||
views (2 files) | ||||
.htaccess | Data | Auxiliary data | ||
bootstrap.php | Aux. | Auxiliary script | ||
config.php | Aux. | Auxiliary script | ||
index.php | Example | Example script |
Files | / | sandbox | / | controllers |
File | Role | Description |
---|---|---|
Controller.php | Class | Class source |
Error404Controller.php | Class | Class source |
ErrorController.php | Class | Class source |
RouterController.php | Class | Class source |
Files | / | sandbox | / | views |
File | Role | Description |
---|---|---|
main.phtml | Example | Example script |
mainpage.phtml | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (2) | |||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.