Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Looks like some of your filed in app/* are older versions. Make sure you check to see is they are different-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut * @access public*/On 5/10/06, Kotekar <[EMAIL PROTECTED]> wrote: Hey,I got this message:Warning: uses(CORE_PATHcake\libs\bake.php): failed to open stream: No such file or directory in E:\sites\cakephp\cake\basics.php on line 393Fatal error: uses(): Failed opening required'CORE_PATHcake\libs\bake.php' (include_path='.;C:\php5\pear') in E:\sites\cakephp\cake\basics.php on line 393 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Hey, I got this message: Warning: uses(CORE_PATHcake\libs\bake.php): failed to open stream: No such file or directory in E:\s ites\cakephp\cake\basics.php on line 393 Fatal error: uses(): Failed opening required 'CORE_PATHcake\libs\bake.php' (include_path='.;C:\php5\ pear') in E:\sites\cakephp\cake\basics.php on line 393 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
hi it's not a problem with mysql itself (otherwise, it would return something like "unable to connect") I'm no expert (and all this depends on the way you 'upgraded' php4 to php5), but maybe it comes from a wrong setup of php5. in php.ini (the one for php5), in the extension (module) section I have had to uncomment (or add, I don't remember) : extension=php_mysql.dll maybe it's particular for me (because I run php5 as a cgi, still php4 by default), but I think mysql was "built in" php4, not php5, something like that. anyway, it's OT ;) ++ clemos On 5/9/06, Spark <[EMAIL PROTECTED]> wrote: > > i tried it last night, and I got this message: > > _ _ ___ _ _ ___ ___ _ _ > ||__| |_/ |___ |__] |__| |__]|__] |__| |_/ |___ > |___ | | | \_ |___ || | | |__] | | | \_ |___ > --- > [M]odel > [C]ontroller > [V]iew > > Please select a class to Bake: (M/V/C) > > m > --- > Model Bake: > --- > > Fatal error: Call to undefined function mysql_connect() in > D:\webroot\cake\cake\libs\model\dbo\dbo_mysql.php on line 116 > > > I'm running winXP, easyphp 1.8 , upgraded everything (php 5, mysql 5, > phpmyadmin, etc), and i'm NOT running mysql as a service. is it > essencial ? mysql is also on the Path. > > > thank you > spark! > > On 5/9/06, Mika <[EMAIL PROTECTED]> wrote: > > > > What response did you get? > > > > > > > > > > > > -- > [web] http://synapsisdi.com.br > [livesets] http://djspark.com.br > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
i tried it last night, and I got this message: _ _ ___ _ _ ___ ___ _ _ ||__| |_/ |___ |__] |__| |__]|__] |__| |_/ |___ |___ | | | \_ |___ || | | |__] | | | \_ |___ --- [M]odel [C]ontroller [V]iew Please select a class to Bake: (M/V/C) > m --- Model Bake: --- Fatal error: Call to undefined function mysql_connect() in D:\webroot\cake\cake\libs\model\dbo\dbo_mysql.php on line 116 I'm running winXP, easyphp 1.8 , upgraded everything (php 5, mysql 5, phpmyadmin, etc), and i'm NOT running mysql as a service. is it essencial ? mysql is also on the Path. thank you spark! On 5/9/06, Mika <[EMAIL PROTECTED]> wrote: > > What response did you get? > > > > > -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
What response did you get? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Hi Mika, It seems to be broken, it didn't worked. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
sorry that was supposed to be bake.php was broken. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Well if you're using the latest build (because build.php was pretty broken for a while) you can go to your /cake/scripts directory and run "php bake.php" from there. This is assuming that you have the path to your php.exe in your path environment variable. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Hey thanks, the links which you provided helps lot and i had small doubt with the tutorilas which i gone through. While creating the Controllers, they have used the command line like "php bake.php -app bakery" it ask some set of question builds fully created file with the functions. Can we run these commands in Windows? how? Cheers Raghava Kotekar --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Look at how category is done in this model: https://trac.cakephp.org/wiki/BuildingCakeBakery/Models --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
Will it work if you use 'categories_id' instead of 'parent_id'?Following the cake conventions this might make sense.On 5/8/06, Kotekar < [EMAIL PROTECTED]> wrote:categories TABLE- id- name- parent_id While Add New Category, i need the SELECT OPTION to draw the values ofpresent Category List to choose if the New one is Sub Category ofpresented one.Can any one help, to find out how to build the association to this. Thanx 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 -~--~~~~--~~--~--~---
Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table
categories TABLE - id - name - parent_id While Add New Category, i need the SELECT OPTION to draw the values of present Category List to choose if the New one is Sub Category of presented one. Can any one help, to find out how to build the association to this. Thanx 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 -~--~~~~--~~--~--~---