Re: Rock the vote!

2007-01-05 Thread Daniel Gomes
yeahhh!! 67,9% now 2007/1/5, dkarlson <[EMAIL PROTECTED]>: Woohoo! 67% of the vote! :) On Jan 5, 4:31 pm, "nate" <[EMAIL PROTECTED]> wrote: > International PHP Magazine is holding another poll for PHP frameworks > athttp://www.php-mag.net/(in the right-hand column of the page). Go > vote for

Re: Rock the vote!

2007-01-05 Thread [EMAIL PROTECTED]
I'd vote, but I've never bothered trying any of the other frameworks since cake is working pretty well so far :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Fatal error: Class 'Dispatcher' not found

2007-01-05 Thread river_jetties
I'm trying to install cake php and am getting this error. i'm assuming that there is an autoload functionality that will load the dispatcher.php file. Should the directory to this be in the include path? the docs seem to imply no. thanks jon --~--~-~--~~~---~--

Re: lov.li - social network built on cake

2007-01-05 Thread Patrick Sullivan
Dallas. On 1/5/07, Tijs Teulings <[EMAIL PROTECTED]> wrote: p.s. which datacenter did you pick? The site is very responsive from europe... Tijs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Re: lov.li - social network built on cake

2007-01-05 Thread Patrick Sullivan
Sure, I'm glad you like it! On 1/5/07, Tijs Teulings <[EMAIL PROTECTED]> wrote: Great stuff expatrick, congratulations! I would love to see more case studies on the bakery (http://bakery.cakephp.org/categories/view/4). I think it would really help the community grow if examples like these ar

Re: ER Tools

2007-01-05 Thread Langdon Stevenson
Thanks for that post Larry, I am checking out DbDesigner. Should be a good addition to my tool set. Regards, Langdon I also wrote a script that will parse the DbDesigner xml file and create a list of associations . Right now it only works when associations are noted as the Bakery. If I fi

Re: Setting Additional Save Parameters

2007-01-05 Thread Samuel DeVore
I use something like this $this->data['ModelName']['fieldToBeSet'] = 'the value for the field'; if ($this->ModelName->save($this->data) { // yea saved } else { // bummer did not } HTH sdevore On 1/5/07, Cory <[EMAIL PROTECTED]> wrote: Do I use Model::set? > -- == S. DeVore (the old

Re: Setting Additional Save Parameters

2007-01-05 Thread Cory
I figured it out! Forgive me for the stupid question. If anyone's interested $this->data['Model']['variable'] = var; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: Setting Additional Save Parameters

2007-01-05 Thread Cory
Do I use Model::set? --~--~-~--~~~---~--~~ 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]

Setting Additional Save Parameters

2007-01-05 Thread Cory
Hi Everyone, I've got a quick question. I've got an extra variable that I create in a controller before I save to the database. How do I set that variable up to save to the database with the rest of the passed data? If you need me to reword something, please ask. Thank you! Cory --~--~--

Re: ACL/ACM installation

2007-01-05 Thread Nimrod A. Abing
On 1/6/07, luis_y27 <[EMAIL PROTECTED]> wrote: Hello, I've been trying unsuccessfully to set up ACL for Cake. I tried doing it as explained in the manual, initializing the database with php acl.php initdb works, the three tables are created then, I tried to run the models/controller to create

Re: Rock the vote!

2007-01-05 Thread Langdon Stevenson
Done (and gladly). My thanks to the Cake team for all your great work. Langdon International PHP Magazine is holding another poll for PHP frameworks at http://www.php-mag.net/ (in the right-hand column of the page). Go vote for CakePHP! --~--~-~--~~~---~--~

Re: Rock the vote!

2007-01-05 Thread dkarlson
Woohoo! 67% of the vote! :) On Jan 5, 4:31 pm, "nate" <[EMAIL PROTECTED]> wrote: International PHP Magazine is holding another poll for PHP frameworks athttp://www.php-mag.net/(in the right-hand column of the page). Go vote for CakePHP! --~--~-~--~~~---~--~~

Re: Rock the vote!

2007-01-05 Thread Samuel DeVore
cake at 67% now On 1/5/07, nate <[EMAIL PROTECTED]> wrote: International PHP Magazine is holding another poll for PHP frameworks at http://www.php-mag.net/ (in the right-hand column of the page). Go vote for CakePHP! > -- == S. DeVore (the old fart) the advice is free, the lack of cran

Rock the vote!

2007-01-05 Thread nate
International PHP Magazine is holding another poll for PHP frameworks at http://www.php-mag.net/ (in the right-hand column of the page). Go vote for CakePHP! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

Re: several "$content_for_layout"?

2007-01-05 Thread AD7six
On Jan 5, 9:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Thanks AD7six - just for my education, is this: > On Jan 4, 10:07 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > other parts of each layout can contain different > > static content, elements (echo $this->renderElement

Re: Many to One - Contacts to Addresses

2007-01-05 Thread [EMAIL PROTECTED]
I have the list working now. I changed the association in the Address model from $belongsTo to $hasMany. When I go to ADDRESSES I can now see the list. However, the contact association remains an ID and does not pull the NAMES. I can understand why it doesn't. Cake does not understand how to ass

Many to One - Contacts to Addresses

2007-01-05 Thread [EMAIL PROTECTED]
I am building a type of contact manager. I have three different types of contacts: 1- Employees 2- Customers 3- Partners I want them to link to one address table: 1- Addresses In working with Cake, I am using scaffolding to develop a prototype before any "real time" is spent on the development.

Re: several "$content_for_layout"?

2007-01-05 Thread [EMAIL PROTECTED]
Thanks AD7six - just for my education, is this: On Jan 4, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > other parts of each layout can contain different > static content, elements (echo $this->renderElement('my_element') ) , > request actions (echo $this->requestAction(params) ) or

Re: PayPal Direct Payment API Component problem...

2007-01-05 Thread [EMAIL PROTECTED]
Thanks for the reply. I didn't find that problem when I searched for it. --~--~-~--~~~---~--~~ 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 unsubscri

Re: Preloading a div with AJAX

2007-01-05 Thread TJSingleton
[EMAIL PROTECTED] wrote: Makes sense, but now I'm having the issue that the controller for the div is different than the one for the main page, so it gives a can't find controller error, any idea how to get around this? Are you using requestAction() ? http://manual.cakephp.org/chapter/contro

sanitize paranoid to clean up html

2007-01-05 Thread GuyBowden
Hi, I'd like to use the sanitize->paranoid method to clean up all input from my app forms... I have created a whitelist array containing allow arrays for each of my inputs - if an input has no matching key in my array then it will sanitize with nothing allowed - so keeping things nice and tight

Re: ER Tools

2007-01-05 Thread Sonic Baker
On 1/5/07, NOSLOW <[EMAIL PROTECTED]> wrote: Is this just bad DB design to not define the FK's in the tables? Will it have negative affects on the MySQL DB performance? Hi there, I assume, by FK's you actually mean PK's acting as FK's (since the default engine MyISAM doesn't support FK's).

Re: beforeSave return false, what with afterFind...?!

2007-01-05 Thread nate
Ummm. beforeSave() and afterFind() are normally completely unrelated. It might help to post a code sample so we can see what it is that you're trying to do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread John David Anderson (_psychic_)
On Jan 5, 2007, at 10:40 AM, Veloz wrote: Thanks for your reply to this topic, John. I probably should have not brought up 1.2 at all, as it throws my comments into a special case of a "development" release, and we all expect "less" from a development release. In any event my nit is less ab

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread Veloz
Thank-you, these links are helpful :-) Michael --~--~-~--~~~---~--~~ 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

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread Veloz
Thanks for your reply to this topic, John. I probably should have not brought up 1.2 at all, as it throws my comments into a special case of a "development" release, and we all expect "less" from a development release. In any event my nit is less about The Manual that it is with lack of comment

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread John David Anderson (_psychic_)
On Jan 5, 2007, at 9:27 AM, Veloz wrote: I am a relative new-comer to Cake and am impressed and appreciative of the quality of effort that has gone into the project so far. However, I have found that many of my questions are not answered in "The Manual" nor in Tutorials/FAQ's, nor in the Goo

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread Ryan
This might help shed some light on the new FormHelper: http://cake.insertdesignhere.com/posts/view/15 You may also find this as a helpful resource: http://www.bloglines.com/public/cakephp Regards, Ryan Rose digiwize.com Veloz wrote: I am a relative new-comer to Cake and am impressed and appre

Re: Recommendations for code documentation / grumbles

2007-01-05 Thread Chris Hartjes
After taking a quick peek at api.cakephp.org for both the 1.1 branches and 1.2 branches, I have to agree that the documentation for 1.2x is not as good as the documentation for 1.1x. However, 1.2 hasn't been labeled as "stable" so I imagine that the API documentation for that could change before

Re: Model associations and cascading delete.

2007-01-05 Thread Tazz
Yes, I meant the constraints as they appear in the SQL table definition. You pretty much answered my question. I use MYSQL... My model is ass follows... 1 Newsletter has many Releases (Albums) 1 Release (Album) has many songs. When I delete a newsletter I want it to delete all associated albu

Recommendations for code documentation / grumbles

2007-01-05 Thread Veloz
I am a relative new-comer to Cake and am impressed and appreciative of the quality of effort that has gone into the project so far. However, I have found that many of my questions are not answered in "The Manual" nor in Tutorials/FAQ's, nor in the Google Group, etc. Ths is especially true for c

ACL/ACM installation

2007-01-05 Thread luis_y27
Hello, I've been trying unsuccessfully to set up ACL for Cake. I tried doing it as explained in the manual, initializing the database with php acl.php initdb works, the three tables are created then, I tried to run the models/controller to create some groups/user as explained in the cake manual.

Re: ER Tools

2007-01-05 Thread Larry E. Masters aka PhpNut
On 1/5/07, CraZyLeGs <[EMAIL PROTECTED]> wrote: Where is that Forum diagram again.. This one? http://phpnut.cakephp.org/img/roundtable.png http://phpnut.cakephp.org/img/roundtable.pdf -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka P

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-01-05 Thread [EMAIL PROTECTED]
i'm very interested in a joomla + cake componentplease keep us posted about how it works out. --~--~-~--~~~---~--~~ 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@goog

Re: ER Tools

2007-01-05 Thread NOSLOW
Thanks Larry, that's excellent! I knew there had to be a better way. After seeing this, I realize that you do formally define foreign keys in the database. For clarification, what harm is there if you don't actually define FK's in the database? It appears that CakePHP doesn't actually need them

Re: Preloading a div with AJAX

2007-01-05 Thread [EMAIL PROTECTED]
Makes sense, but now I'm having the issue that the controller for the div is different than the one for the main page, so it gives a can't find controller error, any idea how to get around this? --~--~-~--~~~---~--~~ You received this message because you are subs

Re: ER Tools

2007-01-05 Thread CraZyLeGs
Where is that Forum diagram again.. --~--~-~--~~~---~--~~ 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 [EM

Re: Updating multiple models simultaneously

2007-01-05 Thread francky06l
Before calling the save insert a pr($this->params['data']) and check the values of your id's ..Might as simple a wrong initialization. On Jan 5, 2:10 pm, "matt.babbs" <[EMAIL PROTECTED]> wrote: Yes, I did the Profile belongsTo User bit too. >From the User model:var $hasOne = array('Profile' =>

Re: Preloading a div with AJAX

2007-01-05 Thread francky06l
When dealing with ajax and cake, usually you use ajax to update a part of your screen. For this you would use an initial view that contains the div and whatever HTML you want in it (can also be empty). To update that div you would create another view that will just contain the "inside" div to upd

Need a little suggestion how to get my javascript file invoked

2007-01-05 Thread keymaster
Can someone please offer some instruction on how to get my javascript popup menu working within cake? The calendar javascript files are contained in: webroot/js/jscalendar-1.0/ In the header of my views/layout, I have: --

Re: ER Tools

2007-01-05 Thread Dr. Tarique Sani
On 1/5/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote: On 1/4/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: > > Larry had shown something similar he had done to me - perhaps he can > share it with the list. > The best examples that I have to show is the one I designed for the Bake

Re: Updating multiple models simultaneously

2007-01-05 Thread matt.babbs
Yes, I did the Profile belongsTo User bit too. From the User model: var $hasOne = array('Profile' => array('className' => 'Profile', 'conditions' => '', 'order' => '', 'depen

Re: ER Tools

2007-01-05 Thread Larry E. Masters aka PhpNut
On 1/4/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: Larry had shown something similar he had done to me - perhaps he can share it with the list. The best examples that I have to show is the one I designed for the Bakery and a simple blog. With the Bakery I noted all associations in both d

Re: Apache configuration

2007-01-05 Thread Nimrod A. Abing
On 1/5/07, ms <[EMAIL PROTECTED]> wrote: The situztion is this: apache webserver have the DocumentRoot set to /usr/local/htdocs; I want to install CakePHP but not in the document root, so I created an alias like Alias /prova /var/www and then for that directory AllowOverride All. I copied all C

Re: lov.li - social network built on cake

2007-01-05 Thread Felix Geisendörfer
I have to agree this site looks really awesome, so congratulations from me to you for launching it. This and the launch of [ajaxian.com] a new site called Dishola [dishola.com] makes me really exited about

Re: Best practice?

2007-01-05 Thread dani
Am I on the right track? layouts/default.thtml: (for the home/start page) div header (static) renderElement(header) div menu (dynamic -> must be able to indicate which page is "active") renderElement(menu, array()) div content (dynamic -> showing articles i.e. blog) render("blog/inde

Re: how to pass an argument to other page?

2007-01-05 Thread Daniel Gomes
Thanks for help Oliver and Clemos, i got it ;) 2007/1/5, Olivier Percebois-Garve <[EMAIL PROTECTED]>: > link('+informações','/cars/form/arg1/arg2' . > $car['Car']['id'],null,null,false)?> then in your cars controller you have function form($arg1 = '', $arg2 = ''){ //your code } HTH

Re: lov.li - social network built on cake

2007-01-05 Thread Tijs Teulings
Great stuff expatrick, congratulations! I would love to see more case studies on the bakery (http://bakery.cakephp.org/categories/view/4). I think it would really help the community grow if examples like these are as widely publicized as possible. Best, Tijs expatrick wrote: http://lov.li

Re: lov.li - social network built on cake

2007-01-05 Thread Tijs Teulings
p.s. which datacenter did you pick? The site is very responsive from europe... Tijs expatrick wrote: http://lov.li is online - thanks very much to the cake development team and everyone in #cakephp for your help. lov.li is a 'community art market' - like flickr for art, crafts and handmade

Re: PayPal Direct Payment API Component problem...

2007-01-05 Thread Eric C Blount
http://www.pdncommunity.com/pdn/board/message?board.id=wppro&message.id=824 Seems it could be the version of PHP you are using. Try upgrading? This question should really have been asked in the PayPal API Developers forum, not on this CakePHP list. HTH, Eric On 1/4/07, [EMAIL PROTECTED] <[EMA

Re: several "$content_for_layout"?

2007-01-05 Thread AD7six
Hi All, On Jan 4, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: other parts of each layout can contain different static content, elements (echo $this->renderElement('my_element') ) , request actions (echo $this->requestAction(params) ) or plain old php. Not strictly accurate ;) So

Apache configuration

2007-01-05 Thread ms
The situztion is this: apache webserver have the DocumentRoot set to /usr/local/htdocs; I want to install CakePHP but not in the document root, so I created an alias like Alias /prova /var/www and then for that directory AllowOverride All. I copied all CakePHP files inside /var/www so that I have