Wednesday, September 19, 2012

DetailsViewHelper (sort of)

As i´m implementing a CRUD i was trying to make a Helper to make the rendering of a Details screen more easy.

The question is, If there is a FormHelper that i can use to help me render labels and fields, why does not exists a Helper to output simple (direct) data from a Model?

I ask this because as i was trying to implement a Helper like this, one of the things is to determine the Label (as in a form, but no <label> tag), and there is no isolated implementation to get this info, only on the FormHelper->label(). In my opinion the implementation to get the "text" of a label should go on other place (maybe on the Helper base class?) as this is a separated concept.

I´m wrong? There is other way to get this data?

Léo Willian Kölln

--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: