# |
Aug 9th 2008, 11:59 |
AD7six |
ilove_php: TheBig gave you a suggestion on how to get rid of the label - what are you currently trying to do (think). |
# |
Aug 9th 2008, 11:58 |
AD7six |
ilove_php: you'd be better off doing echo $form->create(); echo $form->inputs(array('username', 'password')); .. imo. |
# |
Aug 9th 2008, 11:58 |
ilove_php |
AD7six: already done that but it stills print the label and the div |
# |
Aug 9th 2008, 11:58 |
lhy |
AD7six sorry typo... :) seems its working now |
# |
Aug 9th 2008, 11:58 |
ilove_php |
am new to cakephp thats why im still working my way familiarizing with the framework |
# |
Aug 9th 2008, 11:57 |
AD7six |
ilove_php: look at TheBig's suggestion and give it your best guess |
# |
Aug 9th 2008, 11:57 |
ilove_php |
AD7six i know i sound annoying asking these stupid questions, is there a way to remove that div on the inputbox? |
# |
Aug 9th 2008, 11:57 |
AD7six |
lhy: your test function does nothing - write has 2 parameters |
# |
Aug 9th 2008, 11:56 |
lhy |
AD7six just write something to the session.. I want to print it out in the view... but the view says no value (debug mode on 3) assigned for the var |
# |
Aug 9th 2008, 11:56 |
AD7six |
stop guessing |
# |
Aug 9th 2008, 11:56 |
AD7six |
ilove_php: look at the source |
# |
Aug 9th 2008, 11:55 |
ilove_php |
@AD7six = i already set my label value to false and it still gives me that freaking space lol. tried putting a space on my passwords label but i guess the $form class trims the label first, maybe andnbsp; will work gotta give it a try |
# |
Aug 9th 2008, 11:55 |
AD7six |
lhy: your test function doesn't do anything |
# |
Aug 9th 2008, 11:54 |
linked_ |
AD7six: ah, ok. thanks! |
# |
Aug 9th 2008, 11:54 |
AD7six |
linked_: no |
# |
Aug 9th 2008, 11:54 |
linked_ |
AD7six: i guess to summarize my question, do $this->model->relatedModel calls has the conditions defined models relationship definitions? |
# |
Aug 9th 2008, 11:53 |
AD7six |
TheBig: almost certainly that wont help because the question asked isn't the real problem. |
# |
Aug 9th 2008, 11:53 |
AD7six |
why don't you just us the form helper and modify your params to get the output you want - rather than the 1/2 and 1/2 solution you are currently doing. |
# |
Aug 9th 2008, 11:53 |
TheBig |
ilove_php, just write $form->input('field', array('label' => false)); |
# |
Aug 9th 2008, 11:52 |
AD7six |
password is a building block method input and inputs as the wrappers for everything. |
# |
Aug 9th 2008, 11:52 |
AD7six |
ilove_php: yes. and not surprising. |
# |
Aug 9th 2008, 11:52 |
ilove_php |
@AD7six - is there a way for $form->input so that it won't print a label for my username? noticed that a label only shows on $form->input, but not on other form methods |
# |
Aug 9th 2008, 11:51 |
ilove_php |
i looked at it a while ago and it prints out a label for my usrename |
# |
Aug 9th 2008, 11:50 |
AD7six |
ilove_php: have you looked at yuor html source |
# |
Aug 9th 2008, 11:50 |
linked_ |
now, in my controller, i need to have a list of instructors. so i'll do a $this->Schedule->Instructor->find('list', array('fields' => 'id', 'Instructor.first_name'); |
# |
Aug 9th 2008, 11:49 |
lhy |
AD7six http://bin.cakephp.org/view/1952953037 |
# |
Aug 9th 2008, 11:49 |
AD7six |
linked_: use Teacher in your find - on what model? |
# |
Aug 9th 2008, 11:48 |
lhy |
AD7six ok... seems that if I write something to the session object in index I can read it in the view. but once I set the write something in other action and redirect it index the value in session will be lost |
# |
Aug 9th 2008, 11:48 |
ilove_php |
@AD7six http://pastebin.com/m2aaaaeba here you go |
# |
Aug 9th 2008, 11:48 |
linked_ |
AD7six: ok, in my Schedules model I have this relationship http://pastebin.com/m36578333 |
# |
Aug 9th 2008, 11:48 |
ilove_php |
wait.. pasting to psatebin |
# |
Aug 9th 2008, 11:46 |
AD7six |
linked_: explain or show what you mean |
# |
Aug 9th 2008, 11:45 |
AD7six |
ilove_php: show something |
# |
Aug 9th 2008, 11:45 |
AD7six |
$this->Session is an object |
# |
Aug 9th 2008, 11:45 |
ilove_php |
@AD7six - is there anyway that i can get rid of that space? :) |
# |
Aug 9th 2008, 11:45 |
AD7six |
lhy: what is your paste suposed to show? |
# |
Aug 9th 2008, 11:44 |
lhy |
does $this->redirect have effect on the stuff you write to the session? |
# |
Aug 9th 2008, 11:43 |
linked_ |
whenever i use Teacher in my find, do i still need to add a condition (id=3)? |
# |
Aug 9th 2008, 11:43 |
freebox |
AD7six: you are not in a good day, i guess |
# |
Aug 9th 2008, 11:42 |
linked_ |
if i defined a relationship as Teachers, using Users model, with condition of id=3 |
# |
Aug 9th 2008, 11:42 |
AD7six |
freebox then you are beyond help ;) |