new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php namespace Project\Controllers;
|
||||
use Method,URI;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class Duyuru extends Controller{
|
||||
|
||||
function main(){
|
||||
$content = $this->Duyuru_model->contentList();
|
||||
|
||||
view::list($content);
|
||||
|
||||
}
|
||||
|
||||
function new(){
|
||||
if (Method::post()){$this->Duyuru_model->new(Method::post());}
|
||||
|
||||
}
|
||||
|
||||
function edit(){
|
||||
$id = Uri::get('edit');
|
||||
if (Method::post()){$this->Duyuru_model->update(Method::post());}
|
||||
|
||||
View::id($id);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user