Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14194

Re: [CodeIgniter] form_error($field)==='' although $this->form_validation->run()===FALSE

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: [CodeIgniter] form_error($field)==='' although $this->form_validation->run()===FALSE
Date 2014-08-25 16:17 -0400
Organization A noiseless patient Spider
Message-ID <ltg5kl$it8$1@dont-email.me> (permalink)
References <0b6ae8b7-4246-48e4-9737-57fb4e0a47ca@googlegroups.com>

Show all headers | View raw


On 8/25/2014 1:49 PM, RAM wrote:
> I am learning PHP5 and CodeIgniter. I am writing my first application using this framework. I have a problem with validation. Although $this->form_validation->run()===FALSE, I have empty results of validation_errors(), form_error() and set_value(). I don't understand why.
> 
> I found a solution, but I don't like it. I created library MY_Form_validation:
>
<snip>
>
> It works fine but I still don't understand why I have to use $this->_error_array in run(). I don't like it. I would like to have form_error() and set_value() working fine.
> Please help. Thanks in advance.
> 

Have you asked in the CodeIgniter forums?  When dealing with a product,
your best support almost always comes from the source of the product -
they know their code better than anyone else.  And I doubt many (if any)
here have much experience with CodeIgniter.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[CodeIgniter] form_error($field)==='' although $this->form_validation->run()===FALSE RAM <jivanmukta@poczta.onet.pl> - 2014-08-25 10:49 -0700
  Re: [CodeIgniter] form_error($field)==='' although $this->form_validation->run()===FALSE Jerry Stuckle <jstucklex@attglobal.net> - 2014-08-25 16:17 -0400

csiph-web