Welcome Guest, Not a member yet? Register   Sign In
Not sending my POST data - Extending Lang, Config
#1

[eluser]Mauricio de Abreu Antunes[/eluser]
Hi,
I'm here again.

I have some problems about my forms.
I'm using this lib for internationalization (extending MY_Config and MY_Lang):
https://github.com/daylerees/ci-lang - http://maestric.com/doc/php/codeigniter_i18n
My routes.php is:
Code:
$route['default_controller']  = 'welcome';
$route['404_override']    = '';
//Routing para noticias.
$route['noticias/:num']   = 'noticias';
/**
* Routing para idiomas
*/

//English, Portuguese and Spanish
$route['^(en|pt|es)/(.+)$']   = "$2";

I really don't know what is happening. When i submit any form, it refreshes and loads the same page and nothing happens.
I think my problems is in MY_Lang, MY_Config and routes.php, but i don't know how to act about about this case. I printed some messages for debug and i figured out my post is empty. It's not sending data anymore because my $_POST is empty.
I printed messages in core library and this line
Code:
public function run($group = '')
{
  // Do we even have any data to process?  Mm?
  if (count($_POST) == 0)
  {
   return FALSE;
  }
shows me an empty post array.
I guess my problem is in routes.php. Any idea?

This is my controller:
Code:
public function index () {
   if ($this->form_validation->run('teste') == false) {
    $this->load->view('teste_validacao');
   } else {
    echo 'Dados estão corretos.';
   }
  }

My URL is: http://localhost/percutz/pt/teste_validacao

OBS.: a good observations is: when i load any additional translation file like 'site_lang.php' ($this->lang->load('site', 'portuguese')) it does not load and shows me this error: File site.php does not exist, but the syntax is ok, because before these changing about internationalization, i was not getting this error.

pt = my language (portuguese)
Any idea?


Messages In This Thread
Not sending my POST data - Extending Lang, Config - by El Forum - 03-07-2012, 05:25 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 04:43 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:28 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 11:35 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 04:53 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:03 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:04 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:11 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:19 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:22 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:30 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:35 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-08-2012, 09:47 PM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-09-2012, 11:47 AM
Not sending my POST data - Extending Lang, Config - by El Forum - 03-09-2012, 03:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB