Page 55 of 211,275, showing 20 records out of 4,225,500 total, starting on record 1,081, ending on 1,100
# | Username | Text | |
---|---|---|---|
# | Aug 6th 2008, 22:06 | nymacro | Sorry, let me clarify; I have an element which renders a post, and I want to use it both for post view, and for topic viewing all posts |
# | Aug 6th 2008, 22:06 | nymacro | So I want to reuse the one element for both controllers/views |
# | Aug 6th 2008, 22:07 | nymacro | I can't use the same template unless I manually modify the representation |
# | Aug 6th 2008, 22:08 | cobol | code? |
# | Aug 6th 2008, 22:10 | nymacro | http://bin.cakephp.org/view/432638033 |
# | Aug 6th 2008, 22:10 | nymacro | that is the views |
# | Aug 6th 2008, 22:10 | nymacro | oh, forgot to put in the elemtn |
# | Aug 6th 2008, 22:10 | nymacro | *element |
# | Aug 6th 2008, 22:11 | nymacro | post element: http://bin.cakephp.org/view/65675558 |
# | Aug 6th 2008, 22:11 | nymacro | basically, from one place, i use $post['id'], and another it is $post['Post']['id'] |
# | Aug 6th 2008, 22:11 | nymacro | Just wondering if there is a way to make it keep the same form |
# | Aug 6th 2008, 22:12 | cobol | really only with a custom query, from what i know |
# | Aug 6th 2008, 22:12 | cobol | the nesting behavior is explicit to support the automatic relationships |
# | Aug 6th 2008, 22:12 | cobol | sorry, it took me a while to get your problem |
# | Aug 6th 2008, 22:12 | nymacro | no worries |
# | Aug 6th 2008, 22:12 | cobol | i'd just run checks on the data array |
# | Aug 6th 2008, 22:12 | cobol | if it has sub-children, change behavior, or vice versa |
# | Aug 6th 2008, 22:13 | nymacro | yeah |
# | Aug 6th 2008, 22:13 | nymacro | Was just wondering if there were a better way |
# | Aug 6th 2008, 22:13 | nymacro | (something which would make it consistently $array['Post'][index]['Post]['id']) |