Re: using jquery and json on cakephp

2008-04-16 Thread Freshow
I checked it again ,but the problem is always, I test it and find that when call ./post/add.json , the function in post/json/add.ctp not work for me, it means ./post/add.json not associate with ./post/json/ add.ctp , right? On 4月17日, 上午3时41分, krusty999 <[EMAIL PROTECTED]> wrote: > You must set

How to define a global function in bootstap.php?

2008-04-15 Thread Freshow
how to define a global function for all controllers in ./app/confing/ bootstap.php ,and how to inplement it in controller ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: using jquery and json on cakephp

2008-04-13 Thread Freshow
It's useful,but if I let 'post/message.ctp' output nothing, I cannot get anything by '/post/message.json', what's the problem On 2月17日, 下午1时50分, bingo <[EMAIL PROTECTED]> wrote: > Here are the things that I did to get my jquery, json, and ajax > working > > 1. I included this line in app/config/

Re: Session be losted when I use redirect function

2008-04-11 Thread Freshow
?? can you description it clearly... On 4月11日, 下午4时58分, vinacake <[EMAIL PROTECTED]> wrote: > send code of addcontroller and default controller. > > On Apr 11, 9:51 am, Freshow <[EMAIL PROTECTED]> wrote: > > > in my AddController ,i use: $this ->

Session be losted when I use redirect function

2008-04-10 Thread Freshow
in my AddController ,i use: $this -> Session -> write('id','1001');... and I can read the value of id by :..$session -> read('id');.. but ,if I add this into AddController, I cannot get the value of id: .. $this -> Session -> write('id','1001'); $this -> redirect('/'); ..

Re: How can I user jQuery insted of prototype?

2008-04-10 Thread Freshow
Thanks for all replay , I use it directly by reference jquery js library in my layout On 4月3日, 上午11时21分, dyh1919 <[EMAIL PROTECTED]> wrote: > I love jQuery more than prototype,but,what i should do before i use it > in CakePHP? --~--~-~--~~~---~--~~ You received th