Re: cake+joomla=jake, but where have the developers gone?
Hi, Mike. I can't speak for the developers, but I do know of their Web sites for this project and for Drake ( CakePHP + Drupal )... http://dev.sypad.com/projects/drake http://dev.sypad.com/projects/jake Those are official sites they have devoted to both Drake and Jake. You would probably find the most current stuff there. Hope that helps. -- j o e l Mike Green wrote: > Dear all > > apologies in advance for the non-specific cakephp enquiry, but jake is > in cakeforge, so maybe that will redeem my question! > > I'm trying to utilise jake in my joomla/cake1.2 app, but i'm coming > across *tiny* bugs when it comes to things like form actions and > pagination, things like the japp parameter not being passed, so that > everything seems to want to run through the default app! > > If the jake dev is on the list, can you please give me a shout? I've > tried submitting a bug to the trac but im not even sure that you, or > anybody else checks it. > > I would try and fix the bug myself, but I'd rather speak to somebody > who knows the app first, rather than jumping in feet first, reading > all the code, only to be told 2 hours later that "oh just edit this > line". > > Many thanks in advance > > Mike > > > > -- > > Mike Green > > Find yourself some misspelled ebay bargains! > http://www.typingwand.com --~--~-~--~~~---~--~~ 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: Drake :: Drupal-CakePHP 1.0.1b Released
Mariano! Thank you so much! Fabulous work again! It's funny, after I saw your post re:Jake, I thought it was awesome and downloaded it. However, I'm not really that familiar with Joomla, yet. I use Drupal. I remembered Felix's early works at incorporating Cake with Drupal, and he graciously answered a few questions I had about it. It was difficult getting them to play nice, however. I began thinking about looking into it again, and then I checked the mailing list in my email and came across this post. What timing! Anyway, all that to say thanks again, Mariano! I'm sure it works great, as I was able to get Jake working rather easily. ;-) Nice work! On Feb 25, 7:20 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > My fellow bakers, > > After my experience with Jake, and thanks to Felix's goodwill in giving the > catchy name Drake for me to use, I'm pleased to announce the first beta > release of Drake, a Drupal module that lets you execute your CakePHP > applications inside Drupal. > > Project home page:http://dev.sypad.com/projects/drake > > Documentation:http://dev.sypad.com/projects/drake/documentation > > Download:http://drupal.org/project/drake > > Demo (Cheesecake Photoblog on Drupal > 5.1):http://dev.sypad.com/projects/drake/demo/drake > > Bake on, with Drake ;) > > -MI --~--~-~--~~~---~--~~ 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: bake.php errors
gwoo wrote: > how about you try to debug the problem and submit a patch. Before you > do that make sure you have the latest nightly download. [EMAIL PROTECTED]:~/Development/cake/dev/core/cake/scripts$ php bake.php Gwoo, I apologize, but I haven't used Cake in awhile, as I haven't done much programming lately. It seems like things have changed quite a bit, since I last used it (around 1.1.2). I found your screencast and discovered how to correctly use the "new" bake.php script now, and it works pefectly. I am still experiencing some issues with Cake overall, however, and I was wondering if someone could point me in the right direction? I used to use the alternate configuration, with the app, cake, and webroot in separate folders. I have successfully setup the latest version of Cake (svn) utilizing this setup, as well as the development setup. Here's my current setup... CAKE SETUP: alternate === /home/joel/Development/cake/dev/apps/Test -> /cake_install/app /home/joel/Development/cake/dev/www/Test -> /cake_install/app/webroot /home/joel/Development/cake/dev/core -> /cake_install/cake index.php under /home/joel/Development/cake/www/Test is configured as follows: define('ROOT', DS.'home'.DS.'joel'.DS.'Development'.DS.'cake'.DS.'dev'.DS.'apps'); define('APP_DIR', 'Test'); define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'joel'.DS.'Development'.DS.'cake'.DS.'dev'.DS.'core'); This setup displays the default home page with debug showing the database file was found and cake successfully connected to the database. All of the CSS and images were missing until I read a thread on this mailing list about uncommenting the BASE_URL definition in the core.php file. However, the mod_rewrite or the .htaccess files don't seem to be working properly. The only path which works after baking now, looks like... http://localhost/cake/dev/Test/index.php?/tables/ How can I get the "pretty cake url's", ie http://localhost/cake/dev/Test/tables/? I've followed the steps in the install section of the manual, but I don't have a real clear understanding of how it all works together. FWIW, I have apache2 installed on Ubuntu 6.10. The apache2 structure is split up quite a bit: [EMAIL PROTECTED]:/etc/apache2$ ls -a . conf.d magic ports.conf sites-enabled ..envvars mods-available README ssl apache2.conf httpd.conf mods-enabledsites-available httpd.conf is pretty much a blank file, while apache2.conf has the main config in it. I guess httpd.conf is to allow further configuration of the apache2.conf file. In the mods-available, I have rewrite.load, and it is enabled in the mods-enabled directory. In a thread on the Ubuntu forums, I read where proxy.load must also be enabled in order for the rewrite to work, and I have done that. BTW, I added the "LoadModule" line in the httpd.conf file as the install section in the CakePHP manual states (just in case it was different), but I was given an message that mod_rewrite was already loaded. So, I assume the apache2.conf file is parsed first, then the httpd.conf file is parsed after. So, the mod_rewrite is supposedly installed and loaded, but I'm not sure given these results? [EMAIL PROTECTED]:/etc/apache2$ apache2ctl -l Compiled in modules: core.c mod_access.c mod_auth.c mod_log_config.c mod_logio.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_negotiation.c mod_dir.c mod_alias.c mod_so.c Also, can you add a DocumentRoot to your .htaccess, or must it be done in the httpd.conf file? If only in the httpd.conf file, can I have more than one DocumentRoot like for each VirtualHost or something? I apologize, I'm just not very experienced in all of this. I definitely am learning, though. :-) Thanks in advance, gang! I appreciate ya! --joel --~--~-~--~~~---~--~~ 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: bake.php errors
Thanks, hydra12, for the tip. Unfortunately, it didn't work. I guess I'll just try using rdBaker. That's what I used to use, anyway. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
bake.php errors
Hello. I've been looking through the list here, and have not seen anything on this. Please forgive me, if it was posted, and I've missed it. I recently downloaded the new version of Cake (1.10), but there seem to be some issues with the bake.php script, unless something has changed? The script only runs the app portion of the script whether using the -a or -app arguments (runs with no arguments passed, also). The -project argument works (not the -p argument), but again - only a complete app directory is created. The -h and -help arguments work, and show what arguments to use, but these do not work. [EMAIL PROTECTED]:~/Development/cakeSettings/cakeCore/cake/scripts$ php bake.php -help ___ __ _ _ ___ __ _ _ __ __ __ _ _ ___ ||__| |_/ |__ |__] |__| |__]|__] |__| |_/ |__ |___ | | | \_ |___ || | | |__] | | | \_ |___ --- CakePHP Bake: --- The Bake script generates controllers, views and models for your application. If run with no command line arguments, Bake guides the user through the class creation process. You can customize the generation process by telling Bake where different parts of your application are using command line arguments. --- usage: php bake.php [command] [path...] commands: -app [path...] Absolute path to Cake's app Folder. -core [path...] Absolute path to Cake's cake Folder. -help Shows this help message. -project [path...] Generates a new app folder in the path supplied. -root [path...] Absolute path to Cake's \app\webroot Folder. Is there something wrong with the script after the changes to Cake in this latest version, or am I missing something? FWIW, I have the app, core, and webroot directories in different paths, and they are defined properly in the config file. The home page after the cake install displays with the message stating the config is present and able to connect to the database. Just to be sure, I just ran the script after untar'ing the cake app into one base folder with the same results. I've been able to use this in past versions of cake, so I'm a little perplexed as to what is happening. Thanks in advance for your help! j o e l --~--~-~--~~~---~--~~ 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: Help Grasping HABTM...
Awesome! TY, AD! That was what I needed. I understood the many-to-many relationship aspect. I guess I even understood the result would be in the form of an array. I just didn't know how to access that, and it now makes sense what you wrote given it is an indexed array. I also see it now looking at the exmaples again. Ugh. I knew it was something simple. TY for the tip on debugging, also. I will surely be using that from now on. I didn't make it to that chapter yet - I was still stuck in Chp 6. :-) Again, thanks so much to the both of you for your help. --~--~-~--~~~---~--~~ 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: Help Grasping HABTM...
Thanks, Chris. I'll try looking at some Ruby stuff, also. I've poured over the manual so many times, as well as doing searches on this group listing, and checked out the wiki. I'm just not seeing what I've done wrong. If anyone sees my mistake, I'm more than willing to learn from it. I just don't see what it is. At this point, I don't know if it is something I don't understand, a syntax error, etc. Thanks again for taking the time to help out a noobie... Chris Hartjes wrote: > I would definitely go over all the model associations stuff in the > Cake manual and even sneak a peek at how the Rails group handles habtm > relationships. A quick glance at your code makes me think you're very > close. :) > > On 8/16/06, j o e l <[EMAIL PROTECTED]> wrote: > > > > Hello, All. > > > > I hope you don't mind my posting another HABTM issue here. I've been > > trying to get this to work, and I'm sure I'm just missing something > > basic. I've been a little confused reading the manual, the google > > groups, etc. If you don't mind, I'll just post what I'm trying to do > > and then my dbase structure and code. > > > > I am trying to create a photo album for my personal site. I would like > > users to be able to search for specific categories. I've started out > > with 3 tables: one for photos, one for categories, and one for the > > join. I've created the models and controllers according to what I've > > seen in the manual, but it doesn't work. When I perform findAll() via > > the index view, it does not pull in the associated category (there is > > data in all tables). So, that is the issue. Now, here is the code... > > > > > > TABLES: > > > > * categories: id INT, name VARCHAR, description text, parent_id > > INT, created DATETIME, modified DATETIME > > * photos: id INT, file_name VARCHAR, description text, caption > > text, created DATETIME, modified DATETIME > > * categories_photos: category_id INT, photo_id INT > > > > > > MODELS: > > > > category.php: > > > > class Category extends AppModel > > { > > var $name = 'Category'; > > var $hasAndBelongsToMany = array('Photo' => > > array('className' => 'Photo', > > 'joinTable' => 'categories_photos', > > 'foreignKey' => 'category_id', > > 'associationForeignKey' => 'photo_id', > > 'conditions' => '', > > 'order' => '', > > 'limit' => '', > > 'unique' => '', > > 'finderSql' => '', > > 'deleteQuery' => '')); > > } > > > > > > photo.php: > > > > class Photo extends AppModel > > { > > var $name = 'Photo'; > > var $hasAndBelongsToMany = array('Category' => > > array('className' => 'Category', > > 'joinTable' => 'categories_photos', > > 'foreignKey' => 'photo_id', > > 'associationForeignKey' => 'category_id', > > 'conditions' => '', > > 'order' => '', > > 'limit' => '', > > 'unique' => '', > > 'finderSql' => '', > > 'deleteQuery' => '')); > > } > > > > > > Photo Controller: > > > > Everything works in my category views, so I will just paste a portion > > of my Photo Controller. > > > > > > class PhotosController extends AppController > > { > > var $name = 'Photos'; > > > > function index() > > { > > $this->set('data', $this->Photo->findAll()); > > } > > > > > > > > In my index view for the photo table, I have a table with the > > appropriate association which displays all of the data from the photo > > table just fine. However, nothing from the category table displays. > > I've tried defining it several different ways. Currently, I have this > > in the view... > > > > > > > > > > > > > > > > > > > > > > > > > > This gives me an error stating 'name' is an 'undefined index'. I > > obviously do not have a complete understanding of how this is supposed > > to work. Would someone mind kindly explaining this to me? > > > > > > Thanks in advance. I greatly appreciate it. > > > > > > -- j o e l > > > > > > > > > > > > -- > Chris Hartjes > > "The greatest inefficiencies come from solving problems you will never have." > -- Rasmus Lerdorf > > @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 -~--~~~~--~~--~--~---
Help Grasping HABTM...
Hello, All. I hope you don't mind my posting another HABTM issue here. I've been trying to get this to work, and I'm sure I'm just missing something basic. I've been a little confused reading the manual, the google groups, etc. If you don't mind, I'll just post what I'm trying to do and then my dbase structure and code. I am trying to create a photo album for my personal site. I would like users to be able to search for specific categories. I've started out with 3 tables: one for photos, one for categories, and one for the join. I've created the models and controllers according to what I've seen in the manual, but it doesn't work. When I perform findAll() via the index view, it does not pull in the associated category (there is data in all tables). So, that is the issue. Now, here is the code... TABLES: * categories: id INT, name VARCHAR, description text, parent_id INT, created DATETIME, modified DATETIME * photos: id INT, file_name VARCHAR, description text, caption text, created DATETIME, modified DATETIME * categories_photos: category_id INT, photo_id INT MODELS: category.php: class Category extends AppModel { var $name = 'Category'; var $hasAndBelongsToMany = array('Photo' => array('className' => 'Photo', 'joinTable' => 'categories_photos', 'foreignKey' => 'category_id', 'associationForeignKey' => 'photo_id', 'conditions' => '', 'order' => '', 'limit' => '', 'unique' => '', 'finderSql' => '', 'deleteQuery' => '')); } photo.php: class Photo extends AppModel { var $name = 'Photo'; var $hasAndBelongsToMany = array('Category' => array('className' => 'Category', 'joinTable' => 'categories_photos', 'foreignKey' => 'photo_id', 'associationForeignKey' => 'category_id', 'conditions' => '', 'order' => '', 'limit' => '', 'unique' => '', 'finderSql' => '', 'deleteQuery' => '')); } Photo Controller: Everything works in my category views, so I will just paste a portion of my Photo Controller. class PhotosController extends AppController { var $name = 'Photos'; function index() { $this->set('data', $this->Photo->findAll()); } In my index view for the photo table, I have a table with the appropriate association which displays all of the data from the photo table just fine. However, nothing from the category table displays. I've tried defining it several different ways. Currently, I have this in the view... This gives me an error stating 'name' is an 'undefined index'. I obviously do not have a complete understanding of how this is supposed to work. Would someone mind kindly explaining this to me? Thanks in advance. I greatly appreciate it. -- j o e l --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---