Re: Database wont update fast enough

2008-05-07 Thread laeffe
Since cake uses the MVC pattern which incorporates a Model which in turn is an abstraction of your data source. So in order to do it by the MVC pattern and getting closer to "the cake way" you need to utilize your models instead. I would write something like this: foreach($file_list as $file) {

Re: Responding quickly as a WebService?

2008-05-07 Thread [EMAIL PROTECTED]
You are probably right about that. I am hoping to have to do that a bit later rather than sooner though. :) I figured out why my echoes wouldn't flush... It is typical really :) With autoRender = false I have tried a small test like this: echo 'Hi there'; flush(); @ob_flush(); sleep(3); // no mo

find('all') combine problem

2008-05-07 Thread jwerd
I always follow the CakePHP standards and the way to utilize the automagic part of CakePHP but sometimes I run into a problem where I have an existing database and it's just not possible to change the structure and thus I have to find a way around it, somehow. Picture this: 3 Tables projects id

Re: Open Flash Charts in Cake

2008-05-07 Thread Elmo
Also check out this blog entry about App::import(): http://cakebaker.42dh.com/2008/03/26/loading-vendor-files/ On Apr 21, 2:23 pm, ScottieBoy4 <[EMAIL PROTECTED]> wrote: > I've found a really slick library for generating flash charts and > graphs w/a PHP wrapper. I can get it to work outside of

Re: Restrict URLs and Views

2008-05-07 Thread mbavio
Use the RequestHandler Component. Cheers, mbavio On 8 mayo, 00:03, codejunkie <[EMAIL PROTECTED]> wrote: > Hi > > I want to restrict the views and data shown. > > Like we implement a view (display) for controller (Users), and there's > another view (json_display) which only provides json data.

Re: 1.1 ajax->observefield for dynamic select... possible?

2008-05-07 Thread b logica
If you're not too attached to Prototype you could have a look at liveQuery: http://docs.jquery.com/Plugins/livequery Of course, you then lose all the ajax helper functionality. On Wed, May 7, 2008 at 8:31 PM, AussieFreelancer <[EMAIL PROTECTED]> wrote: > > Hi, is it possible to use the ajax ob

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

2008-05-07 Thread David Christopher Zentgraf
Since I'm manually specifying the table name I can call it whatever I want actually. No, the problem turned out to be in one of my validation functions, the checkUnique() function I just took straight from the manual. For some reason it only came up as a problem in the context of HABTM saves

Re: Something on the top of CakePHP

2008-05-07 Thread b logica
On Wed, May 7, 2008 at 12:10 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > We have a winner! > > For many people it is a difficult thing to swallow your pride, tell > your ego to shut the fuck up and help build out someone else's vision > even when you know deep down inside that their visio

Restrict URLs and Views

2008-05-07 Thread codejunkie
Hi I want to restrict the views and data shown. Like we implement a view (display) for controller (Users), and there's another view (json_display) which only provides json data. I want that the json data can only be used within the application and cannot be seen directly . I dont want users t

Re: Hierarchical Tree Setup

2008-05-07 Thread Adam Royle
I can't help you with the scaffolding - never used it, but it's certainly possible to do what you want. 1) Do this in your view. echo $form->input('Product.parent_id', array('options' => $categories, 'empty' => '-- Top Level --')); You might need this in your model... function beforeSa

Re: One more 5875->6311 migration question

2008-05-07 Thread MikeK
Forgot to ask - please point me to the documentation of namedArgs and passedArgs ;) --~--~-~--~~~---~--~~ 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 u

Re: One more 5875->6311 migration question

2008-05-07 Thread MikeK
thanks guys - first I've heard of passArgs and namedArgs -- it's not like there's a DOCUMENT, and theres tons of code here and around the web that does use params['pass']! I haven't been asleep and have read all thats available. THanks again! --~--~-~--~~~---~--~~

Re: cascade save

2008-05-07 Thread José Selesán
I've found a solution for this problem in the Internet. Now, I can save model Trivia and its related objectsTrivia Pregunta, but saveAll does not save the related objects TriviaOpcion for each TriviaPregunta somebody can help me? José Selesán escribió: > Hi people. I have an issue saving a mod

Re: One more 5875->6311 migration question

2008-05-07 Thread Gwoo
Oh and if you need a stable version try 1.1. Anyway no one on the dev team ever claimed 1.2 alpha or pre beta would not change. Also, you were using params['pass'] incorrectly. It is not meant to be accessed. It has been documented to use passedArgs and namedArgs for quite some time. both are prop

Re: One more 5875->6311 migration question

2008-05-07 Thread Sliv (Tim MacAleese)
At last, an opportunity to paste a link to Chris' new about page kitteh! http://www.littlehart.net/atthekeyboard/about/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: One more 5875->6311 migration question

2008-05-07 Thread Gwoo
https://trac.cakephp.org/wiki/changelog/1.2.x.x --~--~-~--~~~---~--~~ 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 emai

One more 5875->6311 migration question

2008-05-07 Thread MikeK
Came across another migration issue - I see parameters which were previously passed in params['pass'] are now in params['named'] - is there an easier way to figure out when stuff is changing beneath me rather than getting broken when trying an upgrade? I read the changelog and although it says 'n

Re: CakePHP and Flickr -- sitepoint example

2008-05-07 Thread Louie Miranda
Yeah. I also figured the graphic version and the print version. I removed all previous code and started from the start. I will update this thread as I progress. Thanks On Thu, May 8, 2008 at 12:52 AM, BrendonKoz <[EMAIL PROTECTED]> wrote: > > Yeah, because you used the print version, some JavaS

1.1 ajax->observefield for dynamic select... possible?

2008-05-07 Thread AussieFreelancer
Hi, is it possible to use the ajax observefield in 1.1 to create dynamic selects? I figured this could be quite a handy way to achieve chained selects, but it seems like you can only display the returned value in a div, is that right? If it is not possible to generate dynamic selects using ajax a

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread MikeK
LOL, thanks fellas -- I only let my closest friends call me snowflake ;) Just curious -- does the find("list") and set::combine apis work on the 5875 code base too? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

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'; var

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

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread nate
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 admit my comment was a little back- handed, but if i

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 sea

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 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 suc

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: 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 co

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

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: $t

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

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

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

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

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. http://www.oracle.com/technology/tech/oci/insta

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

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 t

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 frustrate

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 find("lis

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 spli

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 t

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 tim

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',

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 a

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

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 > though

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 va

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 thou

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 rec

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 P

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 th

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' => 'friends_user

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 c

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 cake-php

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: 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: 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 San

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 ne

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: 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 t

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: 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 approv

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 >

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 [EM

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 co

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: 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 t

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 co

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 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 relativel

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 = array

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

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: 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 a

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 >> n

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: 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 t

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'], array('attachmen

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

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: 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 : > > http://groups.google.com/group/cake-php/browse_thread/threa

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 vi

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 f

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 an

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

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: http://www.Marian

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: 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" gr

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 "Cak

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: 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 uns

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 sou

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: 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'); header("Content-Di

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: 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 no

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

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/

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

  1   2   >