# |
Sep 13th 2009, 09:57 |
mr_pinc |
that's the whole call |
# |
Sep 13th 2009, 09:57 |
mr_pinc |
$this->data = $this->Testimonial->read(null, $id); |
# |
Sep 13th 2009, 09:57 |
savant |
bin your action |
# |
Sep 13th 2009, 09:57 |
savant |
so then you aren't retrieving the records correctly |
# |
Sep 13th 2009, 09:57 |
mr_pinc |
yeah |
# |
Sep 13th 2009, 09:57 |
savant |
thats blank in debug_kit? |
# |
Sep 13th 2009, 09:56 |
mr_pinc |
'quote' when I retrieve record 16 the quote field populates fine, but when I get record 38 it is blank. It's just plain text in the database |
# |
Sep 13th 2009, 09:56 |
mr_pinc |
ok so my model is Testimonial and that has a field called ' |
# |
Sep 13th 2009, 09:55 |
savant |
make sure the array is exactly as it should be |
# |
Sep 13th 2009, 09:54 |
savant |
if that is empty or non-existent, well then we have issues |
# |
Sep 13th 2009, 09:54 |
mr_pinc |
yeah i do. |
# |
Sep 13th 2009, 09:54 |
savant |
one of them should be "this->data" |
# |
Sep 13th 2009, 09:54 |
savant |
you should be able to see the data available to you |
# |
Sep 13th 2009, 09:54 |
savant |
if the panel doesn't open, click it |
# |
Sep 13th 2009, 09:54 |
mr_pinc |
k |
# |
Sep 13th 2009, 09:54 |
savant |
okay now go to the right-most tab thing in the toolbar |
# |
Sep 13th 2009, 09:53 |
mr_pinc |
looks like it i see the tool bar. this plugin is sick |
# |
Sep 13th 2009, 09:53 |
savant |
and it works properly? |
# |
Sep 13th 2009, 09:52 |
mr_pinc |
ok installed |
# |
Sep 13th 2009, 09:50 |
savant |
http://thechaw.com/debug_kit/versions |
# |
Sep 13th 2009, 09:50 |
savant |
one sec |
# |
Sep 13th 2009, 09:50 |
mr_pinc |
there a way to get it without git, like in a zip? |
# |
Sep 13th 2009, 09:49 |
savant |
http://thechaw.com/debug_kit |
# |
Sep 13th 2009, 09:49 |
savant |
it's a plugin |
# |
Sep 13th 2009, 09:49 |
savant |
can you install it? |
# |
Sep 13th 2009, 09:49 |
mr_pinc |
i guess not |
# |
Sep 13th 2009, 09:48 |
savant |
mr_pinc: do you have debug_kit? |
# |
Sep 13th 2009, 09:48 |
mr_pinc |
But it's weird because it only happens with some records not all |
# |
Sep 13th 2009, 09:47 |
mr_pinc |
Hey guys I'm having a weird issue when I read a Models data and populate form info in my Edit view, for some records the form does not display the currently set data, even though I know the correct info has been entered into the view |
# |
Sep 13th 2009, 09:38 |
nini |
nice |
# |
Sep 13th 2009, 09:38 |
HardPhuck |
with unset |
# |
Sep 13th 2009, 09:38 |
HardPhuck |
doing two saves now |
# |
Sep 13th 2009, 09:38 |
HardPhuck |
nini, thanks got it working |
# |
Sep 13th 2009, 09:35 |
Miroslav_Vojtu |
ok thx :-D |
# |
Sep 13th 2009, 09:34 |
nini |
Miroslav_Vojtu: just try it and debug it, u will see then |
# |
Sep 13th 2009, 09:34 |
Miroslav_Vojtu |
normaly $this->Option->find..... ? |
# |
Sep 13th 2009, 09:33 |
Miroslav_Vojtu |
and how to acces hero to Option model?: |
# |
Sep 13th 2009, 09:33 |
nini |
Miroslav_Vojtu: Configure::write(); sets also arrays |
# |
Sep 13th 2009, 09:32 |
Miroslav_Vojtu |
I need to set it from DB.... i have options table and i need to preset (in appController beforeFilter() or somewhere on application start) them to def constants |
# |
Sep 13th 2009, 09:30 |
markstory |
or constants |
# |
Sep 13th 2009, 09:30 |
nini |
Miroslav_Vojtu: then read it with Configure::read('defColor'); |