Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread Chris Hartjes
y('rule' => 'alphaNumeric', 'required' => true, 'message' => 'Required') ); If I am misunderstanding the issue, please correct me. -- Chris Hartjes Internet Loudmouth Motto for 2008: &q

Re: WebService in Cake 1.2

2008-05-14 Thread Chris Hartjes
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

Re: Auth::allowedActions appear seriously messed up

2008-05-13 Thread Chris Hartjes
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/

Re: Current Id - wie bekomme ich diese heraus

2008-05-13 Thread Chris Hartjes
>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

Re: Somebody konw any library for receive html code and generate document pdf?

2008-05-12 Thread Chris Hartjes
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

Re: This is more of a general application design question than a CakePHP question...

2008-05-12 Thread Chris Hartjes
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 --~--~-~--

Re: Auth Problems

2008-05-11 Thread Chris Hartjes
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 --~--~---

Re: auth->allow index

2008-05-10 Thread Chris Hartjes
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') {

Re: Cake command line

2008-05-10 Thread Chris Hartjes
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

Re: Cake integration with other app and session

2008-05-08 Thread Chris Hartjes
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

Re: OT: Shitty Community

2008-05-08 Thread Chris Hartjes
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

Re: Something on the top of CakePHP

2008-05-08 Thread Chris Hartjes
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

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Chris Hartjes
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

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Chris Hartjes
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

Re: Something on the top of CakePHP

2008-05-07 Thread Chris Hartjes
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

Re: CakePHP and Flickr -- sitepoint example

2008-05-07 Thread Chris Hartjes
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

Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Chris Hartjes
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

Re: Missing PaginatorHelper Method in View

2008-05-06 Thread Chris Hartjes
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

Re: Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Chris Hartjes
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

Re: Is Cake 1.2 ready to use in production?

2008-05-05 Thread Chris Hartjes
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:

Re: CakePlus - On the top of CakePHP

2008-05-05 Thread Chris Hartjes
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

Re: CakePlus - On the top of CakePHP

2008-05-05 Thread Chris Hartjes
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

Re: CakePlus - On the top of CakePHP

2008-05-05 Thread Chris Hartjes
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

Re: CakePlus - On the top of CakePHP

2008-05-05 Thread Chris Hartjes
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

Re: What Happened to the Cakephp.org domain?

2008-05-04 Thread Chris Hartjes
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 --~--~-~--~~~---~--~

Re: Help - Error validation wipes out database/record id during "edit"

2008-05-02 Thread Chris Hartjes
} > } > 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

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Chris Hartjes
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. :)

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Chris Hartjes
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'

Re: why does cache view keep on regenerating

2008-05-02 Thread Chris Hartjes
= '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&#

Re: Looking for the Rapid in Cakephp

2008-05-01 Thread Chris Hartjes
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

Re: $this->redirect from a Model?

2008-04-30 Thread Chris Hartjes
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

Re: Acl Cake 1.2

2008-04-30 Thread Chris Hartjes
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

Re: problems with bake

2008-04-30 Thread Chris Hartjes
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 --~--~-~--~~---

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
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 --~--~-~--~~~---~--~---

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
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

Re: Looking for the Rapid in Cakephp

2008-04-29 Thread Chris Hartjes
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

Re: problems with bake

2008-04-29 Thread Chris Hartjes
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

Re: getLastInsertID() & mysql_insert_id

2008-04-29 Thread Chris Hartjes
;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

Re: Doubt with 2ble Auth

2008-04-29 Thread Chris Hartjes
#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

Re: Problem with OS X and .ctp files

2008-04-26 Thread Chris Hartjes
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.

Re: Auth Component Question

2008-04-26 Thread Chris Hartjes
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

Re: Cake 1.2 Undefined Variable: paginator

2008-04-25 Thread Chris Hartjes
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

Re: Cake 1.2 Undefined Variable: paginator

2008-04-25 Thread Chris Hartjes
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

Re: Can Cake Do Calculated Ordered List SQL Queries?

2008-04-25 Thread Chris Hartjes
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

Re: Session need HELP

2008-04-25 Thread Chris Hartjes
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: reset Session variables without any visible cause

2008-04-25 Thread Chris Hartjes
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 --~--~--

Re: how to save a particular field in php cake

2008-04-25 Thread Chris Hartjes
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

Re: Problem with widget in opera.

2008-04-25 Thread Chris Hartjes
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 --~--~-~--~~

Re: First Doubt with CakePHP

2008-04-24 Thread Chris Hartjes
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

Re: Slow...

2008-04-24 Thread Chris Hartjes
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

Re: Changing username of Authenticated user

2008-04-24 Thread Chris Hartjes
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

Re: Uses PHPUnit instead of SimpleTest

2008-04-24 Thread Chris Hartjes
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 --~--~-~--~~~---~--~---

Re: Slow...

2008-04-24 Thread Chris Hartjes
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

Re: Router::queryString issue in 1.2 beta

2008-04-23 Thread Chris Hartjes
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

Re: Ajax::observeField

2008-04-23 Thread Chris Hartjes
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

Re: Ajax::observeField

2008-04-23 Thread Chris Hartjes
;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

Re: How to use "not in" in new find() ?

2008-04-23 Thread Chris Hartjes
(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

Re: Keepin both MVC architecture and the old style ..

2008-04-22 Thread Chris Hartjes
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

Re: php fopen()

2008-04-21 Thread Chris Hartjes
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 --~--~-~--~~~-

Re: CakePHP ACL and database naming conventions

2008-04-18 Thread Chris Hartjes
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

Re: folder problem

2008-04-18 Thread Chris Hartjes
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

Re: testing in cakephp 1.2-Bug-Class 'Usel' Not found

2008-04-18 Thread Chris Hartjes
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

Re: Which CakePHP version should I use?

2008-04-18 Thread Chris Hartjes
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

Re: Need tips on keeping Test, Dev, Production In Sync

2008-04-17 Thread Chris Hartjes
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

Re: Unexpected behavior of Model::getLastInsertId(); Bug or misunderstanding?

2008-04-17 Thread Chris Hartjes
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

Re: Please help, I can't get Model getLastInsertId to work

2008-04-16 Thread Chris Hartjes
} > } 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

Re: How can you do pagination with fat models?

2008-04-15 Thread Chris Hartjes
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 --~--~-~--~~~--

Re: CakePHP IDE

2008-04-13 Thread Chris Hartjes
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

Re: Submit “multipart/form-data” forms with CakePHP / Ajax

2008-04-11 Thread Chris Hartjes
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

Re: Submit “multipart/form-data” forms with CakePHP / Ajax

2008-04-11 Thread Chris Hartjes
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 --~--~-~--~~~--

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread Chris Hartjes
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 --~--~-~--~~--

Re: ACL: ACOs inherit permission settings backwards?

2008-04-09 Thread Chris Hartjes
$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

Re: Quick Auth component issue

2008-04-09 Thread Chris Hartjes
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

Re: organizing controlleres into subdirectories

2008-04-09 Thread Chris Hartjes
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

Re: organizing controlleres into subdirectories

2008-04-09 Thread Chris Hartjes
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

Re: organizing controlleres into subdirectories

2008-04-09 Thread Chris Hartjes
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

Re: Controlling database commits

2008-04-08 Thread Chris Hartjes
! 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:

Re: Controlling database commits

2008-04-08 Thread Chris Hartjes
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

Re: need some help with aggregate functions

2008-04-07 Thread Chris Hartjes
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

Re: Licensing issues with CakePHP for commercial use

2008-04-06 Thread Chris Hartjes
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.

Re: Question on setting up scaffolding

2008-04-06 Thread Chris Hartjes
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

Re: Email::send() in a loop. (1.2.x.x)

2008-04-06 Thread Chris Hartjes
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

Re: Routing example ?

2008-04-06 Thread Chris Hartjes
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

Re: Using Arrays throws 404 Not Found error

2008-04-05 Thread Chris Hartjes
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

Re: Auth component not hashing all passwords.

2008-04-04 Thread Chris Hartjes
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

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Chris Hartjes
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

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Chris Hartjes
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

Re: Amazon AWS SimpleDB

2008-04-04 Thread Chris Hartjes
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:

Re: Model find() to return object; instead of array (?)

2008-04-03 Thread Chris Hartjes
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

Re: Model find() to return object; instead of array (?)

2008-04-03 Thread Chris Hartjes
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

Re: Auth allow ?

2008-04-03 Thread Chris Hartjes
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:/

Re: Model find() to return object; instead of array (?)

2008-04-03 Thread Chris Hartjes
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

Re: Array in PHP to JSON

2008-04-03 Thread Chris Hartjes
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

Re: How can I user jQuery insted of prototype?

2008-04-03 Thread Chris Hartjes
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

Re: Model Associations and Validations

2008-04-02 Thread Chris Hartjes
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 --~--~---

Re: retrieving aggregated data from the model

2008-04-02 Thread Chris Hartjes
('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

Re: Maintaining Session - Will this work?

2008-04-01 Thread Chris Hartjes
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

Re: model executing INSERT instead of UPDATE - why?

2008-04-01 Thread Chris Hartjes
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

Re: Adding an extra column (sub query) to a model using associations

2008-04-01 Thread Chris Hartjes
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

Re: Auth allow ?

2008-04-01 Thread Chris Hartjes
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

<    1   2   3   4   5   6   7   8   9   10   >