Based on the information you provided (not enough): One possible solution is to have a separate Element to create the link, when the database contains the specific record. The element will use requestAction to query the database for the specific record, and display/not display the link depending on the reply.
Turn on cache for the element, so that the requestAction is only used once in each session. Enjoy, John On Nov 2, 5:40 pm, dtirer <dti...@gmail.com> wrote: > So here's my scenario. On a particular page, I want to display a link. > However, I only want to display this link if a particular record > exists in the database. > > Firstly, do helpers have access to DB/Model info? > > If so, should I make a helper to check if the records exists in the > DB? > > Whats the best way to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---