Why I recieved a request /controller/action/favicon.ico?

2007-07-13 Thread hi and hello


  And the cakephp give me a url such as metioned above at a
request,why?
  Is there something configured not right?


--~--~-~--~~~---~--~~
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 set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello


I am using sqlserver.

AD7six 写道:
> On Jul 12, 9:05 am, hi and hello <[EMAIL PROTECTED]> wrote:
> >I want to fetch data from database as UTF-8 while the data stored
> > in the database as another encodig,
>
> Why do you want to store data in a different encoding from what you
> want to use it as?
>
> If everything is UTF8, in 1.2 you can add 'encoding' => 'UTF8' to your
> db config file, for 1.1 google "set names cakephp" for various
> permutations of achieving the same result.
>
> BUT none of that will help if you are mixing things up.
>
> hth,
>
> AD


--~--~-~--~~~---~--~~
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 set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello


Ha, just express I have no other choice.
And can I give an aragument to the cakephp to build a connection whice
return the data encoded as I expect?


On Jul 12, 3:48 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Jul 12, 9:43 am, hi and hello <[EMAIL PROTECTED]> wrote:
>
> >   It is beacause I have to adjust an old database whose data encoding
> > is not utf-8...
>
> so convert the database to the encoding you want to use... or read in
> the encoding of the database and then convert the strings in your
> app...
>
> What is the intended meaning of three dots...


--~--~-~--~~~---~--~~
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 set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello


  It is beacause I have to adjust an old database whose data encoding
is not utf-8...

On Jul 12, 3:17 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Jul 12, 9:05 am, hi and hello <[EMAIL PROTECTED]> wrote:
>
> >I want to fetch data from database as UTF-8 while the data stored
> > in the database as another encodig,
>
> Why do you want to store data in a different encoding from what you
> want to use it as?
>
> If everything is UTF8, in 1.2 you can add 'encoding' => 'UTF8' to your
> db config file, for 1.1 google "set names cakephp" for various
> permutations of achieving the same result.
>
> BUT none of that will help if you are mixing things up.
>
> hth,
>
> AD


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to set the database connection's character encoding in cakephp?

2007-07-12 Thread hi and hello


   I want to fetch data from database as UTF-8 while the data stored
in the database as another encodig, so how to configure the cakephp
for right encoding?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ajax request with firefox and cakephp

2007-07-11 Thread hi and hello


  In my application, I need to use ajax to GET a page generated by
cakephp, but when use ajax and firefox get the same url twice, I found
the 2nd sometimes need more than 10s waiting,so I debug the cakephp
and locate 'CakeSession::construct()' in /cake/libs/session.php ,it
called session_start and consumed the time.
 This happens when a second GET request to a url in the same session
with ajax and firefox.
 Can some one explain this?


--~--~-~--~~~---~--~~
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: About cakephp's performance

2007-07-10 Thread hi and hello

I had a test about this and get a strange result.
The browser I used are IE6 and Firefox2.0. At core.php the debug level
is set 0.
I add some code to the file "/cake/libs/controller/component.php"
about the "$this->__controller->{$component} =& new
$componentCn($param);", and print the component's name and the time
expended.
   So when Visit with IE6 it worked as we expect but when using
firefox I found it sometimes waste 6~10s as create a component named
'session', so I do not known how to explain this...


On 7月10日, 下午10时43分, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/10/07, hi and hello <[EMAIL PROTECTED]> wrote:
>
>
>
> >   Every time when the user wisite a url like /controller/action/, and
> > the cakephp will load the models  and components declared in this
> > controller, which might be improvident because not every visit need
> > to loac the heavy models and components class.
> >  For example, the url /blog/create/ ,when GET, I just want to display
> > a page for the user to create a blog.
> >  So then what to do? config for every action's GET and POST? or code
> > carefully to avoid this?
> >  How to do there is better?
>
> In production mode (debug set to 0) CakePHP can cache a lot of
> information for you.  Worry about performance when it actually becomes
> an issue for your application.  You might be surprised at how well
> CakePHP can peform.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



About cakephp's performance

2007-07-10 Thread hi and hello


  Every time when the user wisite a url like /controller/action/, and
the cakephp will load the models  and components declared in this
controller, which might be improvident because not every visit need
to loac the heavy models and components class.
 For example, the url /blog/create/ ,when GET, I just want to display
a page for the user to create a blog.
 So then what to do? config for every action's GET and POST? or code
carefully to avoid this?
 How to do there is better?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Does cakephp support transaction now?

2007-07-08 Thread hi and hello


 In my application I sometimes have more than one database actions in
an action, but when read the cakephp's docs I found little about this?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



My view cache do not work?

2007-07-04 Thread hi and hello


  At core.php I have:
define('CACHE_CHECK', true);

  At the controller file I have:
var $helpers = array('Html', 'Form', 'Javascript', 'Ajax',
'Cache' );
var $cacheAction = true;

 But when I visit the url to call the controller I found the view
cache doesnot work and in the app/tmp/cache/views directory there is
nothing.

   Is something wrong?


--~--~-~--~~~---~--~~
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 can I get the version of cakephp used in my project?

2007-07-04 Thread hi and hello
Yes, and I found it at cake/config/config.php.

On 7月4日, 下午2时31分, francky06l <[EMAIL PROTECTED]> wrote:
> Configure::version()
>
> On Jul 4, 7:48 am, hi and hello <[EMAIL PROTECTED]> wrote:
>
>
>
> >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
-~--~~~~--~~--~--~---



How can I get the version of cakephp used in my project?

2007-07-03 Thread hi and hello


   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 can I get the execution time of PHP code and DB access?

2007-06-28 Thread hi and hello

Thank you, but there still exists a problem .
Because I use AJAX in my website and return the data as JSON format,
so I can not let cakephp append the debug infor to the response. And I
want to read the the infor at a console or a log file?  Can I do it?

On 6月28日, 下午2时21分, Geoff Ford <[EMAIL PROTECTED]> wrote:
> For query times put DEBUG on level 2 in core.php A table will show at
> the bottom of the page with all your sql queries including a "Took
> (ms)" column.
> For total page execution - on DEBUG level 2 there is a comment
> rendered in the source with the execution time (right at the bottom)
>
> On Jun 28, 3:36 pm, hi and hello <[EMAIL PROTECTED]> wrote:
>
>
>
> >  I am using cakephp to build a website and at last I found the
> > performance is not very well.
> >  So I want to know if it exits a tool by which I can get the execution
> > time of PHP code and DB access?
> > Or how can I write the tool ?
> >thanks very much!!!- 隐藏被引用文字 -
>
> - 显示引用的文字 -


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How can I get the execution time of PHP code and DB access?

2007-06-27 Thread hi and hello


 I am using cakephp to build a website and at last I found the
performance is not very well.
 So I want to know if it exits a tool by which I can get the execution
time of PHP code and DB access?
Or how can I write the tool ?
   thanks very much!!!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---