Files
web-site/Projects/Panel/Controllers/Duyuru.php
T
2026-07-01 16:44:17 +03:00

28 lines
433 B
PHP

<?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);
}
}