Monday, November 2, 2009

Helper or Model Function?

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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: