# |
Sep 23rd 2011, 09:41 |
dakota |
odd, there's even a test case for it :/ |
# |
Sep 23rd 2011, 09:41 |
rchavik |
~tell rchavik about broken |
# |
Sep 23rd 2011, 09:40 |
rchavik |
dakota, okay.. i thought so, but it does not work |
# |
Sep 23rd 2011, 09:39 |
dakota |
https://github.com/cakephp/cakephp/blob/master/cake/tests/cases/libs/set.test.php#L655 |
# |
Sep 23rd 2011, 09:38 |
dakota |
'/User[email=]' |
# |
Sep 23rd 2011, 09:38 |
dakota |
rchavik: even simpler |
# |
Sep 23rd 2011, 09:37 |
dakota |
so you could probably use that? |
# |
Sep 23rd 2011, 09:36 |
dakota |
rchavik: it supports regex |
# |
Sep 23rd 2011, 09:36 |
rchavik |
eg, get all users who have no email |
# |
Sep 23rd 2011, 09:35 |
rchavik |
is there a way for Set::extract() to filter by empty fields |
# |
Sep 23rd 2011, 08:51 |
destinydriven |
ADmad, thank you |
# |
Sep 23rd 2011, 08:51 |
destinydriven |
dakota, thanks |
# |
Sep 23rd 2011, 08:51 |
destinydriven |
it works :D |
# |
Sep 23rd 2011, 08:47 |
destinydriven |
passedArgs still empty :( |
# |
Sep 23rd 2011, 08:44 |
destinydriven |
one sec |
# |
Sep 23rd 2011, 08:44 |
destinydriven |
ahh cool |
# |
Sep 23rd 2011, 08:44 |
dakota |
destinydriven: $this->controller->passedArgs |
# |
Sep 23rd 2011, 08:44 |
dakota |
destinydriven: oh yeah, passedArgs isn't a component param |
# |
Sep 23rd 2011, 08:43 |
destinydriven |
Undefined property: WizardComponent::$passedArgs |
# |
Sep 23rd 2011, 08:43 |
dakota |
~tell destinydriven about tias |
# |
Sep 23rd 2011, 08:41 |
destinydriven |
how bout this http://bin.cakephp.org/view/1066384500 |
# |
Sep 23rd 2011, 08:41 |
dakota |
destinydriven: that won't work |
# |
Sep 23rd 2011, 08:40 |
dakota |
ADmad: yeah, that would be better |
# |
Sep 23rd 2011, 08:39 |
ADmad |
$url + $this->passedArgs |
# |
Sep 23rd 2011, 08:39 |
destinydriven |
http://bin.cakephp.org/view/1066384500 |
# |
Sep 23rd 2011, 08:37 |
dakota |
much* |
# |
Sep 23rd 2011, 08:37 |
dakota |
shouldn't require must more than $url = array_merge($url, $this->params['passed]) |
# |
Sep 23rd 2011, 08:37 |
dakota |
the component has it's own redirect method, modify it there |
# |
Sep 23rd 2011, 08:28 |
destinydriven |
granted, how do I do that |
# |
Sep 23rd 2011, 08:27 |
dakota |
destinydriven: that gets run after the redirect. You'd need to modify the component to include the url params when it redirects |
# |
Sep 23rd 2011, 08:27 |
destinydriven |
yeah, but if I understand correctly . . using the callback _prepare[Action] . .. you handle your params n stuff |
# |
Sep 23rd 2011, 08:26 |
dakota |
destinydriven: the wizard component redirects you to the first step with zero regard for params |
# |
Sep 23rd 2011, 08:25 |
dakota |
destinydriven: actually that makes sense. |
# |
Sep 23rd 2011, 08:20 |
destinydriven |
its taking me to /processes/wizard/book but the vars aren't getting passed |
# |
Sep 23rd 2011, 08:19 |
destinydriven |
its not passing the params |
# |
Sep 23rd 2011, 08:18 |
dakota |
destinydriven: what doesn't the route do? |
# |
Sep 23rd 2011, 08:17 |
destinydriven |
hmm |
# |
Sep 23rd 2011, 08:14 |
dakota |
don't think so. looks fine to me |
# |
Sep 23rd 2011, 08:14 |
destinydriven |
dakota, cool. BUt before I try this one, is there something wrong with my route? |
# |
Sep 23rd 2011, 08:13 |
stabb_ |
i need to put it on github |
# |
Sep 23rd 2011, 08:13 |
dakota |
destinydriven: This version works well: https://github.com/infinitas/infinitas/blob/beta/core/libs/controllers/components/wizard.php |