Hi, You don't need to do much. create an appropriate controller/method... say a LogController with a link method
You would point your external links to something like: http://test.site/log/link?go=http://www.google.com/search?q=cakephp I prefer putting the redirection-url in a normal query (using ?) since cake will not try to parse it and make it into parameter-values. Mega-simple example controller: class LogController extends AppController { function link() { $link = $this->params['url']['go']; // do logging ... $this->redirect($link); } } On Jan 17, 2:10 am, 4hire007 <[EMAIL PROTECTED]> wrote: > Hello everyone, > I am starting off with cakephp, And so far I am just amazed what I > have done. Just wanna get some ideas regarding redirection. > Here is how i wanna do it. > [user clicks a link] -> [the click is recorded in a db] -> [user is > redirected to the page, ex: google.com] > so can any one help me with this. > Like may be give me a link to an article or a function/component that > i could use perhaps. > > So eagerly waiting.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
