Re: Problems with the Bake (Windows Vista + Xampp + MinGW)
Hi, Please anybody can help me?... Thanks Giulio On 26 Ago, 03:38, giulio [EMAIL PROTECTED] wrote: Hi, Thank you for your help, now i set the path correctly to the environment so i can execute .php files. But i still have two problems with the paths and one with a .dll. When i type in my htdocs folder cake bake c:\xampp\htdocs\blog it start to bake but before i have this warning PHP Warning : Unknow() : Unable to load dynamic library 'C:\xampp\php \extensions\php_sqlite.dll' I tried to download the last versiono of php binaries for win and to copy the dll in the php/exstension but the problems doesn't desappear. I'm usingxampp1.6.7 and the PHP Version 5.2.6 The second path problem became when i digit bake inside the console folder of the application, maybe i've to execute cake bake c:\xampp \htdocs\blog from the htdocs folder? Thank you very much for you help Giulio On 25 Ago, 10:35, clemos [EMAIL PROTECTED] wrote: Hi Giulio I'm not really an expert with MinGW, but I guess you should either: - link your php.exe to /usr/bin/, with something like (assuming php is at c:\Program Files\PHP5): ln -s /c/Program Files/PHP5/php.exe /usr/bin/php.exe - add c:\Program Files\PHP5\ to your PATH environnement variable (which is more standard, as it will allow you to run php from the windows command as well): in windows go to My Computer RightClick properties Advanced Environment Variables search for the variable called PATH in your user variable, and add ;c:\Program Files\PHP5; Both should work, but I'd prefer the second solution, because I sometimes use the windows command prompt... Clément On Mon, Aug 25, 2008 at 3:31 AM, giulio [EMAIL PROTECTED] wrote: Hi clement, Thank you for your help, but i've not understood. Where i've to add the path to php.exe cli to my path environment variable? Could you resume for me all the process? I know that this it's not acakephp issue, but a problem with the environment, but i can find a solution. Thanks for the help. On 24 Ago, 19:05, clemos [EMAIL PROTECTED] wrote: Then you must also add the path to php.exe cli to your path environment variable. +++ Clément On Sun, Aug 24, 2008 at 7:31 AM, giulio [EMAIL PROTECTED] wrote: If i writecake.bat it returns me the answer that php is not know as command Thanks for the help Giulio On 24 Ago, 07:29, giulio [EMAIL PROTECTED] wrote: Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configurecakephp on windows vista usingxampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that windows doesn't recognise .php extension. When i try to digitcake.php in my app/console folder, it opens a txt file like this #!/usr/bin/php -q ?php /* SVN FILE: $Id:cake.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Command-line code generation utility to automate programmer chores. * * Shell dispatcher class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/ * Copyright 2005-2008,CakeSoftware Foundation, Inc. * Excuse me but i never work with CLI and this is one of the first time that i use windows vista, so please write to me all the things to do: adding environment variables etc etc... Thanks Giulio On 22 Ago, 04:26, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 10:22 PM, giulio [EMAIL PROTECTED] wrote: Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. I don't know of any off-hand, but you can probably find them via Google. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard-Nasconditesto citato - Mostra testo citato -- Nascondi testo citato - Mostra testo citato - --~--~-~--~~~---~--~~ 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: Problems with the Bake (Windows Vista + Xampp + MinGW)
Hi clement, Thank you for your help, but i've not understood. Where i've to add the path to php.exe cli to my path environment variable? Could you resume for me all the process? I know that this it's not a cake php issue, but a problem with the environment, but i can find a solution. Thanks for the help. On 24 Ago, 19:05, clemos [EMAIL PROTECTED] wrote: Then you must also add the path to php.exe cli to your path environment variable. +++ Clément On Sun, Aug 24, 2008 at 7:31 AM, giulio [EMAIL PROTECTED] wrote: If i write cake.bat it returns me the answer that php is not know as command Thanks for the help Giulio On 24 Ago, 07:29, giulio [EMAIL PROTECTED] wrote: Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configure cake php on windows vista using xampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that windows doesn't recognise .php extension. When i try to digit cake.php in my app/console folder, it opens a txt file like this #!/usr/bin/php -q ?php /* SVN FILE: $Id: cake.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Command-line code generation utility to automate programmer chores. * * Shell dispatcher class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/ * Copyright 2005-2008, Cake Software Foundation, Inc. * Excuse me but i never work with CLI and this is one of the first time that i use windows vista, so please write to me all the things to do: adding environment variables etc etc... Thanks Giulio On 22 Ago, 04:26, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 10:22 PM, giulio [EMAIL PROTECTED] wrote: Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. I don't know of any off-hand, but you can probably find them via Google. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard- Nascondi testo citato - Mostra testo citato - --~--~-~--~~~---~--~~ 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: Problems with the Bake (Windows Vista + Xampp + MinGW)
Hi, Thank you for your help, now i set the path correctly to the environment so i can execute .php files. But i still have two problems with the paths and one with a .dll. When i type in my htdocs folder cake bake c:\xampp\htdocs\blog it start to bake but before i have this warning PHP Warning : Unknow() : Unable to load dynamic library 'C:\xampp\php \extensions\php_sqlite.dll' I tried to download the last versiono of php binaries for win and to copy the dll in the php/exstension but the problems doesn't desappear. I'm using xampp 1.6.7 and the PHP Version 5.2.6 The second path problem became when i digit bake inside the console folder of the application, maybe i've to execute cake bake c:\xampp \htdocs\blog from the htdocs folder? Thank you very much for you help Giulio On 25 Ago, 10:35, clemos [EMAIL PROTECTED] wrote: Hi Giulio I'm not really an expert with MinGW, but I guess you should either: - link your php.exe to /usr/bin/, with something like (assuming php is at c:\Program Files\PHP5): ln -s /c/Program Files/PHP5/php.exe /usr/bin/php.exe - add c:\Program Files\PHP5\ to your PATH environnement variable (which is more standard, as it will allow you to run php from the windows command as well): in windows go to My Computer RightClick properties Advanced Environment Variables search for the variable called PATH in your user variable, and add ;c:\Program Files\PHP5; Both should work, but I'd prefer the second solution, because I sometimes use the windows command prompt... Clément On Mon, Aug 25, 2008 at 3:31 AM, giulio [EMAIL PROTECTED] wrote: Hi clement, Thank you for your help, but i've not understood. Where i've to add the path to php.exe cli to my path environment variable? Could you resume for me all the process? I know that this it's not acakephp issue, but a problem with the environment, but i can find a solution. Thanks for the help. On 24 Ago, 19:05, clemos [EMAIL PROTECTED] wrote: Then you must also add the path to php.exe cli to your path environment variable. +++ Clément On Sun, Aug 24, 2008 at 7:31 AM, giulio [EMAIL PROTECTED] wrote: If i writecake.bat it returns me the answer that php is not know as command Thanks for the help Giulio On 24 Ago, 07:29, giulio [EMAIL PROTECTED] wrote: Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configurecakephp on windows vista usingxampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that windows doesn't recognise .php extension. When i try to digitcake.php in my app/console folder, it opens a txt file like this #!/usr/bin/php -q ?php /* SVN FILE: $Id:cake.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Command-line code generation utility to automate programmer chores. * * Shell dispatcher class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/ * Copyright 2005-2008,CakeSoftware Foundation, Inc. * Excuse me but i never work with CLI and this is one of the first time that i use windows vista, so please write to me all the things to do: adding environment variables etc etc... Thanks Giulio On 22 Ago, 04:26, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 10:22 PM, giulio [EMAIL PROTECTED] wrote: Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. I don't know of any off-hand, but you can probably find them via Google. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard-Nascondi testo citato - Mostra testo citato -- Nascondi testo citato - Mostra testo citato - --~--~-~--~~~---~--~~ 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: Problems with the Bake (Windows Vista + Xampp + MinGW)
Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configure cake php on windows vista using xampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that windows doesn't recognise .php extension. When i try to digit cake.php in my app/console folder, it opens a txt file like this #!/usr/bin/php -q ?php /* SVN FILE: $Id: cake.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Command-line code generation utility to automate programmer chores. * * Shell dispatcher class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/ * Copyright 2005-2008, Cake Software Foundation, Inc. * Excuse me but i never work with CLI and this is one of the first time that i use windows vista, so please write to me all the things to do: adding environment variables etc etc... Thanks Giulio On 22 Ago, 04:26, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 10:22 PM, giulio [EMAIL PROTECTED] wrote: Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. I don't know of any off-hand, but you can probably find them via Google. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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: Problems with the Bake (Windows Vista + Xampp + MinGW)
If i write cake.bat it returns me the answer that php is not know as command Thanks for the help Giulio On 24 Ago, 07:29, giulio [EMAIL PROTECTED] wrote: Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configure cake php on windows vista using xampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that windows doesn't recognise .php extension. When i try to digit cake.php in my app/console folder, it opens a txt file like this #!/usr/bin/php -q ?php /* SVN FILE: $Id: cake.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Command-line code generation utility to automate programmer chores. * * Shell dispatcher class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework http://www.cakephp.org/ * Copyright 2005-2008, Cake Software Foundation, Inc. * Excuse me but i never work with CLI and this is one of the first time that i use windows vista, so please write to me all the things to do: adding environment variables etc etc... Thanks Giulio On 22 Ago, 04:26, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 10:22 PM, giulio [EMAIL PROTECTED] wrote: Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. I don't know of any off-hand, but you can probably find them via Google. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problems with the Bake (Windows Vista + Xampp + MinGW)
Hi, I'm new fo cake php, i've done the first examples without problems, now i try to set the localhost working with the Bake to create views. I'm using Windows Vista + Xampp + MinGW Do you know how i can set up the environment? I don't know a lot of console. Is there some tutorials? If you can't send me a tutorial, i'll ask you the excact problem i find. Thanks Giulio --~--~-~--~~~---~--~~ 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: Problems with the Bake (Windows Vista + Xampp + MinGW)
Thank you very much for the help. Can i find also a text help insted of videos?... i've some problems with my connection to see videos. Thanks Giulio On 22 Ago, 04:01, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 9:53 PM, giulio [EMAIL PROTECTED] wrote: Is there some tutorials? If you can't send me a tutorial, i'll ask you the excact problem i find. http://cakephp.org/screencasts -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Newbie of Cake Php : Problems with Vista Installation and First Application
Hi, I'm new of cake php. I'm trying to install cakephp in windows vista, i downloaded and installed xampp and all seems to be fine. I've followed the instructions for cake php and it goes well. I've only some problems: 1- I can't see the graphic of the default cake php page, i read that it depends of configuratione of httpd.conf so i set the options FollowSyLinks to AllowOverride All and the correct path, but i've not solved the problem 2- I tried with a simple cake php application made by other (a todolist application ) but when i write the controller http://localhost/todo/items i can see only the result Object not found... maybe are there problems with htaccess? I able mod rewrite. If someone has a file httpd.conf please send me this file to me, so i can solve all the configurations problems. Thanks Giulio --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem with Cake and Vista
Hi, I'm new of cake php. I'm trying to install cakephp in windows vista, i downloaded and installed xampp and all seems to be fine. I've followed the instructions for cake php and it goes well. I've only some problems: 1- I can't see the graphic of the default cake php page, i read that it depends of configuratione of httpd.conf so i set the options FollowSyLinks to AllowOverride All and the correct path, but i've not solved the problem 2- I tried with a simple cake php application made by other (a todolist application ) but when i write the controller http://localhost/todo/items i can see only the result Object not found... maybe are there problems with htaccess? I able mod rewrite. If someone has a file httpd.conf please send me this file to me, so i can solve all the configurations problems. Thanks Giulio --~--~-~--~~~---~--~~ 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: Problem with Cake and Vista
Hi, Yes I reboot the system. Someone as a httpd.conf file for xmapp and vista that works and can post it? I think that it'll be useful. Thanks for the help Giulio On 19 Ago, 10:15, RichardAtHome [EMAIL PROTECTED] wrote: Did you reboot apache after you made changes to httpd.conf? And, btw, Cake with Apache PHP on Vista is entirely possible - I'm doing it right now :-) On Aug 19, 7:49 am, giulio [EMAIL PROTECTED] wrote: Hi, I'm new of cake php. I'm trying to install cakephp in windows vista, i downloaded and installed xampp and all seems to be fine. I've followed the instructions for cake php and it goes well. I've only some problems: 1- I can't see the graphic of the default cake php page, i read that it depends of configuratione of httpd.conf so i set the options FollowSyLinks to AllowOverride All and the correct path, but i've not solved the problem 2- I tried with a simple cake php application made by other (a todolist application ) but when i write the controllerhttp://localhost/todo/items i can see only the result Object not found... maybe are there problems with htaccess? I able mod rewrite. If someone has a file httpd.conf please send me this file to me, so i can solve all the configurations problems. Thanks Giulio --~--~-~--~~~---~--~~ 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: Newbie of Cake Php : Problems with Vista Installation and First Application
Hi Clément, I'm writing to confirm that thanks to your suggestion all works fine. Thank you very much Giulio On 19 Ago, 21:57, www.landed.at [EMAIL PROTECTED] wrote: I have followed all except the last line of that link which is # If you are installing CakePHP into a user directory (http:// example.com/~username), you'll need to modify the .htaccess file in the base directory of your CakePHP installation. Just add the line RewriteBase /~myusername/ in uniform server the structure is C:\Uniform Server\udrive\www\fb00\ [here i have app, cake,vendors etc and the htaccess file ] so eith that structure localhost points to the www root folder where I have multiple sites. So i added as per the instruction above and get the htaccess file in the application root to be IfModule mod_rewrite.c RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] RewriteBase /~fb00/ /IfModule so is that right, I dont know what else is wrong, I have mod rewrite working for other things ok. here is my server log error [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: W:/www/fb00/, referer:http://localhost/ thanks for any help this is my second night of frustration with nothing working. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Foreign keys
Hello, when I try to insert a new record in a certain table I get the error Cannot add or update a child row: a foreign key constraint fails The table has three foreign keys and six other fields, but this error appairs with every record I try to insert in the table, even if I don't give any values to the foreign keys. What can be the problem? --~--~-~--~~~---~--~~ 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: Foreign keys
Ketan Patel The problem is the foreignKeys. You do not have the foreignKey constraint satisfied and that's why MySql is complaining. ForeignKeys means that for that value, you have the entry in the foreign Table. Hi Ketan, thanks for your kind reply. However, let me explain the problem more accurately: this error seem to occur with every record I try to put in the table, even with those record that satisfy the costraints. The record I'm trying to insert satisfies all the costraints, as I checked over and over; however, the error occurs, and it occurs even when I remove from the query the fields that are foreign keys. The query is like that INSERT INTO Books (ID_Book, ID_Author, ID_Nation,ID_Publisher) VALUES (32,27,101,4) and in the foreign tables there are an author with ID 27,a nation with ID 101, and a publisher with ID 4. All the constraints seem to be satisfied, but the error occurs. Do you have any suggestion? Thank you in advance! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---