# |
Aug 9th 2008, 11:24 |
lhy |
sdf |
# |
Aug 9th 2008, 11:24 |
AD7six |
freebox urls are one thing and controller/code structure is another |
# |
Aug 9th 2008, 11:23 |
freebox |
then when i click in "foo" i go to /categories/view/foo and i need to show all products from this category |
# |
Aug 9th 2008, 11:23 |
AD7six |
freebox - rephrase into a question |
# |
Aug 9th 2008, 11:23 |
B00mgo_M4N |
i bet he means "a space" |
# |
Aug 9th 2008, 11:23 |
AD7six |
ilove_php: what do you mean "a space" |
# |
Aug 9th 2008, 11:22 |
freebox |
AD7six: yes, but i have an menu categories |
# |
Aug 9th 2008, 11:21 |
ilove_php |
question: how can i remove the label on $form->input (it always prints a space before the inputbox) |
# |
Aug 9th 2008, 11:21 |
AD7six |
freebox that sounds like a product index action |
# |
Aug 9th 2008, 11:20 |
freebox |
i want to show all product from foo category |
# |
Aug 9th 2008, 11:20 |
freebox |
because when i acces /categories/view/foo |
# |
Aug 9th 2008, 11:20 |
freebox |
i need to do something like this in my categories controller: $piadas = $this->Categoria->Product->FindBySlug("Category" $slug) |
# |
Aug 9th 2008, 11:19 |
freebox |
i'm using slugs |
# |
Aug 9th 2008, 11:17 |
B00mgo_M4N |
my cat's breath smells like cat food! |
# |
Aug 9th 2008, 11:11 |
AD7six |
hi M4ngoB00M |
# |
Aug 9th 2008, 11:11 |
AD7six |
and don't try and implement security with validation rules |
# |
Aug 9th 2008, 11:10 |
AD7six |
Anon323: see the whitelist in the save param, save only saves data on that object, not related objects and see the security component |
# |
Aug 9th 2008, 11:09 |
M4ngoB00M |
hello |
# |
Aug 9th 2008, 10:49 |
freebox |
cool |
# |
Aug 9th 2008, 10:49 |
freebox |
uhm |
# |
Aug 9th 2008, 10:48 |
kalileo |
freebox: assuming you have an association set up between them in the Models |
# |
Aug 9th 2008, 10:47 |
kalileo |
freebox: $data = $this->Category->Product->find... |
# |
Aug 9th 2008, 10:46 |
freebox |
what i need to do? |
# |
Aug 9th 2008, 10:45 |
freebox |
I need to access products from categories controller |
# |
Aug 9th 2008, 10:45 |
labanux |
/j #codeigniter |
# |
Aug 9th 2008, 10:38 |
medice |
I AM CAPTAIN PLANET |
# |
Aug 9th 2008, 10:27 |
B00mgo_M4N |
YES THIS EARTH |
# |
Aug 9th 2008, 10:21 |
kalileo |
I asked which earth? |
# |
Aug 9th 2008, 10:20 |
B00mgo_M4N |
i AM cakephp |
# |
Aug 9th 2008, 10:19 |
B00mgo_M4N |
yes! |
# |
Aug 9th 2008, 10:17 |
kalileo |
which earth? |
# |
Aug 9th 2008, 10:16 |
B00mgo_M4N |
i am the best cakephp guy on earth! |
# |
Aug 9th 2008, 10:16 |
B00mgo_M4N |
hello |
# |
Aug 9th 2008, 10:06 |
kalileo |
lol |
# |
Aug 9th 2008, 10:05 |
Anon323 |
err ... good idea. i was so fixated on validation rules. |
# |
Aug 9th 2008, 10:04 |
kalileo |
Anon323: how about a simple "if (!empty($yourfield)) go bananas;" in your controller before saving |
# |
Aug 9th 2008, 10:02 |
kalileo |
*field |
# |
Aug 9th 2008, 10:02 |
kalileo |
Anon323: if you put such a validation in your model validations it might stop you from ever entering data in that filed ;) |
# |
Aug 9th 2008, 10:00 |
Anon323 |
is it maxLength 0? |
# |
Aug 9th 2008, 10:00 |
Anon323 |
allowEmpty => true means the input can also be not-empty. |
# |
Aug 9th 2008, 10:00 |
Anon323 |
required => false means the input is optional (will be accepted if exists). |