# |
Aug 9th 2008, 17:29 |
jezek |
there has to be an easier way |
# |
Aug 9th 2008, 17:28 |
jaredhoyt |
*kinda |
# |
Aug 9th 2008, 17:28 |
jaredhoyt |
geez, didn't realize so many people had problems using my wizard component... i never kept up with google groups or comments... kind feel like a jerk :/ |
# |
Aug 9th 2008, 17:27 |
jezek |
i try to and it says it's not defined |
# |
Aug 9th 2008, 17:26 |
Matt1 |
jezek: propably |
# |
Aug 9th 2008, 17:25 |
jezek |
can i put it in the startup function? |
# |
Aug 9th 2008, 17:25 |
Matt1 |
jezek: access it in one function and have the other access that function ? |
# |
Aug 9th 2008, 17:23 |
jezek |
and i dont want to put that classregistry line within every function. can i put it somewhere else so the model can be accessed from every function? |
# |
Aug 9th 2008, 17:22 |
jezek |
how do i access a model within a component |
# |
Aug 9th 2008, 17:19 |
pyite |
ho would one go about debugging this? the form is being generated by the form helper, in full |
# |
Aug 9th 2008, 17:18 |
pyite |
a checked checkbox does not result in any change in the database |
# |
Aug 9th 2008, 17:18 |
primeminister |
like in my form is mainly Modelx fields but one Modely.name |
# |
Aug 9th 2008, 17:18 |
pyite |
eh one last (lame) question... for some reason checkboxes do not save in my forms but all other elements do |
# |
Aug 9th 2008, 17:16 |
aaron50x |
ok, thx Matt1 |
# |
Aug 9th 2008, 17:16 |
Matt1 |
aaron50x: http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction |
# |
Aug 9th 2008, 17:16 |
primeminister |
If I have a model Modelx and in that form is a field of another Model (Modely). how can I validate that one and send and error msg |
# |
Aug 9th 2008, 17:15 |
aaron50x |
how? |
# |
Aug 9th 2008, 17:15 |
Matt1 |
aaron50x: maybe access an controller thru requesaction ? |
# |
Aug 9th 2008, 17:14 |
aaron50x |
something like $this->Option->find("currentPath = '$html->here'") |
# |
Aug 9th 2008, 17:14 |
aaron50x |
so I want to find the options for the currentPath |
# |
Aug 9th 2008, 17:14 |
aaron50x |
I need show some menu links, depending on the current path ($html->here) so I made a table named menus and a model Option |
# |
Aug 9th 2008, 17:13 |
Matt1 |
aaron50x: you dont. what would you need from there ? |
# |
Aug 9th 2008, 17:13 |
pyite |
thanks |
# |
Aug 9th 2008, 17:13 |
pyite |
would be crazy to see cakephp on an embedded processor, huh... |
# |
Aug 9th 2008, 17:12 |
pyite |
mark: ok, will look |
# |
Aug 9th 2008, 17:12 |
markstory |
but there is a bit of stuff out on making datasources if you look for it. |
# |
Aug 9th 2008, 17:12 |
primeminister |
hi guys |
# |
Aug 9th 2008, 17:12 |
markstory |
pyite: there isn't much documentation on creating new db drivers as they aren't made that often. |
# |
Aug 9th 2008, 17:12 |
pyite |
mark: ok |
# |
Aug 9th 2008, 17:11 |
pyite |
mark: i imagine others have had a reason to... |
# |
Aug 9th 2008, 17:11 |
markstory |
so look at dbo_mysql / dbo_source |
# |
Aug 9th 2008, 17:11 |
pyite |
mark: yeah, i think i still like that plan. anywhere i can read more about doing that? |
# |
Aug 9th 2008, 17:11 |
pyite |
to read/store/etc. kinda kills half the benefits of Cake's forms and relationships, though. :( |
# |
Aug 9th 2008, 17:11 |
markstory |
pyite: you can, just have to make a datasource for it. |
# |
Aug 9th 2008, 17:11 |
pyite |
just use my own commands |
# |
Aug 9th 2008, 17:11 |
aaron50x |
hi everyone, can anyone tell me how may I access a model from an element? I'm doing $this->Model, but it doesn't work |
# |
Aug 9th 2008, 17:10 |
pyite |
i might just not use a model then |
# |
Aug 9th 2008, 17:10 |
pyite |
poop |
# |
Aug 9th 2008, 17:10 |
pyite |
still wish i could just generate XML and use it as-if it was a DB... |
# |
Aug 9th 2008, 17:10 |
pyite |
mark: yeah, that was my "fallback" plan |
# |
Aug 9th 2008, 17:10 |
pyite |
mark: it is php w/ another http engine, yes. |