Re: Bug: Saving HABTM relationship, Column in where clause is ambiguous

2008-05-07 Thread Grant Cox
Can you post your $hasAndBelongsToMany variable definition? I think you'll be able to fix your issue by just using the model alias prefixes in the 'foreignKey' and/or 'associationForeignKey' values. On May 7, 2:25 pm, David Christopher Zentgraf [EMAIL PROTECTED] wrote: Hi, I'm stumbling

Re: tempdocs.cakephp.org

2008-05-07 Thread Filip Camerman
superb, thanx, hadn't seen that link :) On May 6, 11:45 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On Tue, May 6, 2008 at 2:55 PM, Filip Camerman [EMAIL PROTECTED] wrote: it was actually handy to have everything on one page, would be nice to still have that as an extra. Seek and you

Re: Bug: Saving HABTM relationship, Column in where clause is ambiguous

2008-05-07 Thread David Christopher Zentgraf
Not quite sure what you're getting at, but please have a look: class User extends AppModel { var $name = 'User'; var $belongsTo = array( 'DefaultAccount' = array( 'className' = 'Account',

Re: Bug: Saving HABTM relationship, Column in where clause is ambiguous

2008-05-07 Thread David Christopher Zentgraf
That just makes it throw another error: SQL Error: 1054: Unknown column 'UserFriend.User.user_id' in 'on clause' And it's not the HABTM relationship that's causing the problem. I don't know why, but before saving a HABTM relationship Cake seems to do a lot of SELECTs for every related model,

[Consultant Needed] JRox Affiliate Manager Program + Cake Programmer Needed

2008-05-07 Thread Desgin Temp
Hello, We currently have a JRox Affiliate manager system: http://jrox.com/affiliate_software/ installed on our site and would like to hire a php/cake/jrox familiar consultant to perform some work for us. Our needs: a) Program Cake to read the jrox affiliate cookie into a cake variable. b)

RE: Making Paginator first sort direction DESC

2008-05-07 Thread Andras Kende
Hello, try this in your controller: var $paginate = array('limit' = 100, 'page' = 1, 'order' = 'DESC'); Andras Kende http://www.kende.com -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim W Sent: Tuesday, May 06, 2008 9:26 AM To: CakePHP

Re: Making Paginator first sort direction DESC

2008-05-07 Thread Tim W
Thanks for the suggestion, but unfortunately it didn't work for me. SQL Error: 1054: Unknown column 'DESC' in 'order clause' I'll spend some time to work this out at some point, i'll post when I do, unless someone's worked it out already and can tell me. Thanks Tim On May 7, 8:11 pm, Andras

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Sam Sherlock
If there are docs all over the place then either its needless duplication or merely serves to cloud already existing (or in progress doc) keeping central and support formats of docs that all (of all levels) can contribubte to is better for all concerned I am sure that the docs will expand into

Re: Something on the top of CakePHP

2008-05-07 Thread dr. Hannibal Lecter
Communism failed! and open source is definitely as much about the *individual* as the community. irony class=howcouldi Well indeed, unlike democracy which is so successful and righteous! /irony As far as I'm concerned, you can take the Cake release, pack it up with a bunch of behaviors,

CakePHP + Flex views

2008-05-07 Thread bob0
Hello, I am thinking about CakePHP and Flex interoperability. It would be nice if the V in MVC could be replaced with a Flex application. I am not just thinking about embedding Flex components into views, but about completely moving the presentation logic from html to flex. I am looking for a

How to access Cake Session Variables from a Stand Alone PHP script

2008-05-07 Thread bharath kumar
Hi All, Can anyone letme know, how to access the cakesession variables from a stand alone script. I have tried something like this and its not working. I have placed php script directly under var/www/html/test.php and and cake application under var/www/html/vhosts/cakeexample. ?php

Responding quickly as a WebService?

2008-05-07 Thread [EMAIL PROTECTED]
Hi everyone, I am trying to improve the performance of an API I provide to other systems. Requests that post data to my application now have to wait for my processing to finish (parsing, saving model-data...) before they see a simple All OK response. Since the processing is governed by the

Database wont update fast enough

2008-05-07 Thread Unite
I have a function which reads a file from the HDD (works), retrieves information from the file (works), and then writes this information to the database(works). Now my problem comes in when I try loop the function to do the above with multiple files. Everything works except when I query the

Re: Making Paginator first sort direction DESC

2008-05-07 Thread Marcin Domanski
'order' = 'Model.column DESC' On Wed, May 7, 2008 at 11:26 AM, Tim W [EMAIL PROTECTED] wrote: Thanks for the suggestion, but unfortunately it didn't work for me. SQL Error: 1054: Unknown column 'DESC' in 'order clause' I'll spend some time to work this out at some point, i'll post when

Re: Database wont update fast enough

2008-05-07 Thread Marcin Domanski
foreach($file_list as $file) { //read file contents //search to see if record exists $user_id = $this-User-query(SELECT id FROM users WHERE emailaddress = '[EMAIL PROTECTED]'); //if record does not exist write record to db $this-User-query(INSERT INTO users

Re: Database wont update fast enough

2008-05-07 Thread Unite
Whats not cakephp except the INSERT INTO. Yes i would use save but i was trying everything to see if i can get it to work. And most of it isnt the actual code just something i made up so i can illustrate the problem. How do you stop cake caching the queries? On May 7, 1:05 pm, Marcin Domanski

Re: Dynamic Report/Report Creator.

2008-05-07 Thread Penfold
Have a look at http://bakery.cakephp.org/articles/view/report-creator-component On 6 May, 09:24, laeffe [EMAIL PROTECTED] wrote: Hi all. I'm trying to create a dynamical report creator, or what you could call it. What I need is some way of specifying which models and it's related ones i

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread nate
On May 7, 5:11 am, Sam Sherlock [EMAIL PROTECTED] wrote: (if its a penny for your thoughts; how come you still have to pay 2 cents worrth - Steve Wright) Inflation. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: CakePHP + Flex views

2008-05-07 Thread kiang
http://code.google.com/p/fake-as3/ On 5月7日, 下午4時26分, bob0 [EMAIL PROTECTED] wrote: Hello, I am thinking about CakePHP andFlexinteroperability. It would be nice if the V in MVC could be replaced with aFlexapplication. I am not just thinking about embeddingFlexcomponents into views, but

Re: Database wont update fast enough

2008-05-07 Thread Unite
Have now tried using $this-User-cacheQueries = false; Doesnt work :( On May 7, 1:09 pm, Unite [EMAIL PROTECTED] wrote: Whats not cakephp except the INSERT INTO. Yes i would use save but i was trying everything to see if i can get it to work. And most of it isnt the actual code just

Re: Database wont update fast enough

2008-05-07 Thread Unite
Sorted it out. DONT USE QUERY! Rather use execute if you can. On May 7, 1:18 pm, Unite [EMAIL PROTECTED] wrote: Have now tried using $this-User-cacheQueries = false; Doesnt work :( On May 7, 1:09 pm, Unite [EMAIL PROTECTED] wrote: Whats not cakephp except the INSERT INTO. Yes i would

Warning message infecting thumbnail images occasionally

2008-05-07 Thread acoustic_overdrive
I have a thumbnailing controller which seems to be working well, but on a page with many thumbnails (around 60) occasionally one or two thumbs get corrupted with the following PHP warning message at the top of the binary image data: Warning (2): unlink(/var/www/html/bsm/app/tmp/cache/persistent/

forced download

2008-05-07 Thread crazyDavid
hi! i'm developing an application where the user uploads and downloads file. But during downloads, the files like jpegs, txt, those openable in the browser open in the browser itself. but i need them to come out as pop-ups or dialouge box with save as or a download manager/ accelerator software

Re: Responding quickly as a WebService?

2008-05-07 Thread dr. Hannibal Lecter
I don't understand. How can you know it's All OK if your processing is not done yet?? On May 7, 12:38 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, I am trying to improve the performance of an API I provide to other systems. Requests that post data to my application now have to

Component with it's own table

2008-05-07 Thread Kyle Decot
I want to make a banner ad component to randomly pick banner ads out of my table. How do I allow the component to use it's own table? Thank you as always for the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: forced download

2008-05-07 Thread Dr. Tarique Sani
On Wed, May 7, 2008 at 5:57 PM, crazyDavid [EMAIL PROTECTED] wrote: as pop-ups or dialouge box with save as or a download manager/ accelerator software to assist in download. how can this be done? thanks for the help! header('Content-Type: application/octet-stream');

Re: forced download

2008-05-07 Thread jonknee
hi! i'm developing an application where the user uploads and downloads file. But during downloads, the files like jpegs, txt, those openable in the browser open in the browser itself. but i need them to come out as pop-ups or dialouge box with save as or a download manager/ accelerator

Re: Making Paginator first sort direction DESC

2008-05-07 Thread Tim W
Thanks Marcin. I don't think i've been entirely clear. I can easily set the sort order programmatically, but when the user first clicks on a link to sort a column it automatically sorts ASC. I'd like to change that behavior to default first to DESC. I can do it by hacking around with the cake

Re: How to access Cake Session Variables from a Stand Alone PHP script

2008-05-07 Thread Sliv
What variables are you trying to access that are not available through $_SESSION? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Database wont update fast enough

2008-05-07 Thread jonknee
Whats not cakephp except the INSERT INTO. You're ignoring the ORM. For simple queries like you are performing, writing raw SQL isn't necessary (or even at all desirable). Instead you would do something like this to lookup your users: $user = $this-User-FindByEmail($email) The other queries

Re: Something on the top of CakePHP

2008-05-07 Thread Sliv
Like I always say: You are always one of two people in this world: Someone who is part of the problem, or someone who is part of the solution. Decide who you are. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Warning message infecting thumbnail images occasionally

2008-05-07 Thread jonknee
Is there any reason you are generating thumbnails on the fly? This sort of operation is much more efficient to do once (typically when images are uploaded). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: Something on the top of CakePHP

2008-05-07 Thread Dardo Sordi Bogado
Like I always say: You are always one of two people in this world: Someone who is part of the problem, or someone who is part of the solution. Decide who you are. There are 10 kind of people in the world: those who can read binary and those who can't.

RE: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Mariano Iglesias
If you don't know what inflation is we have plenty of that in Argentina, and we can certainly spare some for you. -MI --- CakeFest: December, 2008 - Buenos Aires, Argentina - http://www.cakefest.org blog:

Re: Something on the top of CakePHP

2008-05-07 Thread Dr. Tarique Sani
On Wed, May 7, 2008 at 6:21 PM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Like I always say: You are always one of two people in this world: Someone who is part of the problem, or someone who is part of the solution. Decide who you are. There are 10 kind of people in the world:

Best practice or not for using Email component in the model

2008-05-07 Thread dericknwq
There are times where I seriously feel the need to send an email from the model like at the afterSave() stage or something. Say each time a new comment is added to a post, a notification will be sent to participants depending on certain conditions. It just feels more correct having those checks

Re: CakePHP + Flex views

2008-05-07 Thread Adam Royle
https://trac.cakefoundation.org/amf On May 7, 6:26 pm, bob0 [EMAIL PROTECTED] wrote: Hello, I am thinking about CakePHP and Flex interoperability. It would be nice if the V in MVC could be replaced with a Flex application. I am not just thinking about embedding Flex components into views,

Re: Form field validation when there is no model.

2008-05-07 Thread mustan9
Thanks, I ended up creating a dummy model to do the validation. It's a pain, because a controller can present many forms that require validation. On May 6, 5:04 pm, francky06l [EMAIL PROTECTED] wrote: It reminds me this thread :

Re: Best practice or not for using Email component in the model

2008-05-07 Thread Adam Royle
Something I have wondered as well. From some light research it seems ROR uses ActionMailer::Base subclassed as a model that renders views. Maybe someone from the cake core can give their opinion. Alternatively, you could create a Email model which saves info to the database, which is then read

Re: Best practice or not for using Email component in the model

2008-05-07 Thread Marcin Domanski
Hey Alternatively, you could create a Email model which saves info to the database, which is then read from a shell scheduled in cron to send the actual emails :) I used the email component this way - Email model and saving the serialized data,template name subject etc in the db and send

force download not working / RequestHandler::respondAs()

2008-05-07 Thread dr. Hannibal Lecter
Hi all, I'm trying to force a file download, but something is wrong. I'm using 1.2 nightly (22.04.2008), and not using MediaView (I know...I'll switch to it eventually;-)). This is the relevant bit of my code: $this-RequestHandler-respondAs($download['Download']['mime_type'],

Re: Responding quickly as a WebService?

2008-05-07 Thread Dardo Sordi Bogado
Well, I think you can put $this-autoRender = false; an do echo but the real thing you should consider is implementing some batch processing and a queue system if you are planing to grow that big. On Wed, May 7, 2008 at 11:02 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I will not know that.

Re: Something on the top of CakePHP

2008-05-07 Thread keymaster
I can't imagine myself using a huge bundled set of extra stuff, unless it was part of a cakephp initiative that was officially, and reliably, supported into the future with successive cake releases. Anything less, I would probably regard as too fly-by-nght to base my systems on. The extra stuff

Re: CakePHP + Flex views

2008-05-07 Thread John David Anderson
On May 7, 2008, at 7:36 AM, Adam Royle wrote: https://trac.cakefoundation.org/amf I've used this for a project and it worked really well. -- John On May 7, 6:26 pm, bob0 [EMAIL PROTECTED] wrote: Hello, I am thinking about CakePHP and Flex interoperability. It would be nice if the V

Re: Responding quickly as a WebService?

2008-05-07 Thread [EMAIL PROTECTED]
I will not know that. but once I know that the contents of the POST looks OK I want to reply... anything that happens after that (database problem or some other internal error) is my fault and not an issue relevant to the external server. I just need to sign for the package before opening and

Re: Help with CakePHP URLs thru SonicWall SSL VPN

2008-05-07 Thread jonathan
As it turns out, it had nothing to do with the SonicWall or Cake. After much testing, I ended up transposing single quotes and double quotes in some JavaScript calls and all was well again. I cannot begin to explain why this worked, but am happy to be back on track.

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread aranworld
I really enjoy contributing to the official Cake Book, however, it is a very serious problem that the contribution and editing process is so obscure. The black box model absolutely does not work and significantly reduces the incentive to contribute. I have personally spent a lot of time working

CakePHP and Flickr -- sitepoint example

2008-05-07 Thread Louie Miranda
http://www.sitepoint.com/print/photo-gallery-cakephp-flickr I tried to follow this.. But, I got stuck on: /app/controllers/gallery_controller.php: class GalleryController extends AppController{ var $name = 'Gallery'; var $components = arrayhttp://www.sitepoint.com/glossary.php?q=%23#term_72

Re: Something on the top of CakePHP

2008-05-07 Thread NOSLOW
Keymaster, you make some very good points. Picking and choosing the right extension for the job follows the philosophy of Cake to begin with: Have a lean, mean core and extend as needed. Being careful of what is added is just being smart. Having the Bakery as a one-stop shopping place for such

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread nate
Believe me, we all want to see this as well, and having a more clear communications system for the cookbook (particularly comments on revisions, feedback on user-submitted content, and RSS feeds to track changes) are top-priority for the cookbook application. Unfortunately we're still a

Re: CakePHP and Flickr -- sitepoint example

2008-05-07 Thread Chris Hartjes
On Wed, May 7, 2008 at 11:27 AM, Louie Miranda [EMAIL PROTECTED] wrote: http://www.sitepoint.com/print/photo-gallery-cakephp-flickr I tried to follow this.. But, I got stuck on: /app/controllers/gallery_controller.php: class GalleryController extends AppController{ var $name =

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread John David Anderson
On May 7, 2008, at 9:24 AM, aranworld wrote: I really enjoy contributing to the official Cake Book, however, it is a very serious problem that the contribution and editing process is so obscure. The black box model absolutely does not work and significantly reduces the incentive to

Re: Warning: imagejpeg(): Unable to open

2008-05-07 Thread maxi
Problem was permissions... Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread seb
Hi all bakers outta here ! I've built a RSS feed with the RequestHandler trick. Works like a charm in Firefox ! Using the same feed address with Thunderbird fails as it just displays the very last article I inserted in my database and not the 10 latest ones like in Firefox. What's wrong ?

Re: Something on the top of CakePHP

2008-05-07 Thread Sliv (Tim MacAleese)
What I still don't understand, is all the people that make these huge plans that involve massive amounts of work, yet I don't see these people doing arguably way less work to write test cases and patches for bugs/enhancements. Is it because these people only want to develop if they're in total

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread aranworld
It really helped with the ACL Component section, when you just posted old content to use as a guideline. In general, if you in the dev team have an outline of how things should be structured, just throw up some empty sections. You already have done this to a certain extent, but if you have even

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread Sliv (Tim MacAleese)
I think your subject is the answer? :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Something on the top of CakePHP

2008-05-07 Thread Chris Hartjes
On Wed, May 7, 2008 at 12:05 PM, Sliv (Tim MacAleese) [EMAIL PROTECTED] wrote: What I still don't understand, is all the people that make these huge plans that involve massive amounts of work, yet I don't see these people doing arguably way less work to write test cases and patches for

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Sliv (Tim MacAleese)
I gather the overall feeling is just that feedback be provided on all submissions, whether negative or positive, so submitters know the deal. I myself have made some contributions, some reject, some approved, some into the void of no response. Personally, I don't care whether something is

Re: Warning message infecting thumbnail images occasionally

2008-05-07 Thread acoustic_overdrive
I'm not... kind of. The ImageServer class caches thumnails automatically, so it will only happen once when an image is first requested, or if requested in a size that hasn't been asked for before - otherwise the thumbnail is read from disk and output with the correct mime header. I can post the

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
If you look here: https://trac.cakephp.org/ticket/3567 You'll see Gwoo stating that you can organize your code into folders, but the URL will not change. I gather this means you may want to try either unique controllers, or a combination of routes and method logic in your controllers to handle

Re: Warning message infecting thumbnail images occasionally

2008-05-07 Thread Sliv (Tim MacAleese)
post code here http://bin.cakephp.org and then post the URL to the group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread seb
Sliv (Tim MacAleese) wrote: I think your subject is the answer? :P Damn ! :D Well, I do not use TB a lot, at all I must admit, for RSS feeds and I just wanted to check is everything was okay. Obvisouly, there's a gremlins hidden somewhere. Opera also fails the same way than Thunderbird A

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread nate
Well, looks like your fledgling wiki has already become a haven for jackasses with axes to grind. Good luck trying to maintain it. On May 7, 1:47 am, Aaron Shafovaloff [EMAIL PROTECTED] wrote: The URL is now: http://www.unauthorizedcakeguide.com/ On May 6, 11:16 pm, Dr. Tarique Sani

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread John David Anderson
On May 7, 2008, at 10:09 AM, aranworld wrote: It really helped with the ACL Component section, when you just posted old content to use as a guideline. In general, if you in the dev team have an outline of how things should be structured, just throw up some empty sections. You already

Re: Component with it's own table

2008-05-07 Thread Sam Sherlock
make models that your comp loads via app::import 2008/5/7 Kyle Decot [EMAIL PROTECTED]: I want to make a banner ad component to randomly pick banner ads out of my table. How do I allow the component to use it's own table? Thank you as always for the help.

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread Sliv (Tim MacAleese)
Have you run this through a feed validator like http://validator.w3.org/feed/ It might flag something... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: CakePHP and Flickr -- sitepoint example

2008-05-07 Thread BrendonKoz
Yeah, because you used the print version, some JavaScript or pre- render code was initiated to create an index or bibliography of sorts (at the bottom of the page) for references to any auto-detected words that have a description/definition defined by Sitepoint. Similar issues will occur if you

Re: Bug: Saving HABTM relationship, Column in where clause is ambiguous

2008-05-07 Thread NOSLOW
I see one problem in that you're not following the Cake conventions when naming your HABTM join table. The convention is to join the table names in alphabetical order (keeping both table names plural): 'joinTable' = 'user_friends', should be 'joinTable' =

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread aranworld
Would the trac model work? We submit our changes/additions as tickets, which go into a publicly viewable ticket area, in which developers and users can comment and revisions can be made to the 'patches'. If something passes muster, then it gets added to the main documentation. In fact, maybe

Re: PUT and DELETE methods in a RESTful context, after IRC chat with Nate Abele

2008-05-07 Thread nate
Hi Gustavo, sorry about taking forever to respond. These two things are each handled at different levels of the framework. Routing the REST requests happens like so: // config/routes.php: Router::mapResources(post); That creates REST routes for the PostsController. For handling raw PUT or

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Sliv (Tim MacAleese)
It's my understanding that part of the idea behind the cookbook submission process was to migrate the flood of documentation tickets away from trac. Unless you're talking about a separate trac repo/site. Would the trac model work? --~--~-~--~~~---~--~~ You

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread David Coll
Nate, as one of the dev leader, you should temper your language, I find it harsh I don't see exactly where is the problem with that wiki. In fact, I've made a wiki myself to help me think throught some process that weren't correctly described here and there when the book was still just a

Hierarchical Tree Setup

2008-05-07 Thread benjam
I have a location table with the following fields: --- id name location_id -- this is a parent location id --- I have a couple of questions about getting this to work the way I want it to using scaffolding. 1- How can I set it up so the location_id select box on the form has a default

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Chris Hartjes
On Wed, May 7, 2008 at 2:23 PM, David Coll [EMAIL PROTECTED] wrote: I don't see exactly where is the problem with that wiki. In fact, I've made a wiki myself to help me think throught some process that weren't correctly described here and there when the book was still just a thought. I

Re: PUT and DELETE methods in a RESTful context, after IRC chat with Nate Abele

2008-05-07 Thread nate
I also recently wrote an article on the subject which will be posted on C7Y soon, so stay tuned for that. On May 7, 1:24 pm, nate [EMAIL PROTECTED] wrote: Hi Gustavo, sorry about taking forever to respond. These two things are each handled at different levels of the framework.  Routing the

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread seb
Sliv (Tim MacAleese) wrote: Have you run this through a feed validator like http://validator.w3.org/feed/ It might flag something... Yes ! Thanxx for giving me the tip :) I am displaying my news in their complete form on my index page, I do not need any 'view' action for each news. So all

CakePHP and Oracle... Can't get it to work :(

2008-05-07 Thread 0xCAFE
First, I download version 1.2.0.6311 beta from the CakePHP website. I tried to connect to Oracle and it does not work. Here is my database.php content : var $default = array( 'driver' = 'oracle', 'persistent' = false, 'connect' = 'oci_connect',

ARGHH - why is geneateList deprecated

2008-05-07 Thread MikeK
Talk about frustrating -- tried moving from 5875 to 6311 code today and was quite frustrated by this. I only have like 50 different calls to generateList across 10 files that will need manual recoding. Is there an easier way? I mean what was wrong with this API? I'll stay on 5875 until I have

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Sam Sherlock
try http://blackreed.com/2008/04/deprecated-generatelist-in-cakephp-12/ hth - S 2008/5/7 MikeK [EMAIL PROTECTED]: Talk about frustrating -- tried moving from 5875 to 6311 code today and was quite frustrated by this. I only have like 50 different calls to generateList across 10 files that

Re: MySQL Views support in Cake 1.2

2008-05-07 Thread nate
Cake has no explicit support for database views, although they usually work fine for reads. However, one gotcha is that, when setting up your views, you have to alias all the columns, otherwise MySQL will report the original table names that the results are from, and the field arrays will be

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread nate
The problem with the API is that it sucks. Having written both generateList and it's replacement, I'm allowed to say that. ;-) The method name was ugly, the parameter list bloated, and the implementation was wrong on several levels. It has since been refactored into the more beautiful

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread SupaPhreak
The way to access that functionality now is with model::find('list'); A Short-Term solution would be to overload generateList in your app_model.php. On May 7, 3:02 pm, MikeK [EMAIL PROTECTED] wrote: Talk about frustrating -- tried moving from 5875 to 6311 code today and was quite frustrated

Re: adv routing questions ....i think

2008-05-07 Thread Esoteric
I don't even see a point to organizing your controllers if the URL isn't going to change, seems pointless because your controllers can still conflict. I think the ticket in question almost makes the feature request worse by not changing the URL and allowing the organization of controllers, but

AJAX updating a field.

2008-05-07 Thread mustan9
Hi, Boy, I'm having trouble getting the run down on how to do AJAX in Cake 1.2. I want to do something very simple. Display a value of 123 in a view, and when the user clicks a link have it call a controller, and update that value to 555. A very simple AJAX request. In my controller I have two

Re: CakePHP and Oracle... Can't get it to work :(

2008-05-07 Thread seb
Fatal error: Call to undefined function oci_connect() in XAMPPLite \htdocs\cake\cake\libs\model\datasources\dbo\dbo_oracle.php on line 144 What am I doing wrong here ? This means that you don't have the Oracle client libraries installed.

Cake developer Job in New Orleans

2008-05-07 Thread Gráinne O'Neill
Hi everyone, My office is hiring someone to work on the application that I started using cake. Please apply to [EMAIL PROTECTED] if you are interested. It is a good job with lots of autonomy and the ability to be creative in your work. Also, its for a good cause. Thanks and good luck! Grainne

HasMAny along with HABTM

2008-05-07 Thread rpupkin77
Okay, So I am working on my second cake project, this one has a much more complicated data structure. I have one table called schools which lists colleges, I have another called Majors which lists majors, and finally I have a join called school_majors. I ahve set up a HABTM (majors) on the

Re: AJAX updating a field.

2008-05-07 Thread Sliv (Tim MacAleese)
Well the first thing that seems wrong is your vote method is setting ajaxVote to 555 no matter what. Maybe you want to set that to the passed value instead... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: adv routing questions ....i think

2008-05-07 Thread trav
I agree with Erik. I think this is a major problem when programming a large site with hundreds of tables across many databases. So to sum up, my options are: 1. create unique models and controller name? 2. some routes + controller magic - (can you explain more on this Tim?) 3. wait for this to

Strange habtm problem - saving in other tables

2008-05-07 Thread largon
Hi, I'm on a project that users can add other users as friends, families, or block them. So I've set up some habtm behaviors for that. The tables (friends, families, blocks) look very similar, all with (user_id, friend_id) or (user_id, family_id) as keys. But when I save a data, like calling:

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
I guess I was thinking along the lines of pointing both routes to the same controller then using passed params in shared methods: Route::connect('/db1/users/*' = array('controller' = 'controllerForBoth')); function myControllerMethod() { if($this-params['url']['url'] == 2. some routes +

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
3. wait for this to be fixed in cake core? I don't think that will happen unless: 1) It doesn't break something the Core Devs are concerned about (like backwards compatibility or something) 2) A ticket was opened with a test case, a patch and a good argument This is just my speculation, of

How to set 'on update cascade' ?

2008-05-07 Thread John
Hi, I'm using cakephp 1.2. I've 3 tables on mysql database: Customers (id, name, surname, code_id), Codes(id, customer_id), Jobs(id, type, date, code_id). When i insert a new Customer in the view and i press the button Add all the fields of Customers are filled with the data inserted and a code

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread MikeK
Thanks for the response, especially yours Nate. It's not a simple find and replace as the syntax of the additional calls must be massaged for each one and is different for various forms and models. Yes my editor has search and replace and your tone SUCKS. It says I should consider myself LUCKY

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Aaron Shafovaloff
Whoaa Chill out dude. At the end of the day, these guys have built a great framework and they're volunteering their time to help on groups like this. Try out the IRC channel sometime, perhaps you'd feel more comfortable there. On May 7, 4:52 pm, MikeK [EMAIL PROTECTED] wrote: Thanks

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Chris Hartjes
On Wed, May 7, 2008 at 6:52 PM, MikeK [EMAIL PROTECTED] wrote: Thanks for the response, especially yours Nate. It's not a simple find and replace as the syntax of the additional calls must be massaged for each one and is different for various forms and models. Yes my editor has search

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread nate
Insert about 5 minutes worth of hearty laughter here First of all yes, you should consider yourself lucky that you got a response from me at all, since I usually don't tolerate complainers on my mailing list. If you think my tone sucked, you clearly don't know me; you got off pretty easy. I'll

Re: Warning message infecting thumbnail images occasionally

2008-05-07 Thread acoustic_overdrive
OK here's the controller (same as above): http://bin.cakephp.org/view/2109481359 and here's the ImageServer class. http://bin.cakephp.org/view/73314042 Hope someone can help! On May 7, 5:23 pm, Sliv (Tim MacAleese) [EMAIL PROTECTED] wrote: post code herehttp://bin.cakephp.organd then post

cascade save

2008-05-07 Thread José Selesán
Hi people. I have an issue saving a model and its related models. I have thre tables: - trivias(id, titulo) - trivia_preguntas(id, trivia_id, texto) - trivia_opciones(id, pregunta_id, texto, correcta) And the corresponding models: class Trivia extends AppModel { var $name = 'Trivia';

  1   2   >