# |
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. |
# |
Aug 9th 2008, 17:10 |
markstory |
sqlite? |
# |
Aug 9th 2008, 17:10 |
pyite |
Matt: I would too :-) if i didn't have the limitation of not having enough room to have a mysql or other instance running |
# |
Aug 9th 2008, 17:10 |
markstory |
and your using php / apache? |
# |
Aug 9th 2008, 17:09 |
pyite |
the key is that the software must remain relatively light as it is going onto an embedded processor chip in a small device (256MB memory) |
# |
Aug 9th 2008, 17:09 |
Matt1 |
pyite: I would agree with markstory |
# |
Aug 9th 2008, 17:09 |
pyite |
Matt: I want others to be able to use my softtware to make their own programs, so they should not need to have any knowledge of the changes i've made to the db layer theoretically |
# |
Aug 9th 2008, 17:09 |
markstory |
probably better and easier to have a db table, that can be transformed into xml if need be. |
# |
Aug 9th 2008, 17:09 |
pyite |
Matt: i am using Cake to create a set of libraries/APIs that interface with a program that stores it's configs in XML. |