I want to create a link in an email to be sent, so I need an absolute URL. What is the best way to go about this and how can Yii tell me the base URL of the application?
Works great, but maybe this should be made easier? Maybe add an argument to CHtml::link or something if it should be absolute? I believe CakePHP adopts this. Or at least put it all in one variable.
Also, how can I retrieve the ID of the last inserted row? It looks like Yii is supposed to automatically update the primarykey after an insert but it does not seem to be working.
I am simply calling $user->id in a view after an insert