new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php namespace Project\Controllers;
|
||||
use DB,Import,URL,Cookie,Session,ML,Method;
|
||||
|
||||
/*
|
||||
* Created By: Erkan IŞIK
|
||||
* Created Date: 2017-12-07
|
||||
* Update Date: 2017-12-07
|
||||
*/
|
||||
class Download extends Controller{
|
||||
|
||||
function main(){
|
||||
//$data = DB::orderBy('id','desc')->get('download')->result();
|
||||
//View::data($data)->get('main');
|
||||
define('TITLE', 'Download');
|
||||
}
|
||||
function counter(){
|
||||
$id = method::post('id');
|
||||
|
||||
$count = DB::whereId($id)->downlinkRowCount();
|
||||
|
||||
DB::where('id',$id)->update('downlink', [
|
||||
'count' => $count+1,
|
||||
]);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Project\Controllers;
|
||||
|
||||
class Initialize extends Controller
|
||||
{
|
||||
public function main()
|
||||
{
|
||||
Theme::active('pisiV4/');
|
||||
|
||||
Masterpage::headPage('Assets/head')
|
||||
->bodyPage('Assets/body')
|
||||
->container(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user