Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread John David Anderson
On Sep 18, 2007, at 8:51 PM, rtconner wrote: > > Can I be there AND be a square? No. By being there, you are (by defintion) cool. -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb
Hi Chris, Thanks for your input. As I mentioned we've been updating the core from the 1.2.x branch in the SVN quite regularily and without major issues. This is why I was surprised to even think that the core was broken not only unstable). Now with you comment in mind, we've exported a version fr

Re: Bake 1.2 not showing all my tables

2007-09-18 Thread [EMAIL PROTECTED]
Hi, OK I think I figured out the caching problem.. I had to go into the \app\tmp\cache\models\ and delete off those files from there.. that seems to have fixed it. Did anyone else also face such a similar problem? Regards Vinci On Sep 18, 5:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >

Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread rtconner
Can I be there AND be a square? Or are the two mutually exclusive? --~--~-~--~~~---~--~~ 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

Re: CakePHP and learning..

2007-09-18 Thread John David Anderson (_psychic_)
On Sep 18, 2007, at 7:57 PM, Gould, Adrian wrote: > > Hi everyone > > Just to let you know I am using CakePHP as a teaching tool this > semester > here in Western Australia. > > I first gave the students some foundation PHP skills, and that > included > database operations, but no OOPS at th

RE: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Mariano Iglesias
You have the iTunes feed right there on live: itpc://live.cakephp.org/shows/index.rss -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE

Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI
Hi Samuel, Well, it's pouched again. So you can check for yourself ;) On Sep 18, 10:10 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > yea that's not the actual download, it's a page with links to it. > > On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I just wanted to point

CakePHP and learning..

2007-09-18 Thread Gould, Adrian
Hi everyone Just to let you know I am using CakePHP as a teaching tool this semester here in Western Australia. I first gave the students some foundation PHP skills, and that included database operations, but no OOPS at the beginning. Since then they have been doing the IBM tutorials on Cake.

RE: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Gould, Adrian
Would be great if the show was recoded for podcasting/vidcasting via iTunes or such I would certainly subscribe to it and recommend to my students! Ady -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Loiselle aka phishy Sent: Wednesday, 19

Re: log php error messages

2007-09-18 Thread Grant Cox
I've noticed this too, and assumed it was because I use a custom log class. When DEBUG > 0, then any notices, warnings and errors are logged to the /app/tmp/logs/error.log with my own debug statements. When DEBUG = 0 though, none are logged. In both cases, the "log_errors" and "error_log" settin

Re: Forms that add/edit multiple models

2007-09-18 Thread Geoff Ford
As long as the form elements are named using the cake conventions i.e. name="data[ModelName][fieldName]" (best acheived by using the FormHelper functions) there should be no difference between single and multi-model forms. The only difference is when you need to validate both models before saving

Re: Custom SQL Query for BelongsTo Assitiation

2007-09-18 Thread Grant Cox
If your association has a dynamic foreign model, then you need to rebind the association before each request to ensure the correct model is used. Or, if the model stays the same, but that model's table changes, then you just want to change the associated model's "useTable" property before each re

Spoofing / Otherwise $this->data

2007-09-18 Thread Femi Taiwo
Hi all, Maybe Let's say I'm trying to create a new record using a form and these are the fields in model Article - id, name, content etc Naturally I'd just go ahead to do a $this->Article->save($this->data) with the form elements 'name' and 'content' in the view. I also have the validate optio

Re: Cake Project Planning

2007-09-18 Thread Adam Royle
Since I only ever implement someone else's designs, I just print out their design and go through each section and link and write notes about how I will implement - ie. what controller & action it should be. Jot down anything unusual or special. Then I create my database based on information displa

Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon
ok, here's the FULL solution (ran into some other problems, hehe): following is copy/paste'd from the Mint forum thread at http://www.haveamint.com/forum/troubleshooting/629/birdfeeder_pepper_and_the_cakephp_framework#post_5640 Ok, this has been resolved, once and for all :) NOTE: I'm sure the

Re: log php error messages

2007-09-18 Thread Claudia
Thanks for your replies. @AD: The error logs are not filled if debug is set to 0. Of course you are correct that there should not be any errors in an online page but it would be nice to be sure about it. @Marcus: Unfortunately I do not have access to this log. Apart from that I would like to log

CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Jeff Loiselle aka phishy
Hello Fellow Bakers! We have just released a new live podcast for CakePHP called "The Show." The Show is a weekly live internet radio broadcast where we discuss CakePHP-related topics and answer questions live via IRC, Skype, and telephone. The Show was conceived after core developer Nate Abele

Radinks image uplaoding - bug on resize

2007-09-18 Thread Owki
I use the Radinks applet 3.12 for image upload on my site. It seems there is a bug when the client-side resize function is activated. The last image of the group is uncomplete on the server. Has anybody used this applet with image resizing? --~--~-~--~~~---~--~~ Y

Re: Database Migrations ala RoR

2007-09-18 Thread gonzoprosperity
Existing data is definitely NOT hosed. As Grant Cox points out below, its really for schema modification. And the only data changes that might be executed were if you wrote any DROP table / column statements. Also, data from an arbitrary DB can be generated via set of INSERT statements, which in

Re: Cake Project Planning

2007-09-18 Thread jwerd
Actually that sounds great. I need to get omnigraffle but in the mean time, do you want to send me a copy? On Sep 18, 12:42 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > I am working on an omnigraffle stencil set if you think that might be helpful > > Sam D > > On 9/18/07, jwerd <[EMAIL PROTE

Forms that add/edit multiple models

2007-09-18 Thread nryan
Hello -- I have another question regarding the 'right way' to do something with cake. I have a form on a page which updates 2 different models. Is there a recommended way to structure the page in cake? Like, where should the form-handling logic go? Anyone have a suggested way to make the most out

Re: Cake (and Bake) error in cake/libs/model/dbo/dbo_mysql.php in function describe

2007-09-18 Thread Jeff Brown
Hi again, I hadn't mentioned before but my change was done in file: /* SVN FILE: $Id: dbo_mysql.php 5612 2007-08-30 01:49:55Z phpnut $ */ Anyway, another problem I discovered, trying to move my database into cake with bake, As I'd mentioned earlier, it was strange that bake wasn't quite working r

Re: Cake Project Planning

2007-09-18 Thread Samuel DeVore
I am working on an omnigraffle stencil set if you think that might be helpful Sam D On 9/18/07, jwerd <[EMAIL PROTECTED]> wrote: > > I am looking for suggestions for software that you use to plan your > projects, or guidelines you follow when planning. I have a pretty > large project but I want

Cake Project Planning

2007-09-18 Thread jwerd
I am looking for suggestions for software that you use to plan your projects, or guidelines you follow when planning. I have a pretty large project but I want to plan it out a lot better and I have a good feeling there is software out there to help me acheieve this. Preferably mac. It can be a

Cake (and Bake) error in cake/libs/model/dbo/dbo_mysql.php in function describe

2007-09-18 Thread [EMAIL PROTECTED]
Hi group. New to cake, but I like the concept, installed, and tried bake.php on a table in a database, it kept giving me very strange results. Finally I just went with it to see if I could get things working. after some other configuration issues, I pointed at my 'questions' table page. http:/

Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon
Chris, thank you! I went to your blog and searched 'Mint' and found the answer... For future reference, the Bird Feeder plugin for Mint requires that you add two lines of code to your feed template. BEFORE those two lines of code, you have to instantiate the global 'Mint'. The article I found at

Re: CakePHP, RSS, and Mint

2007-09-18 Thread Chris Hartjes
On 9/18/07, Brad Dillon <[EMAIL PROTECTED]> wrote: > > Thanks for the tip McFadly, I'll be sure to check it out right away. > > Just wanted to point out that Mint itself works great with cake. No > problems getting it set up at all. The only issue I've been having are > with the feed tracking plug

Re: I can no longer directly access the index method?

2007-09-18 Thread [EMAIL PROTECTED]
I had the same issue when updating. I created a copy method that allowed me to generically call a copy method and give the item I wanted to copy as a parameter. After updating to the branch, I received the same error. My workaround was to name the method _copy in app_controller, and then make a

Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon
Thanks for the tip McFadly, I'll be sure to check it out right away. Just wanted to point out that Mint itself works great with cake. No problems getting it set up at all. The only issue I've been having are with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint for stat tracking,

Unexpected behaviour in 'required' validation rule (v 1.2)

2007-09-18 Thread Farez
Hi, I'm wondering if I'm doing something wrong here (have searched docs, sources and archives and can't find an answer). The 'required' rule seems to be broken as it still reports an error even when the field is not empty. The rule I have is: 'email' => array('rule'=>'required') I traced this

Re: I can no longer directly access the index method?

2007-09-18 Thread Chris Hartjes
On 9/18/07, AD7six <[EMAIL PROTECTED]> wrote: > I did some investigations (since I also find myself affected): > https://trac.cakephp.org/changeset/5628/branches/1.2.x.x/cake/dispatcher.php > > This means that it is not possible to define a generic web accessible > method in the app controller, wh

Re: I can no longer directly access the index method?

2007-09-18 Thread AD7six
On Sep 18, 4:23 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Sep 14, 12:37 am, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > > "You are seeing this error because the private class method index > > should not be accessed directly." > > > Apparently this is part of the latest SVN update of 1.2.

Re: Display data from two related tables on one page

2007-09-18 Thread Dr. Tarique Sani
On 9/18/07, Indian Baker <[EMAIL PROTECTED]> wrote: > when I'm viewing a user's page like localhost/blog/users/view/3/ > I see the user details, like name, username password etc etc. > What I want is below that I should also get to see a list of all his > postings You need to set up an associat

Re: I can no longer directly access the index method?

2007-09-18 Thread Chris Hartjes
On 9/13/07, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > "You are seeing this error because the private class method index > should not be accessed directly." > > Apparently this is part of the latest SVN update of 1.2. Ideas? > Thoughts? Explanation? Thoughts: something this broken would've

Display data from two related tables on one page

2007-09-18 Thread Indian Baker
Hi, This may be a very simple one, but I'm stumped. What I need to do is Say I have the same blog example.. what I want is when I'm viewing a user's page like localhost/blog/users/view/3/ I see the user details, like name, username password etc etc. What I want is below that I should also get t

Re: I can no longer directly access the index method?

2007-09-18 Thread AD7six
On Sep 14, 12:37 am, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > "You are seeing this error because the private class method index > should not be accessed directly." > > Apparently this is part of the latest SVN update of 1.2. Ideas? > Thoughts? Explanation? Thoughts: revert a couple of re

Re: Display data from two related tables on one page

2007-09-18 Thread fr3nch13
http://manual.cakephp.org --~--~-~--~~~---~--~~ 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 PROTECT

Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread Samuel DeVore
yea that's not the actual download, it's a page with links to it. On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote: > > Hi, > > I just wanted to point out that the nightly build file, > 1.2.x.x_17.09.2007.tar.gz from > http://cakephp.org/downloads/index/nightly/1.2.x.x > is only 20 bytes. > > Thank

quoting error

2007-09-18 Thread csikosjanos
Hello, I have a error message in cake v1.1.16 and 1.1.17: Query: SELECT `Painting`.`year` FROM `paintings` AS `Painting` LEFT JOIN `places` AS `Place` ON (`Painting`.`place_id` = `Place`.`id`) LEFT JOIN `compositions` AS `Composition` ON (`Painting`.`composition_id` = `Composition`.`id`) LEFT JO

Bake 1.2 not showing all my tables

2007-09-18 Thread [EMAIL PROTECTED]
Hi, I've been using bake to bake all Model Views and Controllers, it has been working fine, but strangely today, I created a couple of new tables, and when I run Cake Bake it doesn't show me the new tables. Even if I manually create the Models and Controllers, it still asks me to create the table

Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Chris Hartjes
On 9/18/07, Seb <[EMAIL PROTECTED]> wrote: > > > We've ran into a few issues with using admin routing with this > version, to a point where I asked a dev to start a new app from > scratch, with the latest core and configuring admin.routing properly. > The results weren't great to tell you the leas

Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb
Hi Adam, Good point you're raising! Though we've been updating from that branch for as long as the project has been going (~6months now) and it't proved pretty good! Now that's broken more than unstable. But yeah.. awesome point.. I'll give that a try in the morning!! Cheers mate! Seb. On Sep

Re: $form->input() syntax for associations not following Cake conventions

2007-09-18 Thread Chris Hartjes
On 9/18/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote: > > How should I change the call to $form->input() to show a select-list? > The list with audiences is available to the view in variable > $audiences. Try this code using 1.2.x.x $form->input('ade_id', array('values' => $audiences)); Hop

Re: Problem with Sessions Component

2007-09-18 Thread Chris Hartjes
On 9/17/07, Matt <[EMAIL PROTECTED]> wrote: > > I'm having trouble specifically with writing once to a session. As > soon as I write once to a session every page in my cake app goes > blank. > > I've spent way too much time with this session component. I don't know > how to approach this problem a

Re: log php error messages

2007-09-18 Thread Marcus T. Jaschen
Claudia wrote: > Hi there > > How can I log any notice/warning/error thrown by php? PHP (not CakePHP) warnings and errors can be logged to syslog or to a file, search php.ini for the 'error_log' setting. Marcus --~--~-~--~~~---~--~~ You received this message be

Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI
Hey Adam, Good One ;) On Sep 18, 12:54 am, "Adam Royle" <[EMAIL PROTECTED]> wrote: > The cakePHP team are very code-efficient. : ) > > - Original Message - > From: "DragonI" <[EMAIL PROTECTED]> > To: "Cake PHP" > Sent: Tuesday, September 18, 2007 2:52 PM > Subject: Nightly Build Problem

Re: log php error messages

2007-09-18 Thread AD7six
On Sep 18, 12:56 pm, Claudia <[EMAIL PROTECTED]> wrote: > Hi there > > How can I log any notice/warning/error thrown by php? Did you look at /app/tmp/logs/errors.log ? One would hope that you don't have any php errors when a site goes live. hth, AD --~--~-~--~~~

log php error messages

2007-09-18 Thread Claudia
Hi there How can I log any notice/warning/error thrown by php? I know how to log cakeerrors like missing_controller (I adapted http://www.ad7six.com/MiBlog/EmailMeErrors) but this does not log any php errors. What I want to achieve at the end is that the user does not see any errors (which is w

Custom SQL Query for BelongsTo Assitiation

2007-09-18 Thread [EMAIL PROTECTED]
Hello, I have the following model: class Organiserobject extends AppModel { var $name = 'Object'; var $belongsTo = array( 'ReferenceObject' => array('className' => 'ReferenceObject', 'forei

$form->input() syntax for associations not following Cake conventions

2007-09-18 Thread Martin Schapendonk
Hi, Using latest cake alpha (r5427). I have an association between two models that doesn't follow Cake conventions ("Activity belongsTo Audience" and its counterpart "Audience hasMany Activity"). Cake's convention demands that the association is on Activity.audience_id. In my case, it isn't, it

Re: disable POST from another site

2007-09-18 Thread Sergei
Yes, I forgot about it. On 18 сент, 12:48, McFadly <[EMAIL PROTECTED]> wrote: > Sergi - > check out the Request Handler : --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Adam Royle
Hi Seb, Seems you are looking at the latest branch, which is not necessarily stable. Try using the trunk: https://svn.cakephp.org/repo/trunk Cheers, Adam - Original Message - From: "Seb" <[EMAIL PROTECTED]> To: "Cake PHP" Sent: Tuesday, September 18, 2007 5:18 PM Subject: Calling cor

Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb
Mmmm... my dyslexia's getting quite bad ain't it... let me try again When calling /admin/controller/index variable $this- >params['action'] becomes admin_index at line 163 which is quite right, but then the check on line 173 fails because $protected contains a list of *ALL* methods in the ap

Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb
Hi guys, I'd be interested to hear any of the core developers (nate, nut, gwoo and co.) to tell me a little more about admin.routing in the latest 1.2 (atm r5669 - though the dispatcher.php was last modified in r5628) We've ran into a few issues with using admin routing with this version, to a p