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 ema
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 r
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 y
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
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 & cake_co
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 similar
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 y
> The "Lord of the rings" Example shows us how powerful ACL in cake can
> be, and helped me a lot to get in touch with ACL.
So that's where that came from. The "Lord of the rings" references
just confused me even more because I'm not familiar with it. You
should at least mention that's where it c
ther in the same fashion.
How can you complain about all this goodness?
On Jun 30, 4:36 am, leo <[EMAIL PROTECTED]> wrote:
> Seems to me that there are times when frameworks just make things more
> complicated and open to error. If a core developer can get it wrong,
> what chance do m
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
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 sol
"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.
All kidding aside, I'm also using Cake to write an enterprise system
that manages loan underwriting for community ba
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,
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
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
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 wou
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 r
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 I'
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).
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
t; method, and possibly
disabling the browser's back button with javascript.
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@googleg
red
domain:
http://whois.domaintools.com/
and see how thin your hosting company is spreading 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 define 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 "
x27;s just me being a moron. Then I'll have 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-
delete is attempted.
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 <[EM
e. I'm sure clarification on this issue
will be helpful to many. And maybe this discussion should be continued
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:
>
I've developed a website that uses a highly modified version of
CubeCart shopping cart software, while using Cake to develop a major
loan underwriting system for another job.
Let me tell you that I'm very excited to hear of this project as I'd
love to be able to combine the goodness of Cake into
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 en
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/?
--~--~-~--~~-
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 th
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,
be to just
append a randomly generated unique parameter to your URL that you
ignore (www.yoursite.com/articles/yourarticle/[random-number-here]).
Since no 2 URL's will ever be the same, you'll never have to worry
about caching issues!
Hope this helps.
NOSLOW
On Apr 17, 3:58 pm, Jo
"...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
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
*
* $uninflectedPlura
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
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']);
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:
';
for ( $page = 1; $page <= $paginator->params['paging'][$p
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 questi
team 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 subscri
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
first file, 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.
ble, and roll those fields up
into the parent table to get this working. I'd rather just learn the
proper way to handle this scenario.
Thanks in advance,
NOSLOW
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups &qu
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 a
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 receiv
ites all
these div boxes inside an outter div box (simulating a debug pane), it
could be made 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
r for anyone brave enough to try this helper.
On Jan 24, 2:56 pm, "NOSLOW" <[EMAIL PROTECTED]> wrote:
> I'm just starting a big project in CakePHP and I'm struggling a bit
> trying to figure things out as I go. Not being real proficient in PHP
> makes it even harder
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 manu
y,
improvements to this little 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
--~--~-~--~~---
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
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
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
Chris Hartjes wrote:
I use a whiteboard, dry-erase markers and paper to do my database design work.
Sounds like I'm in the minority. ;)
Chris, I hear ya! I work in the same fashion. I find it easier to
expose the design by feeling it out using basic tools. Being able to
quickly and easily mak
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
--~--~-~--~~~---~--~
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 b
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
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\cakeroot>php cake\scripts\bake.php -app app
("Please select a class to Bake: (M/V/C)")
This doesn't work:
C:\wwwdev\c
>> 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
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 "s
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 "Analysi
59 matches
Mail list logo