user.php 420 B

123456789101112131415161718
  1. <?php
  2. class User extends Controller{
  3. function main(){
  4. $data['uyelist'] = $this->uye_model->uyelistesi();
  5. import::view('uye',$data);
  6. }
  7. function duzenle($id){
  8. if(method::post()){
  9. $this->uye_model->duzenle_kayit(method::post());
  10. }
  11. $data['dzn'] = $this->uye_model->duzenle($id);
  12. import::view('uye_duzenle',$data);
  13. }
  14. function logout(){
  15. Session::deleteAll();
  16. redirect(baseUrl());
  17. }
  18. }