# |
Aug 9th 2008, 17:34 |
jezek |
no |
# |
Aug 9th 2008, 17:33 |
jaredhoyt |
np |
# |
Aug 9th 2008, 17:32 |
primeminister_ |
jaredhoyt: thnx! |
# |
Aug 9th 2008, 17:32 |
Matt1 |
jezek: you are calling it from a controller, right ? |
# |
Aug 9th 2008, 17:32 |
jaredhoyt |
right |
# |
Aug 9th 2008, 17:32 |
primeminister_ |
jaredhoyt: and then do a save without validation |
# |
Aug 9th 2008, 17:32 |
primeminister_ |
jaredhoyt: ah of course |
# |
Aug 9th 2008, 17:31 |
jezek |
so i have to load the model somewhere else? |
# |
Aug 9th 2008, 17:31 |
jaredhoyt |
if you're validating both models at the same time, it would just be something like $this->Modelx->set($this->data); $this->Modely->set($this->data); if($this->Modelx->validates() andand $this->Modely->validates()) { } |
# |
Aug 9th 2008, 17:31 |
primeminister_ |
jaredhoyt: yeah |
# |
Aug 9th 2008, 17:31 |
jaredhoyt |
primeminister: you're going to have to validate Modely the same way you do Modelx |
# |
Aug 9th 2008, 17:29 |
kjell |
Hi all! I am wondering what would be the graceful/proper way to disable a rss feed besides just sending the reader-request to dead end. Some subscribers probably won't recognize. Any advise on good practices? |
# |
Aug 9th 2008, 17:29 |
Matt1 |
jezek: http://bin.cakephp.org/view/998335493 |
# |
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. |