Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Error with CUrlManager

$
0
0
I'm trying to move a Yii application from a development machine to Amazon EC2 instance. I'm getting an exception on the Amazon server related to CUrlManager which is:

The URL pattern "<controller:\w+>/<id:\d+>" for route "<controller>/view" is not a valid regular expression.

The settings in my config are:
            
                'urlManager' => array(
                'urlFormat' => 'path',
                'showScriptName' => false,
                'rules' => array(
                    '<controller:\w+>/<id:\d+>' => '<controller>/view',
                    '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
                    '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
                ),
            ),


This is working fine on my dev machine. The only noticable differences is that I am running PHP 5.3.10 and the EC2 instance is on 5.3.14.

Any thoughts?

Shawn

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>