Page 382 of 211,270, showing 20 records out of 4,225,391 total, starting on record 7,621, ending on 7,640
# | Username | Text | |
---|---|---|---|
# | Aug 9th 2008, 17:10 | pyite | i might just not use a model then |
# | 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:11 | pyite | just use my own commands |
# | Aug 9th 2008, 17:11 | markstory | pyite: you can, just have to make a datasource for it. |
# | 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 | pyite | mark: yeah, i think i still like that plan. anywhere i can read more about doing that? |
# | Aug 9th 2008, 17:11 | markstory | so look at dbo_mysql / dbo_source |
# | Aug 9th 2008, 17:11 | pyite | mark: i imagine others have had a reason to... |
# | Aug 9th 2008, 17:12 | pyite | mark: ok |
# | 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 | primeminister | hi guys |
# | 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 | pyite | mark: ok, will look |
# | Aug 9th 2008, 17:13 | pyite | would be crazy to see cakephp on an embedded processor, huh... |
# | Aug 9th 2008, 17:13 | pyite | thanks |
# | Aug 9th 2008, 17:13 | Matt1 | aaron50x: you dont. what would you need from there ? |
# | 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:14 | aaron50x | so I want to find the options for the currentPath |
# | Aug 9th 2008, 17:14 | aaron50x | something like $this->Option->find("currentPath = '$html->here'") |
# | Aug 9th 2008, 17:15 | Matt1 | aaron50x: maybe access an controller thru requesaction ? |