doutan2228 2012-11-05 07:09
浏览 41
已采纳

CodeIgniter表单验证配置在分配对象名称时停止工作

I was working with CodeIgniter's form validation. I had a config file in

application/config/form_validation.php

it works fine in most case, but in one of my files, I had this line

$this->load->library('form_validation', '', 'validation');

Then the config file stops working.

It seems to me that the config file won't work if I assigned a different object name.

That seem pretty inconvenient to me, is there any way to fix it?

  • 写回答

1条回答 默认 最新

  • dougou1127 2012-11-05 07:22
    关注

    Not sure if this will help, but you could try:

    $this->load->library('form_validation', null, 'validation');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?