If there are a hundred of rules
Router :: connect () really slows the application. For larger applications is
a big problem. So I decided to Apache RewriteRule (CakePhp 1.3). In earlier
versions of CakePHP and (1.3) all worked OK.
For example simple Rule:
RewriteRule ^upozorenje/index$ warnings/
On Thursday, 11 July 2013 13:42:03 UTC+2, boris wrote:
>
> RewriteRule ^upozorenje/index$ warnings/index [L]
> rule is not working.
>
If your rewrite rules aren't working - you're on your own and that's off
topic for this group.
Alternatively routes work. Routes work very well. Did I mention t
ust a rewrite like that.
>
> Op donderdag 11 juli 2013 08:54:14 UTC+2 schreef boris het volgende:
>>
>> In the new version of CakePHP's RewriteRule not working as before. For
>> example:
>> RewriteRule ^upozorenje/index $warnings/index [L]
>>
>> Error is
Shouldn't it be:
RewriteRule ^upozorenje/index$ warnings/index [L]
Also, the router does a lot more than just a rewrite like that.
Op donderdag 11 juli 2013 08:54:14 UTC+2 schreef boris het volgende:
>
> In the new version of CakePHP's RewriteRule not working as before
In the new version of CakePHP's RewriteRule not working as before. For
example:
RewriteRule ^upozorenje/index $warnings/index [L]
Error is printed:
Error: UpozorenjeController could not be found.
I don't like use Router::connect() because it really slows the application.
Thanks,
-