Simple answer is that you can't pass a parameter containing /
Cake will interpret the / as a separator and make two parameters, 2008
and 2 in your case.
You can either reassemble your parameters in the controller by parsing
through the params array (see teknoid's reply).
Or you can choose to use another separator like - och _ and then
replace it with / in the controller before using it.
$turma = 'qqq-w'
$turma2 = str_replace('-', '/', $turma);
On Jan 14, 3:55 pm, Mario Cesar <[email protected]> wrote:
> hi!
> i have parameters with / ex '2008/2,' '2008/1'
> but the cake read only 2008
> how can i pass the /???
>
> i'm using
> $turma = 'qqq/w';
> $this->requestAction("/turmasDisciplinasHorarios/getDisciplinaTurma/
> $turma/$filial/$disciplina");
>
> someone can help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---