page.php 464 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. class Page extends Controller{
  3. function main(){
  4. $data['sayfa'] = $this->page_model->sayfalistesi();
  5. Import::view('page/page',$data);
  6. }
  7. function newpage(){
  8. if(Method::post()){$this->page_model->insert(Method::post());}
  9. Import::view('page/newpage');
  10. }
  11. function duzenle($id){
  12. $data['dzn'] = $this->page_model->duzenle_sec($id);
  13. Import::view('page/sayfa_duzenle',$data);
  14. }
  15. }