Re: Check for neew with ajax

2008-06-22 Thread simonb

Sound like an ideal candidate for reverse AJAX.

I have used JSON for a couple of projects. You need to just google for
JSON

On Jun 22, 2:18 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 That's a really good idea, but I have never done this. Can you tell me
 a bit more about the { move:[4, 1], to: [4, 3] } ? How do I use it?

 On Jun 22, 3:58 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:

  Why don't you poll for coordinates in JSON and update the board with 
  javascript?

  ie: advance the fifth pawn two positions:

  { move:[4, 1], to: [4, 3] }

   0 1 2
+---+-+
  0 |___|___|___
  1 | |  |
  2

  On Sat, Jun 21, 2008 at 9:09 PM, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:

   I made a chess game using Ajax. It updates the table every 5 seconds.
   The problem is that the HTML code for the table is huge and causes a
   lot of bandwidth. Now I am thinking of a new method: polling server
   for new moves in the game and update only if a move was done. But I
   can't imagine any easy way for doing this.
   What I want to do is: poll the server every 5 seconds and update
   contents of a div tag only if any move has been done. Any help will be
   appreciated.
   Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: Check for neew with ajax

2008-06-22 Thread [EMAIL PROTECTED]

Is reverse AJAX possible with CakePHP (prototype and script.aculo.us)?
I have been searching for some help on reverse AJAX for a week, but no
success, so I dropped this idea.

On Jun 22, 11:17 am, simonb [EMAIL PROTECTED] wrote:
 Sound like an ideal candidate for reverse AJAX.

 I have used JSON for a couple of projects. You need to just google for
 JSON

 On Jun 22, 2:18 am, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  That's a really good idea, but I have never done this. Can you tell me
  a bit more about the { move:[4, 1], to: [4, 3] } ? How do I use it?

  On Jun 22, 3:58 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:

   Why don't you poll for coordinates in JSON and update the board with 
   javascript?

   ie: advance the fifth pawn two positions:

   { move:[4, 1], to: [4, 3] }

        0     1     2
     +---+-+
   0 |___|___|___
   1 |     |      |
   2

   On Sat, Jun 21, 2008 at 9:09 PM, [EMAIL PROTECTED]

   [EMAIL PROTECTED] wrote:

I made a chess game using Ajax. It updates the table every 5 seconds.
The problem is that the HTML code for the table is huge and causes a
lot of bandwidth. Now I am thinking of a new method: polling server
for new moves in the game and update only if a move was done. But I
can't imagine any easy way for doing this.
What I want to do is: poll the server every 5 seconds and update
contents of a div tag only if any move has been done. Any help will be
appreciated.
Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: Check for neew with ajax

2008-06-22 Thread [EMAIL PROTECTED]

I found a tehnology called Xaja. What do you think of it and is there
any other libraries?

On Jun 22, 12:17 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Is reverse AJAX possible with CakePHP (prototype and script.aculo.us)?
 I have been searching for some help on reverse AJAX for a week, but no
 success, so I dropped this idea.

 On Jun 22, 11:17 am, simonb [EMAIL PROTECTED] wrote:

  Sound like an ideal candidate for reverse AJAX.

  I have used JSON for a couple of projects. You need to just google for
  JSON

  On Jun 22, 2:18 am, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:
   That's a really good idea, but I have never done this. Can you tell me
   a bit more about the { move:[4, 1], to: [4, 3] } ? How do I use it?

   On Jun 22, 3:58 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:

Why don't you poll for coordinates in JSON and update the board with 
javascript?

ie: advance the fifth pawn two positions:

{ move:[4, 1], to: [4, 3] }

     0     1     2
  +---+-+
0 |___|___|___
1 |     |      |
2

On Sat, Jun 21, 2008 at 9:09 PM, [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:

 I made a chess game using Ajax. It updates the table every 5 seconds.
 The problem is that the HTML code for the table is huge and causes a
 lot of bandwidth. Now I am thinking of a new method: polling server
 for new moves in the game and update only if a move was done. But I
 can't imagine any easy way for doing this.
 What I want to do is: poll the server every 5 seconds and update
 contents of a div tag only if any move has been done. Any help will be
 appreciated.
 Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: have any project source code using CakePHP

2008-06-22 Thread majna

http://cakeforge.org/scm/?group_id=64
- source of bakery  http://bakery.cakephp.org/



On Jun 21, 8:11 am, sumon [EMAIL PROTECTED] wrote:
 I m a beginner of cakephp. Now i need a prject which has completed
 using CakePHP. Specially I m working on e-mail and chat management web
 application. So if there have any source code (using CakePHP) plz send
 me the link to download.

 Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content-based ACL

2008-06-22 Thread Warringer

On Jun 20, 5:33 pm, leo [EMAIL PROTECTED] wrote:
  I've spent a lot of time studying the ACL+auth, but I don't know how
  to implement a such thing:

 Me too. Eventually, I gave it up as to much to learn and over
 complicated. I wrote my own solution using existing auth in about 25
 lines of code + 2 small tables that does everything I want, including
 access control down to view level. CRUD was just too vague for this
 application.

Care to share? I could use something like that in my project.

- Warringer

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



content auth

2008-06-22 Thread phobic

Hi there!

I want to secure my application.
Basicly i want the users to be able to create one article and add
content under it.

How would i restrict access to all other than their own article and
subitems?

Regards,
Bjarte

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content auth

2008-06-22 Thread Marcin Domanski

hey, are you so lazy to read the !first! (from top) topic on the group ?
thanks,

On Sun, Jun 22, 2008 at 4:03 AM, phobic [EMAIL PROTECTED] wrote:

 Hi there!

 I want to secure my application.
 Basicly i want the users to be able to create one article and add
 content under it.

 How would i restrict access to all other than their own article and
 subitems?

 Regards,
 Bjarte

 




-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



Getting cake application in a directory to work from root

2008-06-22 Thread Fahad

OK, i have created a cms using cake in 'cms' folder, and i can access
it from mysite.com/cms

i placed a htaccess file (in root) with this code to make the cms
folder work as if its placed in the root
=
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ cms/app/webroot/[L]
   RewriteRule(.*) cms/app/webroot/$1 [L]
/IfModule
=

its working fine too - but all the links produced by my cms (using
html-link) are still the same. they are all pointing to mysite.com/
cms/blah1/blah2/
i want it to be like this: mysite.com/blah1/blah2/ (cms should not be
there)

i have deleted all the cache files from tmp directory - its still the
same.
can anyone tell me how to set the root url of a cake application
manually?
this will solve my problem.

thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



cake perfomance

2008-06-22 Thread Voyager2K

when i use cake 1.1  i think it slow perfomnace is temporary.

Now i try cake 1.2 RC 1, simple code (look at the end post).  It was
terribly, time  1.8474 sec.
Round values after many refresh page is 2 sec.
My machine -  Celeron 2.4 Ghz, 521 RAM. WinXP.

I try xdebug, i see many time goes to App::import  App::__load
functions

class TestikController extends AppController
{
 var $name = 'Testik';

function index()
{
$items = $this-Testik-findAll();
$this-set('items',$items);
}
}

class Testik extends AppModel
{
var $name = 'Testik';
var $useTable = 'testik';
}

view:
?print_r($items);?

layout:  default.ctp


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content-based ACL

2008-06-22 Thread candesprojects

Yes, I'm interested too.

I also have problems to implement the ACL. I don't know why is so hard
to customize and quick use.

Tks.

On Jun 22, 1:44 pm, Warringer [EMAIL PROTECTED] wrote:
 On Jun 20, 5:33 pm, leo [EMAIL PROTECTED] wrote:

   I've spent a lot of time studying the ACL+auth, but I don't know how
   to implement a such thing:

  Me too. Eventually, I gave it up as to much to learn and over
  complicated. I wrote my own solution using existing auth in about 25
  lines of code + 2 small tables that does everything I want, including
  access control down to view level. CRUD was just too vague for this
  application.

 Care to share? I could use something like that in my project.

 - Warringer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



prob in image path

2008-06-22 Thread kaushik

i am new in cakephp. now i am facing great prob regarding images. i
have a image in webroot/imgs and want to access it from both from
frontend and admin. how it is possible if i used hard coded img tag in
cpt file?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: prob in image path

2008-06-22 Thread francky06l

I think it's webroot/img (not imgs), and I do not understand what
problem it could be with frontend or admin ..
You can use $html-image in you ctp ... The webroot/img is public as
far as I know ...


On Jun 22, 9:03 pm, kaushik [EMAIL PROTECTED] wrote:
 i am new in cakephp. now i am facing great prob regarding images. i
 have a image in webroot/imgs and want to access it from both from
 frontend and admin. how it is possible if i used hard coded img tag in
 cpt file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: cake perfomance

2008-06-22 Thread francky06l

Depends the conditions and your settings, are you having debug  0 ?
Also check the DB time.

On Jun 22, 8:50 pm, Voyager2K [EMAIL PROTECTED] wrote:
 when i use cake 1.1  i think it slow perfomnace is temporary.

 Now i try cake 1.2 RC 1, simple code (look at the end post).  It was
 terribly, time  1.8474 sec.
 Round values after many refresh page is 2 sec.
 My machine -  Celeron 2.4 Ghz, 521 RAM. WinXP.

 I try xdebug, i see many time goes to App::import  App::__load
 functions

 class TestikController extends AppController
 {
  var $name = 'Testik';

 function index()
 {
 $items = $this-Testik-findAll();
 $this-set('items',$items);
 }

 }

 class Testik extends AppModel
 {
 var $name = 'Testik';
 var $useTable = 'testik';

 }

 view:
 ?print_r($items);?

 layout:  default.ctp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content-based ACL

2008-06-22 Thread francky06l

You need to get your mind on ACL. There is a learning curve, but once
you get it, it becomes very clear and quick use ...
It's worth the learning time I think...
cheers

On Jun 22, 9:07 pm, candesprojects [EMAIL PROTECTED] wrote:
 Yes, I'm interested too.

 I also have problems to implement the ACL. I don't know why is so hard
 to customize and quick use.

 Tks.

 On Jun 22, 1:44 pm, Warringer [EMAIL PROTECTED] wrote:

  On Jun 20, 5:33 pm, leo [EMAIL PROTECTED] wrote:

I've spent a lot of time studying the ACL+auth, but I don't know how
to implement a such thing:

   Me too. Eventually, I gave it up as to much to learn and over
   complicated. I wrote my own solution using existing auth in about 25
   lines of code + 2 small tables that does everything I want, including
   access control down to view level. CRUD was just too vague for this
   application.

  Care to share? I could use something like that in my project.

  - Warringer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



Cake, my though about the missing bit

2008-06-22 Thread francky06l

In MVC I am first an M guy  Do not get me wrong, cake is great and
I can achieve whatever is needed. Concerning the M, the big missing
bit, and the Noobs (as I have been) always get stuck with this :

Why does it require more work to code a simple condition in an
hasMany / HABTM relation than in a belongsTo or hasOne ?

To me this is the real missing bit for cake. Because the hasMany
does not uses JOIN query but several queries, you are somehow twisting
around using bindModel/unbindModel, also with the great containable/
bindable behavior. Of course you can bindModel with a constraint on
the targeted hasMany, but still you will have to filter out.
Again do not get me wrong, it's possible to do it with cake, but maybe
not as simple as out of the box. I will not pretend I can make it,
it is complex and certainly have a lot of side effects and I am sure
that the cake's gurus knows about this better than any one else.

Was just my though about what I really wish in cake that is missing
= make a query just as easy in hasMany and HABTM as it's easy with
belongsTo .. and probably get the best Mvc framework :-)

Cheers, and congratulation for the 1.2 RC1
Franck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content-based ACL

2008-06-22 Thread aranworld

Being someone who has spent a good amount of time writing some how-tos
on the subject of ACL, I would be interested to know what part of it
you are having difficulties with?  I would be happy to write a
tutorial to fill in whatever missing gap there is in the existing
knowledge base.

http://aranworld.com/article/161/cakephp-acl-tutorial-what-is-it

Back to the original post.  Record level permissions are not something
that works out of the box with the ACL/Auth combination.

ACL used to be much more difficult to learn, because the syntax and
rules were not well documented yet.  But the official documentation on
ACL is pretty accurate now.  However, keep in mind that very recently
there was a bug in the Core that caused the ACL component to fail in a
MySQL 4.1 environment.  Otherwise, it has been quite stable and
relatively bugfree for the last 5 months or so.

-Aran



On Jun 22, 2:06 pm, francky06l [EMAIL PROTECTED] wrote:
 You need to get your mind on ACL. There is a learning curve, but once
 you get it, it becomes very clear and quick use ...
 It's worth the learning time I think...
 cheers

 On Jun 22, 9:07 pm, candesprojects [EMAIL PROTECTED] wrote:

  Yes, I'm interested too.

  I also have problems to implement the ACL. I don't know why is so hard
  to customize and quick use.

  Tks.

  On Jun 22, 1:44 pm, Warringer [EMAIL PROTECTED] wrote:

   On Jun 20, 5:33 pm, leo [EMAIL PROTECTED] wrote:

 I've spent a lot of time studying the ACL+auth, but I don't know how
 to implement a such thing:

Me too. Eventually, I gave it up as to much to learn and over
complicated. I wrote my own solution using existing auth in about 25
lines of code + 2 small tables that does everything I want, including
access control down to view level. CRUD was just too vague for this
application.

   Care to share? I could use something like that in my project.

   - Warringer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: content-based ACL

2008-06-22 Thread francky06l

To me there is a distinction to make between ACL and Auth. Auth is
using ACL (optional), but the ARO part of ACL can be anything, not
always a user...(ie: action, context.. etc...)..
You can use ACL without Auth, and ACL at record level (using the
model authorization) can control the record access ...


On Jun 23, 12:07 am, aranworld [EMAIL PROTECTED] wrote:
 Being someone who has spent a good amount of time writing some how-tos
 on the subject of ACL, I would be interested to know what part of it
 you are having difficulties with?  I would be happy to write a
 tutorial to fill in whatever missing gap there is in the existing
 knowledge base.

 http://aranworld.com/article/161/cakephp-acl-tutorial-what-is-it

 Back to the original post.  Record level permissions are not something
 that works out of the box with the ACL/Auth combination.

 ACL used to be much more difficult to learn, because the syntax and
 rules were not well documented yet.  But the official documentation on
 ACL is pretty accurate now.  However, keep in mind that very recently
 there was a bug in the Core that caused the ACL component to fail in a
 MySQL 4.1 environment.  Otherwise, it has been quite stable and
 relatively bugfree for the last 5 months or so.

 -Aran

 On Jun 22, 2:06 pm, francky06l [EMAIL PROTECTED] wrote:

  You need to get your mind on ACL. There is a learning curve, but once
  you get it, it becomes very clear and quick use ...
  It's worth the learning time I think...
  cheers

  On Jun 22, 9:07 pm, candesprojects [EMAIL PROTECTED] wrote:

   Yes, I'm interested too.

   I also have problems to implement the ACL. I don't know why is so hard
   to customize and quick use.

   Tks.

   On Jun 22, 1:44 pm, Warringer [EMAIL PROTECTED] wrote:

On Jun 20, 5:33 pm, leo [EMAIL PROTECTED] wrote:

  I've spent a lot of time studying the ACL+auth, but I don't know how
  to implement a such thing:

 Me too. Eventually, I gave it up as to much to learn and over
 complicated. I wrote my own solution using existing auth in about 25
 lines of code + 2 small tables that does everything I want, including
 access control down to view level. CRUD was just too vague for this
 application.

Care to share? I could use something like that in my project.

- Warringer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



Session data being lost when moving between controllers

2008-06-22 Thread Langdon Stevenson

I have a Cake website running on:

   IIS 6
   Cake version 1.1.19.6305
   ISAPI_rewrite

config:

   DEBUG 2
   CAKE_SESSION_SAVE'cake'
   CAKE_SECURITY'low'
   CAKE_SESSION_TIMEOUT '120'
   AUTO_SESSION  true


Upon login, user data is being successfully written to the session
(confirmed by looking in the session file after each page load) and can
be read back from the session again.

However when the user moves to another controller, the session data is
read successfully on the first page load, but the entire session is then
deleted.

Checking app/tmp/session/ confirms that the session file is completely
deleted by this move to another controller.  Moving to another page
within the second controller causes a new session file to be created.

I have searched Google and the CakePHP group high and low for an answer
to this problem, but can't find a solution.

The system was fine before the change to ISAPI_rewrite, so it clearly 
has something to do with the issue.

Can anyone suggest what may be causing this?

Langdon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: cake perfomance

2008-06-22 Thread Grant Cox

See ticket 4855, it sounds quite similar
https://trac.cakephp.org/ticket/4855

And update to the newest SVN (a revision number isn't mentioned in the
fix for that ticket) to see if the issue persists


On Jun 23, 6:23 am, francky06l [EMAIL PROTECTED] wrote:
 Depends the conditions and your settings, are you having debug  0 ?
 Also check the DB time.

 On Jun 22, 8:50 pm, Voyager2K [EMAIL PROTECTED] wrote:

  when i use cake 1.1  i think it slow perfomnace is temporary.

  Now i try cake 1.2 RC 1, simple code (look at the end post).  It was
  terribly, time  1.8474 sec.
  Round values after many refresh page is 2 sec.
  My machine -  Celeron 2.4 Ghz, 521 RAM. WinXP.

  I try xdebug, i see many time goes to App::import  App::__load
  functions

  class TestikController extends AppController
  {
   var $name = 'Testik';

  function index()
  {
  $items = $this-Testik-findAll();
  $this-set('items',$items);
  }

  }

  class Testik extends AppModel
  {
  var $name = 'Testik';
  var $useTable = 'testik';

  }

  view:
  ?print_r($items);?

  layout:  default.ctp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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 router wrong,who can help me?

2008-06-22 Thread itares

when i debug cakephp routes.php , i found a wrong , it's debug info:

Debug Strict (PHP 5): E:\PHP\CakePhp\cheesecake\cake\libs\router.php
line 189 - Non-static method Router::getInstance() should not be
called statically, assuming $this from incompatible context
Notice: E:\PHP\CakePhp\cheesecake\app\config\routes.php line 37 -
Undefined variable: Route
Debug Error: E:\PHP\CakePhp\cheesecake\app\config\routes.php line 37 -
Call to a member function connect() on a non-object


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



Getting CakePHP to connect to MySQL

2008-06-22 Thread Peter Weicker

I want to learn CakePHP to add functions to our website
(northbreeze.com). My PHP/MySQL experience is limited to a site search
function I wrote some time ago. A long time interest in Smalltalk led
me to Ruby on Rails. One good look at that led me to try CakePHP.

I've just installed XAMPP on my XP box and I'm trying to connect at
http://localhost/cake/

When the MySQL service is stopped I get this message:

CakePHP Rapid Development
Your database configuration file is present.


Warning: mysql_connect() [function.mysql-connect]: Can't connect to
MySQL server on 'localhost' (10061) in C:\xampp\htdocs\cake\cake\libs
\model\dbo\dbo_mysql.php on line 100

Warning: mysql_select_db(): supplied argument is not a valid MySQL-
Link resource in C:\xampp\htdocs\cake\cake\libs\model\dbo
\dbo_mysql.php on line 105

Cake is not able to connect to the database.


---
When the MySQL service is running I get this message:

CakePHP Rapid Development
Your database configuration file is present.


Warning: mysql_connect() [function.mysql-connect]: Access denied for
user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\cake
\cake\libs\model\dbo\dbo_mysql.php on line 100

Warning: mysql_select_db(): supplied argument is not a valid MySQL-
Link resource in C:\xampp\htdocs\cake\cake\libs\model\dbo
\dbo_mysql.php on line 105

Cake is not able to connect to the database.


--

I'm running the current (as of June 22/08) stable version of CakePHP
and my XAMPP setup is

Apache 2.2.8
MySQL 5.0.51a
PHP 5.2.5 + PHP 4.4.8 + PEAR
PHP-Switch win32 1.0 (please use the php-switch.bat)
XAMPP Control Version 2.5 from www.nat32.com
XAMPP Security 1.0
SQLite 2.8.15
OpenSSL 0.9.8g
phpMyAdmin 2.11.4
ADOdb 4.96
Mercury Mail Transport System v4.52
FileZilla FTP Server 0.9.25
Webalizer 2.01-10
Zend Optimizer 3.3.0a
eAccelerator 0.9.5.2 for PHP 5.2.5  (comment out in the php.ini)

Any suggestions as to what I'm doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: Getting CakePHP to connect to MySQL

2008-06-22 Thread Jonathan Snook

 Warning: mysql_connect() [function.mysql-connect]: Access denied for
 user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\cake
 \cake\libs\model\dbo\dbo_mysql.php on line 100

Make sure that you've specified the proper username and password
(that's what this error message is saying). xampp uses a default u/p
configuration that you may need to look up. (I remember running into a
similar issue figuring out what the defaults were)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---



exception handling in phpcake

2008-06-22 Thread SajjadRaza

what is the built in mechanism of excetion handling in cakephp
can we use the custom exception in cake php if yes then please tell me
how
and where i have to keep custom exceptions

thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: Url problem

2008-06-22 Thread AbhinavZone

ok..

I am developing a property management website, where sellers come,
register there profile and post there properties.
I need to create a URL for there public profile, such as
http://proprtysite.com/user-name

but cakephp taking user-name as controller name. and raising error.
I tried to add index function in page-controller class but nothing
happened.

and second problem is

the URL of property page should be
http://propertysite.com/property-heading.html







On Jun 21, 7:15 pm, simonb [EMAIL PROTECTED] wrote:
 Whatever it is will most likely involve routes. You can do almost any
 form of redirect with that.

 Like Ian says, a little bit more information would help.

 On Jun 21, 2:41 pm, Ian Zepp [EMAIL PROTECTED] wrote:

  You are going to have to provide more context than that, sorry.

  AbhinavZone wrote:
   hi.

   I am working on website in cakephp. everything is going fine.
   but I got stuck with an issue.

   1. Client requirement is to rewrite all pages as
  http://websitename.com/xx/yy.html

   2. Add back link to website such as
  http://websitename.com/username

   please help me out .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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: Url problem

2008-06-22 Thread brian_gaff

In dispatcher::dispatch(), this is where cake handles loading things.
This is also where cake detects if the url passed doesn't match up
with a controller.

On line 100:
  elseif(!class_exists($ctrlClass)){
 $missingController = true;
 }

I would do some additional logic here, for example, you might consider
setting $ctrlClass = ProfilesController; and manually rewriting the
url.

I'm not Cake guru, but that seems to be the most logical approach.

An easier approach would be to use a route such as /profile/user = /
profiles/view/user

Brian


On Jun 22, 9:55 pm, AbhinavZone [EMAIL PROTECTED] wrote:
 ok..

 I am developing a property management website, where sellers come,
 register there profile and post there properties.
 I need to create a URL for there public profile, such 
 ashttp://proprtysite.com/user-name

 but cakephp taking user-name as controller name. and raising error.
 I tried to add index function in page-controller class but nothing
 happened.

 and second problem is

 the URL of property page should 
 behttp://propertysite.com/property-heading.html

 On Jun 21, 7:15 pm, simonb [EMAIL PROTECTED] wrote:

  Whatever it is will most likely involve routes. You can do almost any
  form of redirect with that.

  Like Ian says, a little bit more information would help.

  On Jun 21, 2:41 pm, Ian Zepp [EMAIL PROTECTED] wrote:

   You are going to have to provide more context than that, sorry.

   AbhinavZone wrote:
hi.

I am working on website in cakephp. everything is going fine.
but I got stuck with an issue.

1. Client requirement is to rewrite all pages as
   http://websitename.com/xx/yy.html

2. Add back link to website such as
   http://websitename.com/username

please help me out .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP 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
-~--~~~~--~~--~--~---