Cytat
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Formularz::$load
Filename: controllers/formularz.php
Line Number: 10
Fatal error: Call to a member function helper() on a non-object in /home/adam/public_html/workspace/CodeIgniter/system/application/controllers/formularz.php on line 10
Severity: Notice
Message: Undefined property: Formularz::$load
Filename: controllers/formularz.php
Line Number: 10
Fatal error: Call to a member function helper() on a non-object in /home/adam/public_html/workspace/CodeIgniter/system/application/controllers/formularz.php on line 10
Kod
<?php
class Formularz extends Controller
{
function Formularz()
{
parent::Controller();
}
function __construct()
{
$this->load->helper('form');
}
function index()
{
// załadowanie formularza
$view_form = $this->load->view('form','', True);
$this->load->view('metrohacker/index', array('galeria' =>$view_form));
}
function submit()
{
// załadowanie wynikowego formularza, przekazanie danych
$view_submit = $this->load->view('wynik', array('czas' => $this->input->post('czas'), 'login' => $this->input->post('login'), 'password' => $this->input->post('password'), 'plec' => $this->input->post('plec'), 'zainteresowania' => $this->input->post('zainteresowania')), TRUE);
$this->load->view('metrohacker/index', array('galeria' =>$view_submit));
}
}
?>
class Formularz extends Controller
{
function Formularz()
{
parent::Controller();
}
function __construct()
{
$this->load->helper('form');
}
function index()
{
// załadowanie formularza
$view_form = $this->load->view('form','', True);
$this->load->view('metrohacker/index', array('galeria' =>$view_form));
}
function submit()
{
// załadowanie wynikowego formularza, przekazanie danych
$view_submit = $this->load->view('wynik', array('czas' => $this->input->post('czas'), 'login' => $this->input->post('login'), 'password' => $this->input->post('password'), 'plec' => $this->input->post('plec'), 'zainteresowania' => $this->input->post('zainteresowania')), TRUE);
$this->load->view('metrohacker/index', array('galeria' =>$view_submit));
}
}
?>