DownloadJFramework by Javamon
???????? PHP COMPOSER ?? ??? ?????.
MVC??? ???? ???? ???? ???? ???? ???????.
????
|??| ????|???? ??|????|????|????|????|
| ------------- |:-------------:| -----:|-----:|-----:|-----:|-----:|
|AWS|Ubuntu 16.04|MVC?? ??? ?? ?????|17.5.1~3|??|MAC OS|PHP 7.0.APACHE2 MariaDB 10.|
github link : github
sample link : demo
??
?? ????? ????? ??? ???? ????? ???? ?? ??? ????? ?? ?? "?"? ???? ????, CI? ???? ????? ??? ???? ??? ?? ??? ???? ?? ????? ???? ?????.
??????? ???
-
PHP 7.0.* ??
-
PHP COMPOSER
-
PHP MODULE - PDO
-
MriaDB 10.0.* ??
-
APACHE - Rewrite, Override ON
??????? ??
?? ?????? ??? ????. ???, http ??? ?? ?? ?? MVC??? ??? ???, ??? ????? ?? "?? ???"? ??? ?? ???? ?????.
??, ?? ?? ?? ? ??? ??? ??? ????? ??? ????? ?????.
????????..
-
????? ??? ??????? ??? ??? ?? ??? ???? ?????.
-
???? ?? ????, ???? rewrite? GET???? ???? ???????.
-
???? ???? ORM ??? ??? ORM? ??? ????.
-
??? ORM? PHP ??? PDO? ??????, ????? ??? commit, rollback? ?????.
-
???? ??, ?? ?? ?? ????? ??/???? ??????? ?????.
-
??? ??? ??, ?? ??? ??? ?????? ????? ???? ?????.
???????? ????
-
HTTP? ??(POST, GET ?) ??? ?? ???.
-
??, ?? ?? ??, ???? ?? ???.
-
????? ????
-
?????? ??? ??????
-
???? artisan? ?? ???? ??? ????
-
??? ??(??? ?)? ??? ? ?? ??.
??????? ???
?? ????(????) ?? ??
namespace Javamon\Jframe\Processor;
use \Javamon\Jframe\Core\Processor as Processor;
class Sample extends Processor {
public function Sample($arg) {}
}
Route ?? ??
URL ROUTE? CodeIgniter? ?????.
??????, ?? ??? example.com/class/function/id/ ???. $route['product/(:num)'] = 'catalog/product_lookup';
$route['product/(:any)'] = 'catalog/product_lookup';
?? ?? ??? ?? ??? ?????. example.com/product/1/
.
.
example.com/product/4/
example.com/product/sample/
??????? ??? ?? : Route ?? ??
??(????) ?? ??
$this->model->select(???, ????, ?? ??, ?? ?);
$this->model->select('user', 'user_name','user_index', 6);
$this->model->update(???, ?? ??, ?? ?, ????, ?? ?);
$this->model->update('user', 'user_name','power','user_index', 5);
$this->model->delete(???, ???? ??, ?? ???);
$this->model->delete('user', 'user_index', 5);
???? ORM ?? ??
User::ORM()->select(????, ?? ??, ?? ?);
User::ORM()->update(?? ??,?? ?, ?? ??, ?? ?);
User::ORM()->delete(???? ??, ?? ???);
? ?? ??
$this->view->load(? ???(??), ? ?? ???(??));
$layout[] = "header";
$layout[] = "table";
$layout[] = "footer";
$this->view->load($layout, $data);
??
?? ??? ? ???? ??.
|