Re: 1.2 is-dir Error

2008-01-25 Thread ERic ZoU
Anyone? On Jan 24, 9:33 am, ERic ZoU <[EMAIL PROTECTED]> wrote: > Hi, everyone, > > I update my 1.19 to 1.2. There are errors occur below. What happened? > Is the error from my Host? > > Warning: is_dir() [function.is-dir]: open_basedir restriction in > effect. Fil

Cake 1.2 open_basedir ERROR

2008-01-25 Thread ERic ZoU
Hi, When I update my 1.19 to 1.2 beta, I saw these below: "open_basedir restriction in effect" What's going on? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send emai

1.2 is-dir Error

2008-01-24 Thread ERic ZoU
Hi, everyone, I update my 1.19 to 1.2. There are errors occur below. What happened? Is the error from my Host? Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/share/pear/cake/libs/model) is not within the allowed path(s): (/webhosting/katiezhou) in /webhosting/

Questions about $ajax->observerField & Cookies in 1.12

2007-02-05 Thread ERic ZoU
Hi, every bakers. I am using Cake for a while already. Now, I wanna make a ajax function to check username is exist or not when they wanna sign-up. So, I add following lines in my register.thtml: input('User/email', array('size' => '20','id'=>'UserEmail'))?> observeField('UserEmail', arr

Re: dateTimeOptionTag Saving Error in Cake 1.1.10

2007-01-07 Thread ERic ZoU
It is works. BUT, how come? Why should add this before saving? --~--~-~--~~~---~--~~ 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

dateTimeOptionTag Saving Error in Cake 1.1.10

2007-01-07 Thread ERic ZoU
Hi, everyone, As the title, I cant save the $dateTimeOptionTag for my edit function. In my add fuction, it works great. I can add it and save it into mysql. When I use edit, I can retrive the data. BUT, when I try to save it, I cant save the dateTime only. The rest all works great. I set core

Problems about Ajax Star(voting) function. Help!

2007-01-03 Thread ERic ZoU
I have the Code below. ---star.thtml- link('1','/stars/update/1',array('title'=>'one star','class'=>'one-stars','update' => array('first', 'second')))?> ... ... link('5','/stars/update/5',array('title'=>'five stars','class'=>'five-

How to get the SUM for this array? A shopping-chart

2006-12-29 Thread ERic ZoU
Hi, everyone, I am doing a shopping-chart. And I have users,goods, and users_goods. There are three tables. I can add and delete from the app. I create Users HABTM Goods. Now, I have the array when I check one user's shopping-chart. I get the array: Array ( [0] => Array (

Cake Development: 1.2.0.4206 Router Question

2006-12-26 Thread ERic ZoU
Hi, everyone, I just using Cake 1.2. Normally, in the stable version. We just need define a router like: $Route->connect('/', array('controller' => 'events','action' => 'index')); And then all the action related with events like view, edit will work perfectly. BUT in the 1.2, I also define a

Re: Update on translations.

2006-12-24 Thread ERic ZoU
Thanks Larry. The chinese version is working great. Either UTF-8 or zh_cn. They are all display correctly. Happy Baking! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: Update on translations.

2006-12-23 Thread ERic ZoU
There is an update for the UTF-8 version of chinese translation. http://cake-php.googlegroups.com/web/core_cn.po?gda=mGhuhUAVwNXi_7HLSeeNtp-vxh5uuIaurEuUWNzVBSNAuY3UwxVJVT3hrgKrn_IySc8la3L-i4RZeB3zLTIjCHeVPGfY For the Chinese (PRC) , the Encoding is not big5. It is GB2312. http://cake-php.g

Re: Translation help

2006-12-23 Thread ERic ZoU
I upload the simplified chinese version. http://cake-php.googlegroups.com/web/default_cn.pot?gda=hVRNVUQVwNXi_7HLSeeNtp-vxh5u1IZ0X1MmydGPyNbqvg18SxVJVT3hrgKrn_IySc8la3LpqZ0dUu1Der_RXnFhzun4PaL7CSlCrVPCyuUyW4rK6w&hl=en Happy Baking! Happy Christmas! --~--~-~--~~~-

Re: Does someone has example about cakephp !!

2006-12-21 Thread ERic ZoU
http://hi.baidu.com/xeboy Try to look through my blog. It will give u some simple examples. Hopes it will helps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: Ajax sortable list

2006-12-09 Thread ERic ZoU
http://groups.google.com/group/cake-php/browse_thread/thread/e921d173b7c41519/becb28c858e4d683?lnk=gst&q=sortable&rnum=3#becb28c858e4d683 Try this! I did it works with the post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: can I use generateList( ) get rather than Id?

2006-12-08 Thread ERic ZoU
I was trying to define var $displayField = ' name '; but it seems doesnt work. Let me try again. For the second one, i should create a js: changeSelect( ). Thanks. Try to suffer it.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: can I use generateList( ) get rather than Id?

2006-12-08 Thread ERic ZoU
Ok. thanks kind buddy in the irc , jacob and kalileo The first question's solution in already in the API. $this->set('list',$this->Fenlei->generateList(null, null, null, '{n}.Fenlei.name', '{n}.Fenlei.name')); BUT how is the second one ? --~--~-~--~~~---~--~~ Y

can I use generateList( ) get rather than Id?

2006-12-08 Thread ERic ZoU
Hi, everyone, I have such situation. I use generate( ) to get a model's list array like: Array { [0] => yellow [1] => red [2] => black } And then I use selectTag('Fenlei/lanmu_id', $lanmus,'', null, null, false);?> It works fine. It pass the id to the Fenlei/lanmu_id. But now I

i18n working with locale component, Help!

2006-12-07 Thread ERic ZoU
Hi, All, I am creating a website tht have 3 different lanuage version. And I try to use the Locale Package. It great. But, Create or edit this file /app/views/layouts/default.thtml, adding this line anywhere. renderElement('language', $params) ?> Now the user need only press a button to be ab

Re: Cant load prototype in my default.html .

2006-12-07 Thread ERic ZoU
Thanks Adrian. "s" Big "S" --~--~-~--~~~---~--~~ 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 P

Cant load prototype in my default.html .

2006-12-06 Thread ERic ZoU
Hi, All --In my default.thtml- charset('UTF-8')?> link('prototype')?> link('scriptaculous.js?load=effects')?> But Notice: Undefined variable: javacript in F:\Program Files\xampp\htdocs\zhuoyue\app\views\layouts\default.thtml on line 36 Fatal error: Call to a member func

Chinese Cake Blog For Beginner and Lovers!

2006-11-29 Thread ERic ZoU
Hi, everyone This is my blog about Cake in chinese. Hopes, it can give others basic information. It contains all the work I have done. http://hi.baidu.com/xeboy/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: how to produc site?

2006-11-29 Thread ERic ZoU
What is your cakephp in the address? At that potision, it should be your controller. --~--~-~--~~~---~--~~ 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

Re: Products HABTM Products

2006-11-28 Thread ERic ZoU
Seems the code is right. What is your products table? It should have: id name related_id... .. Hopes it helps! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: How Can I make my phpmailer component in bakery works?

2006-11-27 Thread ERic ZoU
Thanks. There is A *SPACE* after the ?>. IT works! BUT, someone help me about the content inside. I sent the e-mail sucessful. BUT, it contains nothing. It should be the pro. about the template. I add some testing info. in the email_body_html.thtml and the email_body_plain.thtml BUT there is no