Re: CakeFest IV - America - Help us pick a location!

2009-11-14 Thread NOSLOW
I'd like to see the next CakeFest held aboard a cruise ship. Cake ahoy! NOSLOW -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php

Re: Redirect after AJAX request

2009-07-24 Thread NOSLOW
hey DatacenterHellas, Your best bet is to not login via an AJAX call. Just set standardSubmit: true in your ExtJS login FormPanel config and call MyFormPanel.getForm().submit({method: 'POST'});. Now you can let CakePHP handler your redirects server-side. On failure, you login page will just

Re: bug in recursive?

2009-06-07 Thread NOSLOW
No, you cannot order by related field in a find statement. You can, however, set a default order clause on related data inside the Models. If you need to vary that default join order, you'll need to dynamically unbindModel, then bindModel with the new desired sort order. In your Sito model, set

Re: Cake sheet

2008-08-23 Thread NOSLOW
Here's a few more items that have been deprecated in 1.2 that are listed on that sheet: Global Functions: vendor(...), cache(...) Controller: $beforeFilter, cleanUpFields() Model: execute(data), findAll(...); findNeighbours(...), findCount(...), findAllThreaded(...) Model onError() callback was

Re: keeping model cache might improve performace

2008-08-18 Thread NOSLOW
I've been digging into caching issues lately as I've seen a terrible slow down recently. My problem was that I broke the file dir caching on my Windows machine by incorrectly loading a vendor file from bootstrap.php. So even when debug = 0, it was still rebuilding the cake_core_dir_map

Re: How to track database queries

2008-07-19 Thread NOSLOW
Phone number should be of type char and not integer. You'd never do math on a phone number, right? Anyways, why not set back to null when empty instead of zero? I seem to recall some code in the Bakery that automatically converts all empty strings to null for nullable fields. I'm taking a

Re: Cake 1.2 App::import(vendor) isn't finding the file

2008-07-11 Thread NOSLOW
I think the second paramter, PHPBB_Login, should be all lower case just to get the file to load. Then when instantiating the class PHPBB_Login, keep the case as it's defined inside the file. Based on the examples here: http://book.cakephp.org/view/499/the-app-class, it looks that as soon as you

Re: paginate problems RC1

2008-06-30 Thread NOSLOW
when frameworks just make things more complicated and open to error. If a core developer can get it wrong, what chance do mere mortals stand? The whole array/SQL segment is not what I would describe as intuitive. On 29 Juny, 18:44, NOSLOW [EMAIL PROTECTED] wrote: Just for the record

Re: constants or config?

2008-06-29 Thread NOSLOW
On Jun 28, 3:49 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: ... It's easy to build an interface to allow the user to change the site settings, and I have a function for storing this back:http://bin.cakephp.org/view/565388190 ... M. PizzaCake :-) Doh! I missed the obvious solution

Re: paginate problems RC1

2008-06-29 Thread NOSLOW
Just for the record (and to possibly save others from grief if they're trying to do a LIKE in 1.2 RCx based on this example), it should be: $conditions = array(or=(array( 'edifici LIKE ?' = %$searchText%, 'adreca LIKE ?' = %$searchText% ))); I'm sure Mariano just typed this off

Re: Update from 1.2 beta to rc leads to huge perfomance drop

2008-06-08 Thread NOSLOW
I'm trying to write a enterprise resource planning Software wirth cake. You mean you're using Cake to write something that's not a blog application?? Well there's your problem. duck All kidding aside, I'm also using Cake to write an enterprise system that manages loan underwriting for community

Re: ARGHH - why is geneateList deprecated

2008-05-08 Thread NOSLOW
In case you didn't pick up on it, I thinks that's a reference to the You are not a beautiful and unique snowflake quote that Nate has used before on this list when appropriate. Unfortunately, it's appropriate around here all too often. On May 7, 7:48 pm, MikeK [EMAIL PROTECTED] wrote: LOL,

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: 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: CakePlus - On the top of CakePHP

2008-05-04 Thread NOSLOW
Where's the nate that I was expecting to have teared him a new one already? ;) Seriously, though, I have to agree with nate and Tarique. Keeping the project focussed seems to be key. I have all the confidence in the world that the project will evolve in the right direction on it's own. Yes, I

Re: Slow...

2008-04-25 Thread NOSLOW
I've had some issues too and will share some of my findings in hopes some more knowledgeable people will correct me where I'm wrong: Is debug level set to 0? If there are lots of models loading (and not being cached) you'll hit some overhead. Probably not related to your specific problem, but

Re: Slow...

2008-04-25 Thread NOSLOW
I, too, use the Bindable behavior (couldn't live without it now ;). My point was that Cake will still load all the related models recursively for the controller action you're calling before you can dynamically unbind the relationships. The only way I saw to prevent this was to not define all the

Re: CakePHP with ExtJS

2008-04-19 Thread NOSLOW
I'm getting close to finisihing the first phase of a fairly large application using ExtJS as the front end. Having only discovered ExtJS about 2 months ago, I've been working my butt off to learn it and make my app really shine by using it heavily for the UI (mostly grids, tabs, forms windows).

Re: CakePHP v1.2 stable enough for production?

2008-02-24 Thread NOSLOW
One could argue that since the unit test coverage in 1.2 is much higher than in 1.1, that 1.2 is more production ready than 1.1. At least that's what Nate said at CakeFest. On Feb 23, 3:42 pm, Greg Baker [EMAIL PROTECTED] wrote: I know its beta..  But I'm wondering if people are using 1.2 in

Re: problems with midphase hosting

2007-09-04 Thread NOSLOW
there resources by looking at the Reverse IP feature to see the total number of sites hosted on the server. With Midphase, you'll typically see 1,200+ sites! Sorry to get off topic (again). NOSLOW --~--~-~--~~~---~--~~ You received this message because you

Re: changing view to display name field instead of id

2007-08-21 Thread NOSLOW
that relation in the model. Then you can set the recursive level when executing a find(), and the name field of the related table will get returned. NOSLOW --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: R: othAuth component v0.5.4.5

2007-08-20 Thread NOSLOW
you're tutorial to look forward to. NOSLOW --~--~-~--~~~---~--~~ 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

Re: question about related model data

2007-08-02 Thread NOSLOW
. Actually, I just thought of something: I wonder if it's possible to make this work by issuing a SET FOREIGN_KEY_CHECKS=0; command in the beforeDelete callback? Interesting. I'll have to try that sometime. NOSLOW On Jul 31, 7:04 pm, rtanz [EMAIL PROTECTED] wrote: hi i am looking at the model part

Re: Cake PHP running dead slow !-- 60.6669s --

2007-07-31 Thread NOSLOW
in a new thread. NOSLOW On Jul 30, 6:09 pm, gwoo [EMAIL PROTECTED] wrote: There are two reasons to avoid $uses and loadModel in your code. 1. performance: Extra memory will be consummed if you have var $uses and the association in your model. loadModel simply checks if the class exists

Re: Safari 3 and Firefox do not understand the urls my cake app is generating...

2007-07-01 Thread NOSLOW
A bit off topic, but I was taught to always structure your code so that execution terminates by falling out the bottom of you routines (i.e. no early exit points). For one, it makes more logical sense in execution flow and is typically easier to maintain. So if you have any clean-up code at the

Re: Commented Version of CakePHP Manual

2007-06-18 Thread NOSLOW
I've been using http://docs.cakephp.nu/, but I haven't seen any comments yet. The front page there mentions RSS feeds to all discussions, but I couldn't find the feed. Any chance of adding an RSS feed to user discussions on http://www.cirello.org/cakephp-manual/?

Re: Use of $conditions

2007-05-08 Thread NOSLOW
Just wanted to point out a few things I noticed: - know your parameters: findAll($conditions=null, $fields=null, $order=null, $limit=null, $page=1, $recursive=null) - the conditions parameter for functions such as findAll is for, well, conditions (the where clause in SQL)... not sorting. Use the

Re: hasMany multi-row save problem

2007-04-27 Thread NOSLOW
It looks like your error message will only show if the save on the *last* order_detail fails, since $result is reset with each iteration of the loop. This action probably should use transaction processing (commit/rollback support). Also, instead of setting the id field to null in each iteration,

Re: Reload page in Cake PHP

2007-04-20 Thread NOSLOW
be the same, you'll never have to worry about caching issues! Hope this helps. NOSLOW On Apr 17, 3:58 pm, Joshua Benner [EMAIL PROTECTED] wrote: When you click reload, does the old post still show up? If it does not, then you may be dealing with some sort of local or server cache issue

Re: Data cleanup in Model

2007-03-27 Thread NOSLOW
...the error I get shows that a query ('__sanitize') is being made to the db. I'm not sure, but it sounds like you're accidentally placing '__sanitize' as a string inside your $data array, instead of the *results* of that function. This would then get passes through to the SQL call causing the

Re: Inflections problem?

2007-03-15 Thread NOSLOW
Can anyone provide an example inflections configuration that would override 'data' -- 'datum to 'data' -- 'data'? In version 1.2 of inflections.php, I see the comment: /** * This is a key only array of plural words that should not be inflected. * Notice the last comma * * $uninflectedPlural

Re: how to pass criteria to pagination object?

2007-02-26 Thread NOSLOW
This thread may be of use: http://groups.google.com/group/cake-php/browse_thread/thread/5d0a4cb93d66a6c2/1d4d9e3a35ddfa47?hl=en#1d4d9e3a35ddfa47 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: Pagination Page Numbers in 1.2?

2007-02-23 Thread NOSLOW
Your example was extremely timely and helpful for me since I was working on a search page today. I was able to clean-up the link creation so that it will retain any other params that might be set, like sort field and direction: ?php echo 'ul'; for ( $page = 1; $page =

Re: 1.2 Pagination forgetting conditions?

2007-02-23 Thread NOSLOW
I found that if you have other params set (field sort, direction, order), then you need to also unset those as well: unset($this-params['pass']['page']); unset($this-params['pass']['sort']); unset($this-params['pass']['direction']);

Sorting on Related Field with Sub-Query - Is There A Better Way?

2007-02-21 Thread NOSLOW
I was able to sort my related data on field that was another level deep in the relationship, but I'm not sure if it's the Cake way since it required me to write a very specific SQL fragment (subquery) . Let me try to explain with a simple example: Let's say I have a dynamically generated

Re: how to populate a second select-box by selecting a first with ajax ?

2007-02-16 Thread NOSLOW
members if it's fairly painless. I need to stay focused on the core development for now, so seeing actual code would be extremely helpful before I start playing with it. Thanks, NOSLOW --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Regarding http://cakephp.org page layout

2007-02-10 Thread NOSLOW
Ask your client this: Do you replace your keyboard every time you misspell a word? When he answers of course not, reply back with: well I don't replace my framework every time a page doesn't display correctly in a particular browser! :P NOSLOW

Re: Bake closes too fast to read error.

2007-02-06 Thread NOSLOW
, then change it's icon (via it's properties window) to be the favicon.ico distributed with Cake. 4. Copy shortcut to Quicklaunch bar, desktop or where ever. 5. Bake away! When you're done baking, just close the window. Hope this helps! NOSLOW

Re: ER Tools

2007-01-29 Thread NOSLOW
Oh, in that case, there is a good reason to adopt it if you're using CakePHP: It's one of the naming conventions. http://manual.cakephp.org/appendix/conventions On Jan 29, 6:49 am, Pje [EMAIL PROTECTED] wrote: There is no standard that define it. If you do a search for table name So, I am

Re: ER Tools

2007-01-28 Thread NOSLOW
Pje, A table is a collection of many records (plural); A model (singular) defines how each individual record is handled. At least that's how I think of it. Perhaps someone else can convey the thinking into words more precisely. --~--~-~--~~~---~--~~ You

Re: idea: trace things into a log window

2007-01-27 Thread NOSLOW
to behave like a dockable pane. Printing also works pretty well. I've already learned a few things from this example which I'll refactor into Ovenlight. That's what I was hoping for! Thanks again, NOSLOW --~--~-~--~~~---~--~~ You received this message because you

Re: idea: trace things into a log window

2007-01-24 Thread NOSLOW
pet project. I encourage everyone to share their contributions with this community, as I did, no matter how small. If you create something you find useful, chances are that others would be interested in it as well. Thanks, NOSLOW --~--~-~--~~~---~--~~ You received

Re: Pluralisation and bake error

2007-01-24 Thread NOSLOW
I've had problems recently with scaffolding on models named Model, Analysis, and Status. My fix for the first one was to prefix some letters (UwModel) to the name (maybe Model is some kind of reserved name in this MVC framework??). For the others, I just baked the files and made the manual

Re: OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools

2007-01-10 Thread NOSLOW
RichardAtHome, Does this work on Windows? The last I checked (within the past few months) it did not (and a google search confirmed that it was a well known issue). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: OT - Q for PHPNut on DBDesigner 4 - Was: ER Tools

2007-01-10 Thread NOSLOW
keymaster, I think that your problems may be related to how you have it configured. I had the same problem with my primary key (id field) getting deleted when I realized that I picked my tables in the wrong order when setting up the relationship. Now that I got everything working correctly, it's

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: CakePHP blogs

2006-12-21 Thread NOSLOW
The word blogs wrapped to the next line, so after clicking the link and getting the oops page, add the word blogs to the end of the URL. The part after www.google.com/ should be: reader/shared/user/09138396384756178995/label/cakephp-blogs --~--~-~--~~~---~--~~

Re: Blank lines at top of XML rendering

2006-11-29 Thread NOSLOW
Dave Barter wrote: Check you files for blank lines after ? at the end of the file. Also check for blank lines at the TOP of php files, and possibly in the MIDDLE if you close and open your php tags. I noticed that I had a blank line at the very top of all my HTML output and it turned out to be

Re: high load and benchmarking

2006-11-17 Thread NOSLOW
If one were to develop such a tool to benchmark a CakePHP project under high load, I guess a suitable name for it would be PoundCake :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Bake and new CakePHP 1.1.10.3825

2006-11-15 Thread NOSLOW
I found that it mattered what directory I was in when calling the bake script: Cake install folder = c:\wwwdev\cakeroot App folder = c:\wwwdev\cakeroot\app This works: C:\wwwdev\cakerootphp cake\scripts\bake.php -app app (Please select a class to Bake: (M/V/C)) This doesn't work:

Re: 2 noobie questions

2006-11-14 Thread NOSLOW
Is it possible to tell a controller to use multiple views? I believe the example shown in the online manual for requestAction in the Controllers chapter is what you're looking for (http://manual.cakephp.org/chapter/controllers). In this example, a function named showUserProducts is added to

Re: Inflection Problem with word Analyses... expects model AnalyAsis

2006-11-08 Thread NOSLOW
That kinda works, but will that cause problems later on because the CamelCase is not correct? It's reporting: Missing Model...No class found for the model Salesanalysis...in file : app\models\salesanalysis.php. I'm concerned that the model filename is salesanalysis instead of the expected

Inflection Problem with word Analyses... expects model AnalyAsis

2006-11-07 Thread NOSLOW
Please excuse me if I missing something stupid here, but being new to Cake, I'm having trouble getting started with the MVC files for a Sales Analysis model. I've struggled a great deal with this trying numerous things and still remain stumped. To be clear, Analyses is the plural of Analysis