In the first attempt probably you haven't baked the Model first. If you wan't to live 'stressless' use Vertrigo (http:// vertrigo.sourceforge.net/?lang=eng) instead of XAMPP. Small, fresh and everything works perfect.
On 3 Wrz, 16:37, mejpark <[EMAIL PROTECTED]> wrote: > I am developing my application on Windows PC running Vista Home Basic > and the XAMPP framework (xampp-win32-1.6.3a.zip). I configured bake > according to this document "http://bakery.cakephp.org/articles/view/ > setting-up-eclipse-to-work-with-cake". I envoked bake from the PDT > console, which produced: > > Skel Directory: C:\xampp\htdocs\cake\cake\scripts\templates\skel > Will be copied to: > New App Directory: C:\xampp\htdocs\cake\app > --------------------------------------------------------------- > > Look okay? (y/n/q) > [y] > n > > I realised that I need to tell bake which project to work with, so I > added "bake.php "${project_name:myproject}"" variable to the external > tools configuration dialogue and made a second attempt to bake a > controller: > > Bake -app in C:\xampp\htdocs\cake\myproject (y/n) > [y] > y > > What would you like to Bake? (M/V/C) > > c > > Enter a number from the list above, or type in the name of another > controller. > > Admins > > Would you like bake to build your controller interactively? > Warning: Choosing no will overwrite controller if it exist. (y/n) > [y] > n > > Would you like to include some basic class methods (index(), add(), > view(), edit())? (y/n) > [y] > y > > Would you like to create the methods for admin routing? (y/n) > [y] > n > > Fatal error: Class 'Admin' not found in C:\xampp\htdocs\cake\cake > \scripts\bake.php on line 1328 > > Windows dialogue box also pops up entitled "Microsoft Windows: CLI has > stopped working, A problem caused the program to stop working > correctly. Windows will close the program and notify you if a solution > is available.". This person describes his solution to the problem > "http://web2.0entrepreneur.com/31/cli-has-stopped-working-on-windows- > vista.html". I deleted C:/xampp/php directory, downloaded latest pre- > compiled binary version of PHP "http://uk.php.net/distributions/ > php-5.2.4-Win32.zip". I renamed "php.ini.recommended" to "php.ini" > uncommented mysql and mysqli extensions, and tried again: > > Bake -app in C:\xampp\htdocs\cake\myproject (y/n) > [y] > y > > What would you like to Bake? (M/V/C) > > c > > Fatal error: Call to undefined function mysql_connect() in C:\xampp > \htdocs\cake\cake\libs\model\dbo\dbo_mysql.php on line 100 > > phpinfo() says that MySQL is enabled and cake can connect to the db. > Everything is as sweet as pie apart from this issue and I'd appreciate > any feedback to resolve this issue. > > Many thanks, > > Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
