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
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
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
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
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',
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',
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
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
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]
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]
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.
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
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
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
14 matches
Mail list logo