Log message #3149649

# At Username Text
# Jan 30th 2014, 08:16 headhoncho you made 1 tiny mistake
# Jan 30th 2014, 08:16 anonymous0921 you rock!!
# Jan 30th 2014, 08:16 anonymous0921 dude
# Jan 30th 2014, 08:16 anonymous0921 yessss
# Jan 30th 2014, 08:15 headhoncho does it work?
# Jan 30th 2014, 08:14 headhoncho check that
# Jan 30th 2014, 08:14 headhoncho http://bin.cakephp.org/view/198906874
# Jan 30th 2014, 08:12 headhoncho let me see again
# Jan 30th 2014, 08:12 anonymous0921 combined with line 26 thats not working..
# Jan 30th 2014, 08:12 anonymous0921 its the <?php endif; ?> line
# Jan 30th 2014, 08:11 anonymous0921 nops still same stuff
# Jan 30th 2014, 08:11 headhoncho that*
# Jan 30th 2014, 08:11 headhoncho add the chnages rchavik and others pointed out before running tha
# Jan 30th 2014, 08:09 headhoncho try that buddy
# Jan 30th 2014, 08:09 headhoncho http://bin.cakephp.org/view/236530668
# Jan 30th 2014, 08:09 anonymous0921 most likely thats were the issue is
# Jan 30th 2014, 08:09 anonymous0921 yes, you are right...
# Jan 30th 2014, 08:09 anonymous0921 is it...
# Jan 30th 2014, 08:09 rchavik your line 26 is fucked..
# Jan 30th 2014, 08:08 anonymous0921 end its ending a if statement
# Jan 30th 2014, 08:08 anonymous0921 im sorry, the line that gives an error back is: <?php endif; ?>
# Jan 30th 2014, 08:08 jorgec anonymous0921: php statement
# Jan 30th 2014, 08:06 headhoncho why not use regular php?
# Jan 30th 2014, 08:06 anonymous0921 its used for a small loop so that a user cant edit or delete other users...
# Jan 30th 2014, 08:05 anonymous0921 is <?php endforeach; ?> an old cake 1.3 statement, or can it still be used in cake 2.4 ?
# Jan 30th 2014, 08:04 anonymous0921 i've pasted the file in http://bin.cakephp.org/view/198906874
# Jan 30th 2014, 08:04 anonymous0921 hey guys, my cake seems to have trouble with the following statement: <?php endforeach; ?>
# Jan 30th 2014, 07:59 headhoncho very accurate
# Jan 30th 2014, 07:59 headhoncho lmao arnis
# Jan 30th 2014, 07:53 arnis vikky: btw, always start your question with error not "it's not working" otherwise it looks like this: https://pbs.twimg.com/media/BevU9cfCMAAr1ep.jpg
# Jan 30th 2014, 07:51 vikky arnis: i am trying this code
# Jan 30th 2014, 07:51 vikky yeah
# Jan 30th 2014, 07:51 arnis vikky: did ya got it?
# Jan 30th 2014, 07:51 arnis anyways, if fetching only one field, maybe a better way to use $this->Model->field('name')
# Jan 30th 2014, 07:50 arnis wellm, he got the idea, I hope.
# Jan 30th 2014, 07:50 jorgec arnis: username
# Jan 30th 2014, 07:49 arnis so you must use $user['User']['id'] for example
# Jan 30th 2014, 07:49 arnis $this->User->find('first',array('fields'=>'username')), <- this returns an array
# Jan 30th 2014, 07:49 arnis vikky: you are echoing array
# Jan 30th 2014, 07:48 jorgec vikky: use debug
# Jan 30th 2014, 07:48 arnis also, first check if you model methods return any data