This is fantastic news and many thanks to everyone who contributed!
Looking forward to trying out RC3 :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
The best way is to localize the *content* on all your pages, and leave
the URLs alone.
I agree, but I've worked on projects where the client and/or project
manager is adamant about localizing the URL's as well :/
--~--~-~--~~~---~--~~
You received this
look in the files section for this 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 from this group, send email to
http://manual.cakephp.org/view/125/data-validation
--~--~-~--~~~---~--~~
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
try a search on scribd.com
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
The links in the unofficial resources page will take you to pre-
defined searches in the blogosphere for cakephp which will give you a
lot of relevant results from many indexed blogs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Personally, I think it's best to pick standards up-front to abide by
for anything your code taps into and then commit yourself to
conforming to those documented standards...If you're using PHP, make
sure you pass E_STRICT tests and that's where it ends. If you're
using html, pick a strict
http://book.cakephp.org/view/161/localization-internationalizat
On May 22, 2:42 am, Margarittka [EMAIL PROTECTED] wrote:
Hello!
I need to write site with support of 3 languages. Differences of parts
are only in files with constants. How can i realize this in optimum
way?
Based on your question, I strongly suggest you use bake to generate a
basic foundation of code to get you started:
http://book.cakephp.org/view/113/code-generation-with-bake
On May 21, 8:03 am, vishal [EMAIL PROTECTED] wrote:
Hi friends,
I am new on this forum.can anybody help
Two projects that come to mind which you will probably want to review:
Drake (drupal with cake) http://dev.sypad.com/projects/drake/
Jake (Joomla with cake) http://dev.sypad.com/projects/jake/
On May 21, 5:55 am, boyracerr [EMAIL PROTECTED] wrote:
I've recently been brought in on a project
I haven't seen that myself, but I noticed 1.2.0.6311
You might want to try updating to SVN 6991+
Maybe something was fixed in the 680 revisions to the core since the
version you're using :P
--~--~-~--~~~---~--~~
You received this message because you are
Or does it still say 6311 even on the latest, I don't know so I'll
just get more coffee :/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
You may want to consider submitting enhancement tickets for 2.0
(enhancements are closed for 1.1 and 1.2). However, I would offer one
tiny bit of advice:
Don't say framework X has this, so I think cake should have it,
because that is going to get you nowhere fast. Instead, just say I
think
Do you mean it says your database configuration file is NOT
present? If it's present, then what does it say about being able to
connect to your database?
On May 20, 3:15 pm, Valerio [EMAIL PROTECTED] wrote:
Hi, I'm a new cakephp developer... I'm trying to connect to an Oracle
db but it
If you're using the Auth component with admin routing, you might want
to review this recent ticket to see if it applies to you:
https://trac.cakephp.org/ticket/4708
On May 20, 2:54 pm, Joel K. [EMAIL PROTECTED] wrote:
Hello,
I'm using admin routing for a personal site that I'm building:
Just remember that there is an inline comment before that line that
says DO NOT EDIT BELOW THIS LINE. Probably not there arbitrarily,
so ignore at your own risk ;)
On May 20, 12:27 pm, RainChen [EMAIL PROTECTED] wrote:
Some times I want to add some methods or common attributes to all
Cake's
As for posting convention, well, google doesn't care which message you
reply to in a thread and will put your post at the end of the thread
as far as it displays in the web view (not sure about the email view).
As for $this-renderElement, just want to point out that this has just
been deprecated
I just read this article:
http://bakery.cakephp.org/articles/view/tidy-output-filtering
I also posted a link to a code paste of mine which is a modified
approach. Using this approach will bring the trailing SQL debug
output into the body tag.
I just wanted to post back to this thread because
You mean the fieldset? That's by design. There's no elegant override
afaik.
On May 20, 1:13 am, Brian Rojas [EMAIL PROTECTED] wrote:
I use the $form-create method in 1.2 like so:
?php echo $form-create(null,array('url' = array('controller' =
'pages', 'action' = 'contact'), 'id' =
Have a look at the File class:
http://api.cakephp.org/1.2/class_file.html
On May 20, 6:35 am, oana [EMAIL PROTECTED] wrote:
Hello everyone,
I would like to know iwhat would be the way to follow if i want to
create a file from within a cakephp page.
The situation is like this: i have a
Looks like your tmp folder isn't writeable by your web server
On May 20, 3:12 am, Raistlin Majere [EMAIL PROTECTED] wrote:
I am getting:
Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/
opinionsofamateurs/tmp/cache/models/
default_emmettbr_toreadandtowrite_list)
Just a reminder to everyone about the freeze nate posted:
Enhancement tickets created on or after May 18, 2008 are being moved
to 2.0 (this does not include tickets that are open that were created
before that date).
--~--~-~--~~~---~--~~
You received this message
I guess you'll have to bribe Nate, I just work here hehe :P
On May 19, 5:35 pm, Jonathan Snook [EMAIL PROTECTED] wrote:
Is it possible to have those very few last minute entries submitted
with patches get secondary glances? (since I only see 4 listed...)
There's an open ticket about this, the guy you want to talk to is
phishy (Jeff Loiselle) http://jeff.loiselles.com/wordpress/ :
https://trac.cakephp.org/ticket/2024
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
] as he is the project manager. I believe currently
John (psychic) and Andy (AD7Six) are the main developers behind the
cookbook.
Thanks for taking an interest!
On May 14, 5:41 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Sliv: Do you know where I can find information on the Cookbook
development
In your core.php set your debug level to 2 and look at the sql-log
table output to see the queries that cake is generating.
Also, you may want to post relevant code to http://bin.cakephp.org and
then post the url to your code here, as it will be far more readable
for everyone here.
On May 14,
Have you checked your layout and view files (*.ctp) to make sure css
is being called the same way?
On May 14, 12:27 pm, Roon [EMAIL PROTECTED] wrote:
Hi all,
I have a setup issue on a shared server which i can't seem to find any
documentation for.
I am able to get the Sweet, 'myapp' got
You can pass all kinds of parameters to the ajax helper including
javascript you want executed:
http://book.cakephp.org/view/208/ajax#ajaxhelper-options-209
On May 14, 2:16 pm, Dovdimus Prime [EMAIL PROTECTED] wrote:
Errr... sorry but how would I go about doing that? How do I get some
Wasn't the latest WP release (2.5 I think?) supposed to be a 'major'
code overhaul? If so, I would imagine anyone's past efforts would
probably be broken with this latest release...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
There is only really one main thing I would like to see changed about
the cookbook. That is the way proposals are forever hidden from me
/Martin
Like Nate said, this is all doable, it's just about finding available
time + available ability in the same person to do it. If you think
that's
http://manual.cakephp.org/view/113/code-generation-with-bake
--~--~-~--~~~---~--~~
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
-Added links to free virtual appliances for developing with CakePHP
-Alphabetized, categorized, formatting cleanup
Click on
http://groups.google.com/group/cake-php/web/cakephp-unofficial-resources
- or copy paste it into your browser's address bar if that doesn't
work.
There are ACL tutorials linked in the unofficial resources page as
well.
--~--~-~--~~~---~--~~
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
An example further to Chris' point is a recent discussion I had with
Nate - I ran into an issue where I passed an IP address through built-
in IP validation then used ip2long to convert it so I could store it
in a MySQL signed INT. I noticed that an IP written like
255.255.255.011 would pass
Yes, indeed, I use it a lot too - maybe at some point there will be a
way to mirror it to contributed servers so it doesn't get too slow due
to the size and number of people using it :P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I have to agree with Gwoo, I haven't seen any replies that weren't
appropriate to the post being replied to.
If you write a post that shows you haven't read the welcome blurb
posted on the group front page that tells you to search first before
asking, and links to the wiki pages with a ton of
kumbayah.
How about we try to be polite even if the other person isn't? That
goes for both sides.
-- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options,
I started off a long time ago trying othAuth, obAuth, (can't remember
all the different names, but I tried several). The problem I ran into
is that you are then stuck if you upgrade your core and whatever
script you chose happens to break because it used overrides or hacks
or whatever. Or, the
My personal thought is you should keep your app and your cake core
separate - then you can just delete the core and replace it with a
fresh update without touching your app. The http://book.cakephp.org
installation section explains how to keep them separate.
I'm not aware of a simple way to
Neither of those methods tell you the exact revision, though, just the
last release version.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
He got all the responses because he's trolling. I for one, have
finished feeding it.
--~--~-~--~~~---~--~~
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
I think some people are anxious to see the enhancement tickets for the
cookbook get some kind of response, particularly the ones that give
feedback as to the status of contributed content, versioning, etc.
These are wiki type enhancements that would help resolve the issue
where people submit
I haven't looked at it recently, but my guess would be to check the
latest revision of the saveAll method...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
On a side note, have you folks (those wanting to fork a doc wiki)
already tried offering to Gwoo/John to help code/write the cookbook
app and have since decided to venture out on your own, or are you just
unsatisfied with the cookbook without offering to assist and wanting
to spearhead your own
Suggestion: I would probably have a look at the bake/console code and
borrow some ideas...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I think you want to read the advanced installation section at
http://book.cakephp.org
--~--~-~--~~~---~--~~
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
Filip:
Others might be interested in your efforts as well, perhaps you would
be interested in posting to http://bin.cakephp.org and posting the URL
here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
Have you tried $this-Session-setFlash(__($message, true));
--~--~-~--~~~---~--~~
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
I don't actually know, but contact [EMAIL PROTECTED], I am sure he (and
everyone) would welcome offers to help.
- Where is the SVN for cookbook code? Would like see if I can help out with
some patches
--~--~-~--~~~---~--~~
You received this message because you
Just a guess, but probably for forking wiki's.
...and I find it funny how similar saying forking wiki's sounds to
something good ol' Chris would say :D
What did you want to use it for?
-- John
--~--~-~--~~~---~--~~
You received this message because you are
Well, I don't want to mislead you, but I would try doing the ol'
comment everything and backstep... also try setting debug to 0 to
see if there's any different result. My point was just that these
kinds of things I think are like segmentation faults where you try to
find a problem in the code
Oh, there's no fault here, this is all on a volunteer basis. I
would simply hope that if people have the time/ability to fork wiki's,
they would have the time/ability to join the cookbook development team
in some way and that their would be a doorway/path open for them to do
so.
That's all my
It is my understanding that tempdocs.cakephp.org will soon be a
redirect to the cookbook, so that those who are unaware of the
completed migration will not have a dead link. Stay tuned...
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Have you tried commenting out the $recursion var?
--~--~-~--~~~---~--~~
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
Well, requestAction can be costly, perhaps that is what you are
running into. You may want to try creating a method in your model
that binds the necessary associations and returns the data you want to
the controller.
--~--~-~--~~~---~--~~
You received this
Better.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options,
Personally I'd prefer to see all of this energy go into helping to
close tickets by writing tests, patches, documentation and offering
time/resources to join initiatives that need the help (i.e.
cookbook). I just find that helping is superior to forking for
everyone in the community, unless
Are you sure you're talking about flash messages, or php/cake error
messages (debug output)?
I would recommend putting $session-flash in your LAYOUT file (views/
layouts/default.ctp or other), where you want flash messages to
appear.
--~--~-~--~~~---~--~~
You
I changed the topic to more appropriately describe the OP and the
subsequent answer.
On May 5, 2:50 pm, b logica [EMAIL PROTECTED] wrote:
Er, what? Were you just thinking out loud?
I don't understand how i18n is supposed to work in Cake either, FWIW.
On Mon, May 5, 2008 at 12:13 PM, Sliv
You're probably going to incite one of two things with this post: 1)
silence, because the topic's been beaten to death (2) flames, because
the topic's been beaten to death.
In either case, please search the group and you will quickly find that
1.2 has been used heavily by many people in
Paste your controller, view and model here: http://bin.cakephp.org
and post the resulting URL here.
Also include your exact CakePHP revision.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post
I could, but then again, so could you:
http://manual.cakephp.org
click on 'edit this section' ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
If you have access to a different test server environment, I would try
that before proceeding further. These types of problems tend to be
related to something in the environment.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
If it's a question of articles sitting in the pending queue for a
long time, that's something I guess only gwoo could answer, as I
don't know who all are involved in reviewing and approving articles.
On a side note: IMHO, I don't think people should stop publishing to
their blogs because
I had run across an article a while ago talking about gzipping large
bodies of text before writing it to the database and wondered the same
sorts of things...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
the pages controller uses the home view and by default has the HTML
helper loaded. Make sure you are using echo $html... and not just
$html
also read this in it's entirety: http://book.cakephp.org
On May 2, 8:46 am, alxlevin [EMAIL PROTECTED] wrote:
Hi. This is my first project with
In a word, no. Controller sends the data prepared by your model to the
view where your helper can access it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
which one of us is the evil twin... :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
Think about it:
You're setting up a route for /tag
but then sending /tag/php and wondering why it doesn't route.
Try setting the route /tag/*
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To
which site are you talking about, and why can't you grab the links
from the page source?
--~--~-~--~~~---~--~~
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
Look at the validationErrors property
Look at the beforeSave method
http://api.cakephp.org/1.2/class_model.html
Look at the validationErrors property
http://api.cakephp.org/1.2/class_view.html
Look at the validateErrors method
http://api.cakephp.org/1.2/class_controller.html
bindTranslate bindTranslation
http://api.cakephp.org/1.2/class_translate_behavior.html
--~--~-~--~~~---~--~~
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
It looks to me like you're just reading the value from the session
every time without checking the submitted data first
Try something along the lines of:
http://bin.cakephp.org/view/1454909160
--~--~-~--~~~---~--~~
You received this message because you are
if you didn't type bindTranslate, you wouldn't get this error
SQL Error: 1064: You have an error in your SQL syntax; bindTranslate
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this
Please avoid posting code directly to the group, instead please post
it here so it's readable: http://bin.cakephp.org and reference the
resulting url here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
oh, nevermind, hehe I didn't think the model would be that small
--~--~-~--~~~---~--~~
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
A workaround that appears to resolve the issue:
in Users controller beforeFilter:
if ($this-action === 'none') {
$this-redirect($this-Auth-redirect());
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
Have a look at this approach:
http://bakery.cakephp.org/leafs/view/32
--~--~-~--~~~---~--~~
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
This is one not-so-elegant method (index.php hack) I've used to modify
the output (note the str_replace on line 37) - A similar approach
might be able to be used to do what you're looking for:
http://bin.cakephp.org/saved/28154
That is clear to me but how do I make it so that the outputted
Let me start by saying I don't believe this is a problem with the
framework, rather an issue with IE6. However, I'm posting here as it
is a problem I've run into while using the framework and am looking
for advice.
I have to test under IE6 at work because where I work the generalized
technical
I should probably add that the Auth login processing appears to work,
the successful login flash message gets set and displayed, but after
this:
$this-redirect($this-Auth-redirect(), null, true);
the URL in the address bar is /users/none and the message is as I
said, Missing Method In
No, not cakeforge, bakery tickets are submitted through trac. Check
if your issue has already been reported here first before submitting a
ticket:
https://trac.cakephp.org/report/5
Also note that *some* issues are not due to the code, but due to the
database connections maxing out and/or
How does it not make sense to you? If you are not attempting to save
the data, why do you care if it's valid? Quite the contrary;
validating data I'm not trying to save wouldn't make much sense.
--~--~-~--~~~---~--~~
You received this message because you are
But it doesn't make much sense to me that cake will save records even
though validation rules say that the field shouldn't be empty.
Again, you're not saving the invalid data, you're only saving the
valid data. Validation is about making sure data that's going to be
saved is correct according
look for a file called home.(ctp|thtml) and edit it.
then read this: http://book.cakephp.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
if(search_all_cake_resources === null) {
echo 'exact version of the framework used';
echo 'php version';
$url = $this-pasteRelevantCode('http://bin.cakephp.org');
echo $url;
}
--~--~-~--~~~---~--~~
You received this message because you are
1 - 100 of 250 matches
Mail list logo