CodeIgniter_Gforms/application/controllers/Forms.php

19 lines
397 B
PHP
Raw Normal View History

2024-07-11 13:04:55 +00:00
<?php
class Forms extends CI_Controller
{
public function create(){
//check login
if(!$this->session->userdata('logged_in')){
redirect('users/login');
}
$data['title'] = 'Create Post';
$this->load->view('templates/header');
$this->load->view('forms/create', $data);
$this->load->view('templates/footer');
}
}