Anyway if you get the flash messages, it should be consumed by the login
action. Meaning that if you enter wrong credentials, and thus the login
message shows again, then the $this-Session-flash('auth') line should
consume the message.
I would guess (that recipe isn't in my RAW pdf,
What are you talking about here? By default you would not go through the
login
action before Auth will do, so your code is useless
Did you read the recipe? If so, you'll learn that the intention is to handle
the login *AFTER*
the Auth component processed and found no valid credentials, thus
That is correct, the $this-Session-flash('auth'); message is not part of
the layout
because I relayed on people following:
http://book.cakephp.org/view/1252/Displaying-Auth-Error-Messages
I should've added an Information Box to clear it out :(
Anyway if you get the flash messages, it should be
Congratulations! That looks like an impressive piece of work. And you
are right, this shows everyone that CakePHP is not just about writing
standard webapps.
Thanks for sharing, and keep up the good work!
Martin Westin wrote:
I have been working on the same Cake app for the past two years. A
New York
All the way baby. I can see the Knicks after CakeFest!
Larry E. Masters aka PhpNut wrote:
Nashville Tn. since I live in Tn now and it would be easier for me to
deal with the venues.
Chicago like Walker Hamilton suggested, that is my old home town and
would be nice to visit.
--
You may want to try:
http://github.com/mariano/geocode
Includes stuff like: $this-Address-find('near', array('distance' = 5));
AD7six wrote:
On 2 oct, 01:16, Andras Kende and...@kende.com wrote:
Basically just overwrite paginate function, something like:
Bakers,
I've just added a Geocode plugin to my github repository (based mostly
on the work by Nate at
http://bakery.cakephp.org/articles/view/geocoding-in-cakephp and
lababidi at
http://bakery.cakephp.org/articles/view/adding-a-google-map-to-your-app):
Check it out at (geocode plugin):
It should be good enough that I tell you an application that big works
very well. I would recommend instead of wasting time trying to get
people to tell you request times, spend some time investigating OPCode
caching, SQL replication, Cake view caching, and other performance
improvement tips
You don't need to use C to run a large webapp. I am a huge fan of C++
and use it myself, but you don't need to. You can build great CakePHP
apps that scale well:
A for instance, from a client app:
mysql select count(*) as number_of_tables from
information_schema.tables where table_schema =
I don't see the after hours listed here ;)
Dennis S. Hennen wrote:
I created downloadable/subscribable calendars for CakeFest (http://
tinyurl.com/n6stwg) and the Workshop (http://tinyurl.com/n7wy9u)
schedules. Enjoy!
--
-MI
*Coding Ninja* @ CRICAVA Technologies http://www.cricava.com
I've been rewriting the component lately but have not yet found the time
to document the changes:
http://bin.cakephp.org/view/9187751
As you can see a lot of what used to be defines are now configurable
component settings, and also overridable when you issue an order. Say
for example you wish
http://book.cakephp.org
http://bakery.cakephp.org
Nibohs wrote:
Hai
I am new in cake php . If any body have cake PHP docs/tutorials
please send me.
--
-MI
*Coding Ninja* @ CRICAVA Technologies http://www.cricava.com
*Blog*: http://www.marianoiglesias.com.ar
*Twitter*:
There are some recommendations at the CakeFest website:
http://cakefest.org/pages/travel
laptop wrote:
any hotel recommendations?
--
-MI
*Coding Ninja* @ CRICAVA Technologies http://www.cricava.com
*Blog*: http://www.marianoiglesias.com.ar
*Twitter*:
Come to Berlin:
http://cakefest.org
And buy beers for the whole team. How's that?
Miles J wrote:
I love you guys, seriously.
I just wish there was somehow to help or give back!
--
-MI
*Coding Ninja* @ CRICAVA Technologies http://www.cricava.com
*Blog*:
[2] What do you mean you had the file in the wrong place? Containable is
part of the core.
Liebermann, Anja Carolin wrote:
[2] I have contaninable for all my models But I had the file placed in
the wrong folder. Ouch
--~--~-~--~~~---~--~~
You received
Like some of you may know (if you don't, now you do ;) between December 2 and
December 5 we will be celebrating the CakePHP official gathering, CakeFest.
There you'll be attending talks about the most interesting topics, given by
respected members of the PHP community, including the CakePHP
Is this a way to convince us Bakers to vote for Obama?
Nate wrote:
Hey, very cool. You should submit this to the Cookbook's In the
Wild page.
On Oct 28, 11:33 am, Walker Hamilton [EMAIL PROTECTED] wrote:
I just thought I'd let the cakePHP community know that cakePHP is
powering a site
$this-Post-contain('Comment')
the_woodsman wrote:
Hi,
I want to contain() certain Models and get all their fields, rather
than explicitly mention every field.
For example, the example in the cookbook:
1. $this-Post-contain('Comment.author');
I want to do something like
'not' = array('Model.field' = array( 1, 2, ...))
haj wrote:
It's just current implementation doesn't take 'NOT' keyword with the
use of IN() for array, i guess, and yields the same result anyway...
--
-MI
CIO @ CRICAVA Technologies http://www.cricava.com
*Blog*:
CONGRATULATIONS! Second book in a week. Keep them coming!
Dave wrote:
My new book, Beginning CakePHP: From Novice to Professional is now
in stock over at Amazon and Barnes and Noble. No more pre-ordering!
And all you who pre-ordered, the book should ship any moment. I'm
thrilled -- the book
I know I want one :)
-MI
Gwoo wrote:
Technically it's not the first, since several have been written in
Japanese. But congrats on having the first English book. Wonder if the
dev team will get a free copy ;)
--~--~-~--~~~---~--~~
You received this
http://c7y.phparch.com/c/entry/1/art,cakephp-rest
jimbo wrote:
I am trying to implement a RESTful web service in Cake 1.2 (RC2) that
could receive XML content through HTTP POST and basically add that
content as a new row to a db (through a basic simple model) or
updating an existing one
Please read the release notes regarding LIKE and other SQL operators.
That should be:
$conditions = array(or=(array(
'edifici LIKE %?%' = $searchText,
'adreca LIKE %?%' = $searchText
)));
On Mon, 2008-06-16 at 03:07 -0700, leo wrote:
Call me a misery, but I seem to be having
@Villas: don't worry, I am not upset. It takes more than a simple
exchange of words to upset me. When a latino is upset, believe me,
you'll notice ;)
On Tue, 2008-06-03 at 20:49 -0700, villas wrote:
I may have been over-enthusiastic about the blog list, but goodness
knows why you and Nate
Errr we do too, just look at the Google Group wiki pages.
On Tue, 2008-06-03 at 14:43 -0700, Beth wrote:
BTW, Symfony allows people to just add their own blogs ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I've said it a lot of times and I'll say it once again: instead of
caring SO MUCH about a page that is within the cakephp.org domain (even
when you STILL have the wiki page to link all the blogs you want), why
don't you spend that time helping people on other areas?
I for one would like this
what about Router::url() ?
-MI
On Wed, 2008-05-28 at 15:25 -0300, Dardo Sordi Bogado wrote:
I usually put this function in config/boostrap.php
http://bin.cakephp.org/view/405751361
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Burn in hell SPAMMER.
-MI
---
CakeFest: December, 2008 - Buenos Aires, Argentina - http://www.cakefest.org
blog: http://www.MarianoIglesias.com.ar
twitter: http://twitter.com/mgiglesias
-Mensaje original-
De:
Instead of spending so much time in trying to tell everyone what's
supposedly wrong with the Cookbook, why not use that time to help with the
*ACTUAL* documentation?
God forbid we all chip in on what is actually good for the community.
-MI
Let's just make this thread die, and in the meantime know this:
1. There are always going to be jerks around, everywhere you go. It doesn't
matter if you are meeting them at a basketball court, at your best friends'
wedding, or on a Google Group (yes, there are jerks on the jQuery group too)
2.
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:
Getting traffic, nate. Getting traffic. How many projects try to benefit
from the popularity of another project for the sole purpose of getting some
users in, and then placing an adsense?
-MI
---
CakeFest: December, 2008 -
Just because. Or what, am I supposed to conf you in everytime I make a call
to gwoo?
Who says that everything that Larry, Nate, Garret, and the rest of the
CakePHP team has to be 100% fully disclosed? Heck, you are being told what
goes on in the channel and you question why is it closed? So
Senser: go through the API doc for bindModel() and you'll see that the
changes you do through bindModel are only available for the next find()
operation, after which the model bindings get reset to their original state.
What you need is to tell bindModel not to reset it. On your behavior, change
Well you could look at the generated HTML source of some page that includes
a form and look for the data[Model][field] format in the input names.
-MI
---
CakeFest: December, 2008 - Buenos Aires, Argentina -
It takes passionate people to build excellent products.
-MI
---
CakeFest: December, 2008 - Buenos Aires, Argentina - http://es.cakefest.org
blog: http://www.MarianoIglesias.com.ar
twitter: http://twitter.com/mgiglesias
Equivalent should be:
$this-Person-find('first', array(
'conditions' = array('Person.id' = $id),
'restrict' = array('PersonType')
));
Take a look at the new CakePHP find syntax to understand it better.
-MI
Actually that should be:
$Model = ClassRegistry::init('Model');
-MI
---
CakeFest Hispano: December, 2008 - Buenos Aires, Argentina -
http://es.cakefest.org
Remember, smart coders answer ten questions for every question
Why? Just because you say so? On your comment I NEED to quote nate: Your
opinion is wrong!
I've gotta tell you, some people just *ask for it*... I mean they *beg* for
it...
-MI
---
CakeFest Hispano: December, 2008 -
Set::combine($data, '{n}.Tag.tag_name', '{n}.Tag.tag_count');
Ain't that just freaking sexy
-MI
---
CakeFest Hispano: December, 2008 - Buenos Aires, Argentina -
http://es.cakefest.org
Remember, smart coders answer ten
Hannibal: it's been published. It was modified on Feb 14, so 4 days ain't
the end of the world.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your
Yes, it is nate. And regarding Aaron's comment nate also tells that
eventhough jQuery will eventually be the default, support will be given to
both jQuery prototype + scriptaculous. So not to worry.
-MI
---
Remember,
He may have heard nate saying it on the latest The Show episode.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
https://trac.cakephp.org/changeset/6415
They are part of the ModelBehavior class from which all your behaviors
should extend. And since it is a public callable it will be exposed to those
models that act as your behavior. Hence, it *is* available.
-MI
.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje original-
De: Mariano Iglesias [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 13 de Febrero de 2008 11:40 p.m.
Para: 'cake-php@googlegroups.com'
Asunto: RE: Never-ending loop in behaviors afterSave?
https://trac.cakephp.org
https://trac.cakephp.org/ https://trac.cakephp.org
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
My fellow bakers,
The Cake team would like to announce that the CakeFest website (related to
the first official CakePHP gathering) is now available at:
http://www.cakefest.org http://www.cakefest.org/
Go there to find out about CakeFest and sign up for updates. You can also
become a
Yay!
And if you decide to bring your own cake to give to the cake team, that'd be
cool too!
I'll see everyone at CakeFest!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be
That's because setUp should not be used with test cases that descend from
CakeTestCase (i.e: test cases with fixtures) or you are going to get those
nasty side effects. Instead use their equivalents:
startCase(): called ONCE during the execution of ALL test methods, and right
before the first
www.sypad.com
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
People,
I'm pleased to announce that we've just released the first beta version of
SYPAD, an outsourcing marketplace where you can, among other services, hire
developers or sell your development services while working on existing
projects:
http://www.sypad.com http://www.sypad.com/
It
Its in spanish, but look at the paginate() and paginateCount()
implementation, they should be on your model so you can override
Controller::paginate() auto-calls to find(count) and find(all) so it
instead calls your implementation, where you can do your bindModel() /
unbindModel() :
The phpGACL plugin is not 1.2 ready yet. I need to dedicate some time to
port it.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
The Soft Deletable behavior has been updated and now also supports string
based conditions:
http://bakery.cakephp.org/articles/view/soft-delete-behavior
-MI
---
Remember, smart coders answer ten questions for every
Yeah, two:
1) I'm a moron
2) I needed the web space
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
Hi guys,
I'd like to inform the release of Bindable Behavior 1.2.19 beta, which is
not only a port of Expects
(http://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel-on-mo
del-side) for CakePHP 1.2, but also adds a lot of exciting new features.
Check it out at:
Try now, a little while ago I realized that I didn't uncheck the Draft
setting.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
Now that's just a teaser for me to ask you what was the first.
Tease.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t
.html
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE
I suggest you post your code, since Model has an awesome test coverage: in
cake/tests/cases/libs/model/model.test.php you can see for example the
function testSaveField() which tests for saveField() calls, and all tests
are succeeding. Therefore saveField() IS WORKING on 1.2.
-MI
When there's a new release it will get posted here, and in the bakery.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
It is not only much better, it makes you feel like: how on earth could I
work before CakePHP 1.2's FormHelper?
Nothing nicer than:
?php echo $form-create('User', array('action' = 'add')); ?
?php echo $form-input('User.name'); ?
?php echo $form-input('User.password'); ?
http://www.cricava.com/blogs/index.php?blog=6title=modelizing_habtm_join_ta
bles_in_cakephp_more=1c=1tb=1pb=1
Could be useful
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart,
Also look into the code for CakeTestCase (cake/tests/lib/cake_test_case.php)
and something will definitely drive your attention: a method called
testAction().
I still need to write an article about this but basically make your test
case extend CakeTestCase, and then you can do:
$result =
If it comes from thinkingphp, it can't be good
Just kidding ;)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
He's not asking if he should try RoR, he's asking about 1.2 availability.
So if you just wanna fill up your inbox with arguments, go somewhere else. I
know a couple of blogs that would benefit from that.
-MI
---
Remember,
Who's responsable? Err :)
Also it wouldn't hurt that just EVERY NOW AND THEN those tickets get some
sort of patch. But I guess that's way too much to ask.
-MI
---
Remember, smart coders answer ten questions for
Yeah I will soon work on a more intuitive way to install a fresh bakery,
want to get the bugs solved first.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share
I am the Developer :)
Just need to get my head around some overdue work, after which I'll take a
closer look at what's going on.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be
http://dev.sypad.com/projects/drake
The magic of Google!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
Nice way to receive him, by requesting staff ;)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
PhpNut and gwoo are preparing an official announcement.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
I constantly go through the pending list, and add comments to the articles
that are not yet published, explaining what needs to be changed.
Very rarely the writer on the other side actually responds or does the
requested changes. And most of those changes are the result of not following
The
The author of the article gets an email with the comments we send from the
bakery. Also the process of submission is explained on the bakery
guidelines.
However the issue preventing from publishing most pending articles is a more
basic break of guideline rules. For example, one statement in the
Chris has a school? That's a new one ;)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
You have seen that sometimes I get grumpier than you, so...
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
+1 on how nice the site looks, and seems fast.
A good case study could be the search you have going on there. I've done
some code to incorporate FULLTEXT searching (need to convert it to a
behavior) which works very well, but still need some polishing before I
publish it.
-MI
If you are using 1.2 then its because of validates() call you are issuing
(sending a parameter to validates() is deprecated). Even though, and whether
you are using 1.1 or 1.2, change:
if ( $this-User-validates($this-data) ) {
to:
if ( $this-User-create($this-data) $this-User-validates() )
phpGACL comes with an extensive API. Look at the functions available in the
PhpGacl component. To save a user, for example, you would do:
$this-PhpGacl-saveUser($userId, $userName);
For example if you just created a User with ID #15, then you can do:
$this-PhpGacl-saveUser(15, 'User #15');
This is why I always recommend to do view-side validation messages.
Check the article in the bakery:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-fie
ld-in-cakephp-1-2
-MI
---
Remember, smart
Please ticket this:
https://trac.cakephp.org
Thanks!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
function reachable($url) {
$params = Router::parse($url);
if (!empty($params['controller'])) {
$ctrlName = Inflector::camelize($params['controller']);
if (!loadController($ctrlName)) {
$pluginName =
1. Can you make sure to empty your app/tmp/cache/persistent folder, or set
your DEBUG level to 1 at least?
2. Why haven't you updated to the most recent 1.x release? 1.1.11 is pretty
old in Cake terms :)
-MI
---
Remember,
Then update.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
https://trac.cakephp.org
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
Can we stop answering this thread? It's been covered *several*, and I mean
*SEVERAL* times on this group before. All it does now is add more traffic to
our already overloaded mailboxes.
Thanks!
-MI
---
Remember, smart
The Bakery isn't broken.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
I see you posted an article, so I guess you already know it is not broken.
Also one more thing: check the article you posted for this on the Bakery for
comments, and then address those comments so I can publish it. Thanks.
-MI
Or no... depends... :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
I published your article on the bakery just now, so make sure to update that
one too.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE
That's because it was fixed yesterday :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
Stop giving BS. Just because you say the thousand other developers doesn't
mean that there are.
Or I could just say You know, there are over 6.5 million developers who
think Hanzgroove is full of BS
See how easy it is to lie?
-MI
Hi,
Aren't you the one that wrote to my private email? Anyway I answered that
there are yet no official translation of the cake manual into Spanish,
mainly because we're waiting for the 1.2 manual to be finished before
working on it. However if you'd like to help with the 1.2 english manual I'm
Do not create another category just for the site you added if there are NOT
enough sites on that category, and if you are NOT willing to categorize.
This list is not for self promotion, but to showcase work performed with
CakePHP.
Also, not for you but for other people, IS IT SO DAMN HARD to
Update the CakePHP version. When you hit an issue that is probable a bug
ALWAYS update to latest release before posting. Chances are that it has been
previously solved.
-MI
---
Remember, smart coders answer ten questions
Look over at htaccess statements.
You can simply create an .htaccess file on a folder (inside webroot) and
then add there:
Order allow,deny
Deny from all
And you won't be able to access that directory through apache (hence through
a browser), so you'll be left with readfile() and stuff from
You sound grumpy.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
What about components?
http://manual.cakephp.org/chapter/components
Components are to controllers what helpers are to views. The main
difference is that components encapsulate business logic whereas helpers
encapsulate presentation logic
-MI
https://trac.cakephp.org
You can report a ticket and assign it to The Bakery
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
Why not submit an enhancement ticket
https://trac.cakephp.org
Also look over File class in CakePHP 1.2 to simplify your file manipulation.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
1 - 100 of 679 matches
Mail list logo