y('rule' => 'alphaNumeric', 'required' => true,
'message' => 'Required')
);
If I am misunderstanding the issue, please correct me.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: &q
would set Layout ajax.
> If is a xml page I would set Layout default.
>
http://c7y.phparch.com/c/entry/1/art,mvc_and_cake
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboar
hecking authentication
for.
What controller/action pair is failing? Is it just that one
controller/action pair or is authentication failing everywhere?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/
>read('url', $this->Post->id);
>
> Aber wie komme ich auf die id des Posts den ich gerade offen hab
>
> grüße
Mein Herr,
Es tut mir leid aber wir sprechen English auf dieser Postsendungliste.
Koennte Sie die Frage auf Englisch wieder stellen?
(My German is a bit ru
people on this mailing list have benefited from it.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received thi
requests from
> these webservices.
>
Protect people from accessing it using the Auth component.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--
Yeah, you don't need to put 'login' in $this->Auth->allow(...) as Auth
handles that automatically.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~---
s access to a
'delete' method in your controller:
function beforeFilter() {
// Other auth stuff before this
$this->Auth->authorize = 'controller';
}
function isAuthorized() {
if ($this->Auth->user('role') != 'admin') {
ng to do that you think you need to use the
Cake console for?
It has also been my experience that as long as you put the Cake
console script in your path, and the PHP executable in your path, it
does not matter if you're on Linux or Windows.
--
Chris Hartjes
Internet Loudmouth
Motto for
y page load.
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribe
yle.
I have total respect for those who do their research before asking a
question, and lots of people on the list do that. Those questions are
worth answering. Other questions that give the impression that the
poster hasn't thought about it at all before hitting send, well,
again, what do you e
t they could do but have not come around to *accepting* that there
is the Cake way of doing things, rightly or wrongly.
One person's "key critical feature" is another person's "edge case".
The trick is understanding that, and a lot of people fail at it.
--
Chris Har
cake-php/browse_thread/thread/f9e0727d0eb701ab
http://groups.google.com/group/cake-php/browse_thread/thread/3a03f75d1c0fc378
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
s the idea that the cookbook is going to become a real book
coming from? I am not under any such impression. The manual will
NEVER be done because things in Cake will change, new techniques will
come to the forefront and new examples will be created.
Man, a lot of misinformation is out
hut the fuck up and help build out someone else's vision
even when you know deep down inside that their vision is better than
yours.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes...&qu
ppController{
> var $name = 'Gallery';
> var $components = array [9]('Flickr');
> var $uses = null;
> }
> Noticed the $components = array [9] ('Flickr');?
> It is somewhat wrong and causing error, because the array is incorrect.
var $compone
fort, again, what can be done to
stop them? Nothing.
I just wish people would be honest with their reasons for wanting to
do these sort of things. The core dev group is not the little elitist
cabal that people seem to think it is.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Mov
On Tue, May 6, 2008 at 9:41 AM, Cheeze <[EMAIL PROTECTED]> wrote:
>
> I've tried to use my application on different servers and all gave the
> same result.
>
> Can anyone provide some advise on how I can proceed to debug this?
>
Paste your code into http://bin.c
On Mon, May 5, 2008 at 10:00 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> Is the documentation at book.cakephp.org open source?
Why do you ask?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes...&qu
On Mon, May 5, 2008 at 2:35 PM, bittersweet <[EMAIL PROTECTED]> wrote:
>
> What do you say folks?
>
CakePHP 1.2 is ready to go for production.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard:
ough. Dardo, we are
arguing about semantics so we must agree to disagree.
CakePlus is an attempt to fork CakePHP, nothing more.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
mechanism in place for commits. They
restrict access to a few people. Yes, you can grab a copy but you
CANNOT SIMPLY ADD YOUR CHANGES WHEREVER YOU WANT and get them
accepted.
http://www.wlug.org.nz/KernelDevelopmentWithGit
You actually think I would say what I said without actually looki
On Mon, May 5, 2008 at 11:32 AM, R. Rajesh Jeba Anbiah
<[EMAIL PROTECTED]> wrote:
>
> On May 5, 6:07 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> > On Sat, May 3, 2008 at 11:09 AM, R. Rajesh Jeba Anbiah
> >
>
> > <[EMAIL PROTECTED]> wr
On Sat, May 3, 2008 at 11:09 AM, R. Rajesh Jeba Anbiah
<[EMAIL PROTECTED]> wrote:
> Community:
> 1. 100% open (svn, wiki, Google groups)
I'm wondering if by this you mean that anyone who wants can have
commit privileges to the repository?
--
Chris Hartjes
Internet Loudmou
s subdomains to
the Cake Software Foundation has finally happened.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~
}
> }
>
In your else clause, try adding this:
$this->data['Employee']['id'] = $id
Before you save it.
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: h
uot;, etc. because
> they accomplish the same tasks. Its just a matter of choice and I
> prefer to have choices. Now flame wars about "GIMP" vs. "Photoshop"
> are different Photoshop kicks GIMP's ass.
Pfft. *Real* designers use vim and edit the images as binaries. :)
g MacVim) up to speed) then you are missing
out on setting up your development rig exactly the way you want.
I use paid tools when they are needed (TextMate, Komodo, CSSEdit)
because I can't do it by hand but I try to use the free stuff whenever
I can. Right tool for the job, whether it'
= '0' and Category.active = '1'",
> array('name'), 'Category.sort'));
> $this->render();
>
> }
>
You set $this->cacheAction to be an array...then set it to true in testmenu().
I'm guessing this isn
e...on my MacBook...so unless your
PC was free, you should STFU about those who choose to spend money on
Apple hardware and use OS-X instead of PC hardware running a free OS
like GNU/Linux.
I have done both in my time.
Now, back to arguing about other CakePHP minutae!
--
Chris Hartjes
Internet Lo
ect(index)
You cannot redirect from inside a model, like Clark said. You must
get your model to return some value to the controller that you can use
to determine if you need to redirect or not.
Again, this comes with understanding both Cake's conventions and
understanding how Cake's MVC imp
On Wed, Apr 30, 2008 at 10:49 AM, Diorgenes Felipe Grzesiuk
<[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Where a good "how to" the ACL Cake 1.2???
http://tinyurl.com/57ufz5
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handl
s that
gwoo adds in. Your php-cli executable has to be in your path or else
none of it works.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~---
able to use the Auth
component and talk to a RADIUS server. phishy, was that you?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~---
bit hackish...which would
> be the best (or is there better)?
Well, you could always write a custom model that connects to your SSL
webservice, and make sure to include the methods that it would expect
from a model.
Inconvenient? Yes. Best solution? Maybe.
--
Chris Hartjes
Interne
just wondering
> if it's worth it, or should I just go back to
> plain old php?
Why do you think you have to use the API to figure it out?
http://book.cakephp.org
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling sn
et this
> message:
> "'php' is not recognized as an internal or external command, operable
> program, or batch file."
>
> Any advice?
> Chuck
Go to http://cakephp.org/screencasts and view the screencast on
setting up the console to work in Windows.
--
Chris
;save($data);
echo $this->Foo->id;
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this messag
#x27;, and then checking in my
isAuthorized() method in the controller whether or not that 'role' can
have access to that particular action.
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to
e
looking in the wrong place.
For home.ctp, if you haven't created one yourself it is in cake/libs/view/pages
For default.ctp, if you haven't created one yourself it is in
cake/libs/view/layouts
To modify them, create home.ctp in APP/views/pages and default.ctp in
APP/views/layouts.
getting null that means you're not successully logged
in, so I suspect that the problem might be somewhere else. I suggest
you paste your code in http://bin.cakephp.org so others can take a
look at your entire setup.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Mo
sing the paginate variable? I have tried to pass it
> as the scope, and the userid works fine, but I cant seem to get the
> message_status_id part working. I need to use either IN() or an OR
> statement, but can't see how it is done... Is this possible?
>
I have a posting on my
hat about it isn't working? You getting errors? Pagination links
not showing up? Perhaps I don't understand pagination very well, but
I don't see where you are passing the paginator object to the view.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding
ry this, but I must warn you I have not tested it.
$fields = array('price', 'name', '2 * protein + log(fibre) - 10 * salt
- sugar - fat as health');
$order = array('health' => 'desc');
$limit = 10;
$this->Foo->find('all', compac
to maintain the session values..
>
http://book.cakephp.org
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received
re is a really good rule to follow:
Don't assume it's a bug in Cake if your code won't work properly.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~--
n't done any research before asking.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message beca
t isn't, then I believe that the problem exists between the
keyboard and the chair.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~
s administrator will use
> User model too to administrate the site.
>
> How is it done using CakePHP philosophy?
Auth component and admin routing.
Lots of good tutorials on using both those things.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants t
2 links :
> link('prototype') ?>
> link('scriptaculous') ?>
> and I am using them with drag & drop, InPlaceEditor, etc.
I'd stop using the built-in helpers and use jQuery.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving
gt;
> This page should help a bit:
>
> http://www.littlehart.net/atthekeyboard/2007/11/20/follow-up-to-a-hopefully-usefull-tutorial-for-using-cakephps-auth-component/
>
/me cackles with glee at another potential page hit :)
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "M
the effort to rewrite all the existing
tests to work with PHPUnit as well?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~---
t.
> In my app_controller.php, I am using the beforRender() function where I do
> some queries. Is that function slow down the website ?
>
Why are you doing that in beforeRender()? Is there any reason why you
couldn't do it in controller methods.
--
Chris Hartjes
Internet Loudmouth
Motto for
ith a delimiter
File a ticket on trac.cakephp.org
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this m
On Wed, Apr 23, 2008 at 11:52 AM, Davide <[EMAIL PROTECTED]> wrote:
> Some other ideas? Cake version 1.1.18.
>
D'oh -- that stuff I posted is Cake 1.2 specific.
I don't use Cake 1.1 at all, so can't help you there.
--
Chris Hartjes
Internet Loudmouth
Motto for
;m disconnected.
You might have to change some stuff in your config/core.php file.
Look for Session.checkAgent
Often you have do
Configure::write('Session.checkAgent', false);
to preserve sessions when using Ajax
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 200
(1 row)
ibl_stats=# SELECT COUNT(*) FROM teams WHERE NOT (id IN (2479, 2485));
count
---
1515
(1 row)
Looks the same to me.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
t;
Well, you might be able to salvage some of the libraries you've
written specifically for the application by placing them in the
'vendors' directory, but you will have to do a lot of refactoring of
the rest.
Don't fight the conventions, embrace them!
--
Chris Hartjes
Internet
Unless, of course, this is a CakePHP-specific question.
I don't think it is though.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~-
ed by the ACL have been named that as long as I can
remember, and I guess you're right when you state that they don't seem
to follow the standard for alphabetical precedence in join tables.
Does it really matter that the ACL component doesn't seem to follow
this rule? I ask not to b
I manually go to:
> http://localhost/notes/index.php/notes/add I receive the right content
> What is wrong in the set up?
The pretty URL's only work if you have mod_rewrite (or other rewriting
rules) setup.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herdi
tly* what is wrong: you have no
table called 'user_tests' in the database that your model SiteTest is
trying to use.
I am not of the opinion that PHP and CakePHP spits out
hard-to-diagnose error messages.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from her
On Fri, Apr 18, 2008 at 10:07 AM, Wisnu Manupraba <[EMAIL PROTECTED]> wrote:
> i got some problem with the new model ini 1.2 such as findAll in 1.2 has
> option list and so on
http://book.cakephp.org
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elep
ent-is-not-a-4-letter-word-the-screencast/
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message beca
of a CREATE not an
> UPDATE?
I think the important thing to understand is *why* the getListInsertId
method is only returning something when you do an INSERT.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard
}
> }
Perhaps I'm just jetlagged, but your if statement seems to only be
triggered if the record has NOT been saved, which is kind of weird.
Maybe I'm misunderstanding what's happening here.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from
www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~--
ble as the idea of a CakePHP-specific IDE
is, there are many IDE's that can be made Cake friendly with minimal
effort.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http
On Fri, Apr 11, 2008 at 4:40 PM, Pierre MARCOURT
<[EMAIL PROTECTED]> wrote:
>
> Thanks Chris,
>
> but when I try to use the create method, I have the Fatal error :
> Call to undefined method FormHelper::create()
That link was for CakePHP 1.2.
--
Chris Hartjes
Interne
rity restrictions in the
> browser, is it ?
http://book.cakephp.org/view/182/forms
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~--
r not.
>
That's excellent. Even if it's not a bug, more tests are always good.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~--
$perms, '{n}.Aco.id', 'desc');
> // =
>
> before:
> $perms = Set::extract($perms, '{n}.' . $this->Aro->Permission->alias);
>
1) please file a ticket with trac about this
2) post proof that your fix will work by writing a test f
ied the various tutorials out there as there are quite a
few good ones. Some of them are even on my blog listed below.
Auth *is* simple to use and setup.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.lit
On Wed, Apr 9, 2008 at 12:29 PM, R. Rajesh Jeba Anbiah
<[EMAIL PROTECTED]> wrote:
>
> Ok, you started dodging to be smart; but your conclusions still
> look more dumber to me.
Stupid is as stupid does.
Caching is a big help, but sometimes masks other problems.
--
Chris H
a web app with it.
Yes, caching is a good solution for a lot of these problems but avoids
the real answer to the question. Which is "it doesn't matter because
there are other problems outside of Cake".
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from he
On Wed, Apr 9, 2008 at 11:41 AM, DragonI <[EMAIL PROTECTED]> wrote:
>
> Coolio!
>
> But does anyone know what the overhead/performance is like?
Compared to what? I doubt you'd even notice it.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from h
!
Something in the back of my mind told me that there was support. Of
course, your database has to support it but these days both MySQL and
Postgres do.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard:
t;
I'm guessing that there is no built-in support for transactions, so if
things screw up you're on your own. Of course, since so many people
think I'm ignorant of Cake they will correct me if I'm wrong.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Mo
ndition like this:
$conditions = array("1=1 GROUP BY tags.name")
$this->Model->findAll(compact('conditions'))
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://ww
On Sun, Apr 6, 2008 at 12:52 PM, me_rulz <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Am wondering if I need to apply for any licenses to use CakePHP for
> commercial purposes.
No. The license that comes with CakePHP refers to the code itself,
not it's use.
Views, and Controllers for me, or
> do I need add those all in by hand?
>
> Thanks
>
You can use the 'bake' utility that comes with CakePHP.
http://book.cakephp.org/view/109/introduction
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from her
send(), the contents of the body
> get appended to the last send.
Try $this->Email->reset() after you send the mail.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
ute ?
I don't think so, because from what I can tell it expects the ':' to
be at the front of any part of route element, not in the middle.
You might be able to solve this problem with a rewrite rule, but I'm
just thinking off the top of my head.
--
Chris Hartjes
Internet Loud
this throws a 404 not found.
> If I use Model->findAll("id = 5 and status = 1") it works fine.
I'm using the latest version of CakePHP straight out of SVN (r6636)
and are not seeing any such behaviour.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding
ve($this->data)) {
61 $this->Session->setFlash(__('The User has been
saved', true));
62 $this->redirect(array('action'=>'index'));
63 } else {
64 $this->Session->setFlash(__('The Use
akePHP is probably not suited to do
that sort of thing on the scale you require. As good as CakePHP is,
there are some problems it cannot easily solve.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyB
ce in the two. I use phpMyAdmin every day for work and I
can't help notice that by default it limits the amount of data you can
pull back.
3) This discussion is veering very far away from CakePHP.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from h
pose of using it in Cake.
Check out this article for some more details about it
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1292
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http:
ficult to do
without either running out of memory or execution time. I'd do it in
chunks if it were me.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.l
out what ignorant people think about me.
Yes, I do use CakePHP. Otherwise I'd be wasting my time here. Don't
blame me for failing to understand what your problem is. Maybe you
should look into how you're asking your questions.
--
Chris Hartjes
Internet Loudmouth
Mott
ssword field would display
things in plaintext instead of asterixes is because you haven't set
the field type properly.
Hope you find the problem.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http:/
e on how having Cake return
result sets as an object instead of an array set will help you. I am
not understanding how the objects will take up less memory than an
array when you have 600,000+ records.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to ha
On Thu, Apr 3, 2008 at 9:26 AM, Tom <[EMAIL PROTECTED]> wrote:
>
> Hi, i would like to know how to transfer an array in PHP to JSON ? and
> see it with JSON
http://ca.php.net/json
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephant
nd or create your own helper.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed
use recursive but can't get it to work".
$this->User->recursive = -1;
$this->User->findById($id);
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~---
('1=1 GROUP BY Transaction.id');
$fields = array('SUM(TransactionItem.amount) as amount', 'Transaction.title'))
$results = $this->TransactionItem->find('all', compact('conditions', 'fields));
Hope that helps.
--
Chris Ha
he pre-defined timeout then?
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subsc
s is not being set?
> Do I not understand how this is supposed to be done?
Sadly, Cake cannot read your mind and automatically set
$this->Model->id for you when you do a read.
$data = $this->Model->findByName("name");
$this->Model->save($data);
--
Ch
ght keywords.
>
See, if only more people asking questions did their homework like this
person, I would be a lot less grumpy.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKe
ype =
'password'. Again, make sure that all the code for your APPLICATION
is the same on Ubuntu as it is on Windows. Don't assume it is, make
sure it is.
Weird problems almost always have simple solutions.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herdin
101 - 200 of 1221 matches
Mail list logo