how cache handle sessions ?

2007-05-23 Thread szinspire

imagine, if we've a sql query like this:

select * from shops where city=???

??? is a result read from one of the session's city var, clients may
come from different cities, how cake's cache handle this issue?

if I set cache on, will the cache work? or will the cache be confused?

thanks so much for any helps.


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: how to check all checkboxes automatically after selecting one checkbox?

2007-05-23 Thread szinspire

hi Thomas, you may use the client side js for your purpose, see
http://jquery.com for details.


On 5月23日, 下午7时23分, Thomas [EMAIL PROTECTED] wrote:
 Hai there,

 In the website I am building, there is a form with seven checkboxes.
 One of those checkboxes is all.
 If someone checks the all checkbox, I want cake to check all the
 checkboxes automatically.

 How can I do this?

 My code looks like this (I work with the Smarty template engine, so
 every '{' is equal to '?php', and every '}' is equal to '?'):

 {$html-checkbox('Zoek/Artikel', '', '')} Artikelen
 {$html-checkbox('Zoek/Column', '', '')} Columns
 {$html-checkbox('Zoek/Nieuws', '', '')} Nieuws
 {$html-checkbox('Zoek/QuestionAndAnswer', '', '')} Question amp;
 Answer
 {$html-checkbox('Zoek/Dir', '', '')} Bedrijven
 {$html-checkbox('Zoek/CommunityMembers', '', '')} Community Members
 {$html-checkbox('Zoek/Poll', '', '')} Polls
 {$html-checkbox('Zoek/All', '', '')} All

 Thanks!


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: how to check all checkboxes automatically after selecting one checkbox?

2007-05-23 Thread szinspire

hi Thomas, you may use the client side js for your purpose, see
http://jquery.com for details.


On 5月23日, 下午7时23分, Thomas [EMAIL PROTECTED] wrote:
 Hai there,

 In the website I am building, there is a form with seven checkboxes.
 One of those checkboxes is all.
 If someone checks the all checkbox, I want cake to check all the
 checkboxes automatically.

 How can I do this?

 My code looks like this (I work with the Smarty template engine, so
 every '{' is equal to '?php', and every '}' is equal to '?'):

 {$html-checkbox('Zoek/Artikel', '', '')} Artikelen
 {$html-checkbox('Zoek/Column', '', '')} Columns
 {$html-checkbox('Zoek/Nieuws', '', '')} Nieuws
 {$html-checkbox('Zoek/QuestionAndAnswer', '', '')} Question amp;
 Answer
 {$html-checkbox('Zoek/Dir', '', '')} Bedrijven
 {$html-checkbox('Zoek/CommunityMembers', '', '')} Community Members
 {$html-checkbox('Zoek/Poll', '', '')} Polls
 {$html-checkbox('Zoek/All', '', '')} All

 Thanks!


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: how to check all checkboxes automatically after selecting one checkbox?

2007-05-23 Thread szinspire

hi Thomas, you may use the client side js for your purpose, see
http://jquery.com for details.


On 5月23日, 下午7时23分, Thomas [EMAIL PROTECTED] wrote:
 Hai there,

 In the website I am building, there is a form with seven checkboxes.
 One of those checkboxes is all.
 If someone checks the all checkbox, I want cake to check all the
 checkboxes automatically.

 How can I do this?

 My code looks like this (I work with the Smarty template engine, so
 every '{' is equal to '?php', and every '}' is equal to '?'):

 {$html-checkbox('Zoek/Artikel', '', '')} Artikelen
 {$html-checkbox('Zoek/Column', '', '')} Columns
 {$html-checkbox('Zoek/Nieuws', '', '')} Nieuws
 {$html-checkbox('Zoek/QuestionAndAnswer', '', '')} Question amp;
 Answer
 {$html-checkbox('Zoek/Dir', '', '')} Bedrijven
 {$html-checkbox('Zoek/CommunityMembers', '', '')} Community Members
 {$html-checkbox('Zoek/Poll', '', '')} Polls
 {$html-checkbox('Zoek/All', '', '')} All

 Thanks!


--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---