Problem with Routes. CakePHP repeating parameter

2012-10-06 Thread Kico Zaninetti
Hi, I'm having a problem and don't know where is the problem, maybe someone can help me out. I have created the following routes: foreach($cats as $cat) { $regra .= $cat[Categoria][url_rapida].|; } $regra = (.substr($regra, 0,-1).); // this return the structure

Re: Problem with Routes. CakePHP repeating parameter

2012-10-06 Thread Kico Zaninetti
Problem solved! I just took the () off the rule. this $regra = (.substr($regra, 0,-1).); become this $regra = substr($regra, 0,-1); On Sat, Oct 6, 2012 at 12:04 PM, Kico Zaninetti kicozanine...@gmail.comwrote: Hi, I'm having a problem and don't know where is the problem, maybe someone can