config/main.php suggestions for setup page #43

Open
acorncom opened this Issue May 21, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@acorncom

I just ran into some glitches with urlManager rules combined with MongoDb Ids (which are strings instead of ints). Here's what I came up with in case you want to update the setup page in the manual (http://canni.github.com/YiiMongoDbSuite/xhtml/setup.html):

'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
// 'controller:w+/id:d+'=>'/view',
// 'controller:w+/action:w+/id:d+'=>'/',
'controller:w+/action:w+'=>'/',
'controller:w+/action:w+/id:w+'=>'/',
'controller:w+/id:w+'=>'/view',
),
),

Thanks, this is turning out really nicely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment