Re: about multiple select

2006-08-02 Thread Daniel King
Thanks. I've only checked the manual, and I fount that it seemed to be for some old edition of CakePHP. There is no description of selectTag, only an example in the Saving hasAndBelongsToMany. The code is:?php echo $html-selectTag('Tag/Tag', $tags, null, array('multiple' = 'multiple')) ? Is

about multiple select

2006-08-01 Thread Daniel King
PHP: ?php echo $html-selectTag('Tag/Tag', array(1,3,4), null, array('multiple' = 'multiple'));? Page Source: select name=data[Tag][Tag][] multiple=multiple id=TagTag option value= nbsp;/option option value=0 selected=selected1/option option value=1 3/option option value=2 4/option /select

I don't want to associations in every queries, how?

2006-07-31 Thread Daniel King
There are some associations in my app. But I don't need to use it every time. What should I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

How to execute right join queries in cake?

2006-07-25 Thread Daniel King
for example: SELECT A.*,count(case when B.id is NULL then NULL else 1 end) as num FROM B right join A on B.a_id=A.id group by A.id I know i can use $model-execute($sql). Is there any other ways, like left join can use $belongsTo? --~--~-~--~~~---~--~~ You

Re: How to stop ajax submition?

2006-07-21 Thread Daniel King
here's my code: form onsubmit=alert('hehe'); style=display:inline but no messagebox shown. the form was not really submiied. here's the submit button: ?php $options = array( 'url'='/news/add', 'update' ='newListBox',

Re: How to stop ajax submition?

2006-07-21 Thread Daniel King
Great! I found the solution by myself. Put the js codes for validation into $option['before'] instead of the form's attribute onsubmit can solve my problerm. Like this: ?php $options = array( 'url'='/news/add', 'update' ='newListBox',

Re: How to stop ajax submition?

2006-07-20 Thread Daniel King
I am sorry to say that this way doesn't works either. If I submit a form by using ajax, the form will not be really submitted. So the event submit will not be activated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: 有在中国的朋友吗?一起研究 CAKE

2006-07-05 Thread Daniel King
I think it will be very hot in July and August. But Beijing is not like some citys in the south of China, such as Wuhan, Nanchang. Most summer evenings and nights in Beijing is not too hot, even a little cool. --~--~-~--~~~---~--~~ You received this message

Re: 有在中国的朋友吗?一起研究 CAKE

2006-07-04 Thread Daniel King
me but i am a newbie. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]

Re: 有在中国的朋友吗?一起研究 CAKE

2006-07-04 Thread Daniel King
Yes. I am in Beijing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]

Questions on dealing with bad URLs.

2006-06-30 Thread Daniel King
If I set debug level to 0, error 404 shows if I input an error URL. Because there are no matching controllers or actions. Can we make it redirect to another URL(use default controller or action) instead of showing error 404? For example, /pages/badaction can be redirected to /pages/index.

How to refresh fields automatically?

2006-06-29 Thread Daniel King
I wan't to make some fields in the page refresh automatically after the page loads. I know how to use $ajax-link and $ajax-observeField. But I don't know how to implement it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Questions from a newbie

2006-06-28 Thread Daniel King
Hello, I am a newbie. I have some questions to ask. I read The Cake Blog Tutorial and knew how to build a simple application like this example. But I don't know how to build some complexier applications, such as an Article Manager. An Article Manager has these pages: Index Page, including list

Re: Questions from a newbie

2006-06-28 Thread Daniel King
And I have another question. All my views are included in a CakePHP's frame. Every view has a CakePHP's Logo and some links at the top and some little icons at the bottom. How can I remove it? --~--~-~--~~~---~--~~ You received this message because you are