Log message #115137

# At Username Text
# Aug 10th 2008, 09:36 pyite i don't see how $extensions = $extensions->find('all'.... and $data = $extensions->find('all"... is different?
# Aug 10th 2008, 09:36 pyite and it has some extended functionality?
# Aug 10th 2008, 09:35 pyite hmmm are you implying i use the $data variable provided by the controller, that's the issue?
# Aug 10th 2008, 09:35 adj very little sleep
# Aug 10th 2008, 09:35 adj heh. i've been caked out all weekend
# Aug 10th 2008, 09:35 kalileo $data = $extensions->find('all',...
# Aug 10th 2008, 09:35 kalileo as shown above
# Aug 10th 2008, 09:35 pyite is that fetchData()?
# Aug 10th 2008, 09:35 pyite so how do i capture the data result then, sorry for a newb question
# Aug 10th 2008, 09:35 kalileo how can it be used by the foreach in your code?
# Aug 10th 2008, 09:35 pyite it's usually done for me by the time i get to a view
# Aug 10th 2008, 09:34 pyite so i have a misunderstanding in how this works
# Aug 10th 2008, 09:34 pyite ahh
# Aug 10th 2008, 09:34 kalileo then you try to loop through the model object
# Aug 10th 2008, 09:34 pyite it's used in the foreach(), no?
# Aug 10th 2008, 09:34 kalileo your data result goes to nowhereland
# Aug 10th 2008, 09:34 pyite that doesn't capture the returned data?
# Aug 10th 2008, 09:34 kalileo $data = $extensions->find('all',...
# Aug 10th 2008, 09:34 pyite not sure what u mean...
# Aug 10th 2008, 09:33 kalileo return
# Aug 10th 2008, 09:33 kalileo well, you do not capture the data find might f\return
# Aug 10th 2008, 09:33 pyite when i var_dump the code i do have, there's no actual data retrieved in the resulting var
# Aug 10th 2008, 09:33 pyite maybe that's what i'm missing
# Aug 10th 2008, 09:32 pyite what does "fetchData" do? i see that elsewhere in another person's example, with this same scenario
# Aug 10th 2008, 09:31 pyite or should i be using ->data somewhere?
# Aug 10th 2008, 09:30 pyite maybe there is a lame syntatical error somewhere?
# Aug 10th 2008, 09:30 pyite for this method
# Aug 10th 2008, 09:30 pyite that's why i manually imported the model
# Aug 10th 2008, 09:30 pyite yes, that's what i mean
# Aug 10th 2008, 09:30 pyite that code results in "Fatal error: Cannot use string offset as an array in /var/www/html/cake/app/controllers/config_controller.php on line"
# Aug 10th 2008, 09:30 kalileo You mean their Models have no association?
# Aug 10th 2008, 09:29 pyite ConfigController is not related to ExtensionController
# Aug 10th 2008, 09:29 pyite http://bin.cakephp.org/view/2007385952
# Aug 10th 2008, 09:26 pyite i agree it should work
# Aug 10th 2008, 09:26 pyite it's simple code
# Aug 10th 2008, 09:26 pyite can i pastebin?
# Aug 10th 2008, 09:26 kalileo aeeay = array
# Aug 10th 2008, 09:26 pyite kalileo:i got an array but it seems like it's full of garbage basically..
# Aug 10th 2008, 09:26 pyite in order to do that, it needs to read data from ALL other models
# Aug 10th 2008, 09:25 pyite err sorry
# Aug 10th 2008, 09:25 kalileo pyite: if you do not get an aeeay as result of your find than you did something wrong