PHP code example of rcarvello / webmvcframework
1. Go to this page and download the library: Download rcarvello/webmvcframework library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rcarvello / webmvcframework example snippets
class BeanCategory extends MySqlRecord implements Bean
{
// Field attributes mapped from table columns
private $categoryId; // category_id
private $categoryName; // category_name
private $listOrder; // list_order
// Main generated methods
public function setCategoryId($categoryId) {}
public function setCategoryName($categoryName) {}
public function setListOrder($listOrder) {}
public function getCategoryId() {}
public function getCategoryName() {}
public function getListOrder() {}
public function getTableName() {} // returns "category"
public function getDdl() {} // returns table DDL
public function select($categoryId) {}
public function insert() {}
public function update($categoryId) {}
public function updateCurrent() {}
public function delete($categoryId) {}
}
php setup-config.php