<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Secure extends CI_Controller {
public function index()
{
$this->load->view('secure/giris');
}
public function login()
{
$this->load->libary('form_validation');
$this->form_validation->set_rules('kadi','Kullanıcı Adı','required|trim|');
$this->form_validation->set_rules('sifre','Şifre','required|trim|');
$this->form_validation->set_message('required','Lütfe Boş Alan Bırakmayınız.');
if ($this->form_validation->run()) {
echo "başarılı";
# code...
}
else
{
redirect('secure');
}
}
}hata;Message: Call to undefined method CI_Loader::libary()
Filename: D:wamp64wwwapplicationcontrollersSecure.php
Line Number: 13
Backtrace:
File: D:wamp64wwwindex.php
Line: 315
Function: require_once
nedendir?
teşekkür ederim hocam akıl edemedim düzeldi