fractalbit
(Fractalbit)
January 27, 2011, 8:28pm
1
Hello, i am certainly a noob to yii but i think there is an error here: hmm, i am not able to post links because i am noob, way to go. Anyway, i am reffering to CurlManager class reference page…
More specifically i think this:
array(
'<_c:(post|comment)>/<id:\d+>/<_a:(create|update|delete)>'=>'<_c>/<_a>',
'<_c:(post|comment)>/<id:\d+>'=>'<_a>/view',
'<_c:(post|comment)>s/*'=>'<_a>/list',
)
should probably be replaced with this
array(
'<_c:(post|comment)>/<id:\d+>/<_a:(create|update|delete)>'=>'<_c>/<_a>',
'<_c:(post|comment)>/<id:\d+>'=>'<_c>/view',
'<_c:(post|comment)>s/*'=>'<_c>/list',
)
Basically replace <_a> with <_c> in the last 2 rules. Otherwise it doesn’t make any sense (or i am completely lost)
gusnips
(Gustavo)
January 27, 2011, 8:35pm
2
you are right
Its right in the tutorial tho
fractalbit
(Fractalbit)
January 27, 2011, 8:40pm
3
It’s not right to the page i am referring to but forum rules do not allow me to post the exact link. Try this…
type yiiframework.com and add "/doc/api/1.1/CUrlManager"
This page has the wrong info.
To forum admins: Please note that even adding an emoticon is considered a "link" preventing you from posting : (
mdomba
(Maurizio Domba Cerin)
January 27, 2011, 10:04pm
4
This is to prevent SPAM… and it’s just for the first 3 posts…
as for the links you can alway post it like
hxxp://www.yiiframework.com/doc/api/1.1/CUrlManager
mdomba
(Maurizio Domba Cerin)
January 27, 2011, 10:13pm
5
I see you opened an issue too, good job…
just fixed this - http://code.google.com/p/yii/source/detail?r=2917
Note: the online documentation on the site will be updated only on the next Yii release… .so the change is not visible yet…
fractalbit
(Fractalbit)
January 27, 2011, 10:26pm
6
mdomba:
I see you opened an issue too, good job…
just fixed this - hxxp://code.google.com/p/yii/source/detail?r=2917
Note: the online documentation on the site will be updated only on the next Yii release… .so the change is not visible yet…
Thanks for the info, tips and fixing the error. I opened the ticket because i was advised to do so at the irc channel. Hope i didn’t cause to much trouble.
mdomba
(Maurizio Domba Cerin)
January 28, 2011, 7:03am
7
Not at all… that’s the right way to report typos and errors…