# |
Aug 8th 2008, 22:41 |
markstory |
M4ngoB00M: and the only field that is cauing the issue is streetaddress1? |
# |
Aug 8th 2008, 22:40 |
markstory |
make an action on a controller or a whole new controller and change the route. |
# |
Aug 8th 2008, 22:40 |
M4ngoB00M |
here it is http://bin.cakephp.org/view/1021569616 not much to it |
# |
Aug 8th 2008, 22:40 |
djspark |
$this->BlogPost->find('all',array('order'=>'BlogPosts.created')) |
# |
Aug 8th 2008, 22:40 |
djspark |
is this valid with cakephp 1.2 ? |
# |
Aug 8th 2008, 22:40 |
markstory |
and just don't use home.ctp. |
# |
Aug 8th 2008, 22:40 |
markstory |
freebox: make an element. find('all') on categories model? |
# |
Aug 8th 2008, 22:39 |
freebox |
markstory: you know? |
# |
Aug 8th 2008, 22:38 |
markstory |
then I can see the whole model :) |
# |
Aug 8th 2008, 22:38 |
markstory |
then paste the url back here. |
# |
Aug 8th 2008, 22:38 |
M4ngoB00M |
k |
# |
Aug 8th 2008, 22:38 |
markstory |
copy and paste your model. use the link above. |
# |
Aug 8th 2008, 22:37 |
M4ngoB00M |
bin my model? I dont understand? |
# |
Aug 8th 2008, 22:37 |
freebox |
i need to show all categories in home.ctp |
# |
Aug 8th 2008, 22:36 |
freebox |
what is the best to do? an element? |
# |
Aug 8th 2008, 22:35 |
freebox |
I have an category controller.. then i need to show all categories in the view |
# |
Aug 8th 2008, 22:35 |
freebox |
Hello =) |
# |
Aug 8th 2008, 22:35 |
markstory |
actually just bin your model. |
# |
Aug 8th 2008, 22:35 |
markstory |
=> 'alphanumeric') |
# |
Aug 8th 2008, 22:35 |
markstory |
streetaddress => array('rule' |
# |
Aug 8th 2008, 22:32 |
M4ngoB00M |
'streetaddress1' => array('alphanumeric'), |
# |
Aug 8th 2008, 22:32 |
M4ngoB00M |
the element looks like this: |
# |
Aug 8th 2008, 22:32 |
M4ngoB00M |
commented out the vlidation array elemnt and it works fine |
# |
Aug 8th 2008, 22:31 |
M4ngoB00M |
created the validate arry fine. In it are several field to be validated - however in the scaffolded view to create a new Address, I was getting a validation error "this field cannot be left blank." Fine, but it WASNT left blank |
# |
Aug 8th 2008, 22:30 |
M4ngoB00M |
*Address |
# |
Aug 8th 2008, 22:30 |
M4ngoB00M |
created the Adress class - ok |
# |
Aug 8th 2008, 22:29 |
M4ngoB00M |
ok heres the problem - baked some classes... for a single table. "adresses" |
# |
Aug 8th 2008, 22:28 |
M4ngoB00M |
har har har |
# |
Aug 8th 2008, 22:23 |
markstory |
M4ngoB00M: sure but I need it back. |
# |
Aug 8th 2008, 22:20 |
M4ngoB00M |
can anyone give me a quick hand with validation? |
# |
Aug 8th 2008, 22:17 |
djspark |
markstory, thanks, my search wasn't finding it for some reason, got it now :-) |
# |
Aug 8th 2008, 22:17 |
markstory |
djspark: basics.php |
# |
Aug 8th 2008, 22:12 |
M4ngoB00M |
zzzz |
# |
Aug 8th 2008, 22:11 |
M4ngoB00M |
anyone working? |
# |
Aug 8th 2008, 22:10 |
M4ngoB00M |
hello |
# |
Aug 8th 2008, 22:09 |
djspark |
stupid question... where is pr() defined? |
# |
Aug 8th 2008, 22:04 |
Telik |
np |
# |
Aug 8th 2008, 22:04 |
detonatR |
ty |
# |
Aug 8th 2008, 22:04 |
detonatR |
cool |
# |
Aug 8th 2008, 22:03 |
Telik |
easy :) |
# |
Aug 8th 2008, 22:03 |
Telik |
then in the element do <?php echo $quoteVar; ?> |