CodeIgniter Forums
access form_validation $config array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: access form_validation $config array (/thread-33540.html)



access form_validation $config array - El Forum - 08-30-2010

[eluser]Ahmed Reda[/eluser]
how can i read the $config array in config/form_validation.php , without loading the form_validation librairie ?
is there a way to 'include' it and use it like a simple array ?


access form_validation $config array - El Forum - 08-30-2010

[eluser]Twisted1919[/eluser]
Code:
$this->config->load('form_validation');



access form_validation $config array - El Forum - 08-30-2010

[eluser]Ahmed Reda[/eluser]
i don't want to use the form_validation librairie, so i don't want to load it, i just want to have access to the $config variable inside the config/form_validation.php

is there a way to do that ?

thanks.


access form_validation $config array - El Forum - 08-30-2010

[eluser]danmontgomery[/eluser]
[quote author="Twisted1919" date="1283202727"]
Code:
$this->config->load('form_validation');
[/quote]


access form_validation $config array - El Forum - 08-30-2010

[eluser]Ahmed Reda[/eluser]
thanks