Test Husky pre-commit hook.
This commit is contained in:
parent
819dc9e876
commit
303350ea0a
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
class Forms extends CI_Controller
|
||||
|
@ -31,7 +32,6 @@ class Forms extends CI_Controller
|
|||
|
||||
$this->load->view('form_preview', $data);
|
||||
$this->load->view('templates/footer');
|
||||
|
||||
}
|
||||
|
||||
public function response_preview($form_id)
|
||||
|
@ -70,7 +70,8 @@ class Forms extends CI_Controller
|
|||
$this->load->view('response_submit', $data);
|
||||
}
|
||||
|
||||
public function preview_back($form_id) {
|
||||
public function preview_back($form_id)
|
||||
{
|
||||
if (!$this->session->userdata('logged_in')) {
|
||||
// If not logged in, redirect to login page
|
||||
redirect('users/login');
|
||||
|
@ -89,14 +90,13 @@ class Forms extends CI_Controller
|
|||
foreach ($questions as &$question) {
|
||||
$question->options = $this->preview_model->get_options($question->id);
|
||||
}
|
||||
|
||||
// Pass the data to the view
|
||||
// / Pass the data to the view
|
||||
$data['form'] = $form;
|
||||
$data['questions'] = $questions;
|
||||
|
||||
$this->load->view('templates/header');
|
||||
$this->load->view('form_preview_back', $data);
|
||||
$this->load->view('templates/footer');
|
||||
// $this->load->view('templates/footer');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue