Re: CakePHP memory usage: what is going on here???

2008-07-01 Thread floob
By any chance, does your AppController reference a Helper that doesn't exist? (https://trac.cakephp.org/ticket/5010) That would explain it. On Tue, Jul 1, 2008 at 4:37 PM, Matt Huggins <[EMAIL PROTECTED]> wrote: > > I started getting "Fatal error: Allowed memory size of..." errors > while devel

Re: CakePHP 1.2 RC2 - Apache Crash on Vista

2008-07-01 Thread floob
Hi Eric, I believe I had the same issue a few days ago. There's already a bug report filed for it (https://trac.cakephp.org/ticket/5010). I'm not familiar with Vista's server setup, but if you install a php debugger, I'd bet you'll find the application stuck in an infinite loop. On Mon, Jun 30

Re: Newbie Question: conditions on a find('all') for hasMany?

2008-06-30 Thread floob
I'm not sure that either of these suggestions will help your problem, but ... 1) you should try using the latest CakePHP (revision 7296 last I checked). There have been a number of improvements and bug fixes since 6311. 2) you've got an extra comma at the end of your find query ("'recursive' =>

Re: Routing: "/recipe-your_slug_here" instead of "/recipe/your_slug_here"

2008-06-27 Thread floob
Nate Abele wrote up a great article about custom URL's. The effect you're looking for is at the very bottom, but I'd suggest reading the whole thing anyway =] http://c7y.phparch.com/c/entry/1/art,cake-seo On Fri, Jun 27, 2008 at 1:06 PM, Jaime <[EMAIL PROTECTED]> wrote: > > Hi all, > > For cert

Re: a question about "cascading $hasOne"'s

2008-06-25 Thread floob
Model::$recursive (http://book.cakephp.org/view/66/models#recursive-439) Also, if you're using Cake 1.2, findAll has been deprecated, replaced with find ('all', ... ); (in your controller) $this->z->find ('all', array('recursive' => 2)); On Wed, Jun 25, 2008 at 10:53 AM, Dave <[EMAIL PROTEC

Re: Documentation

2008-06-24 Thread floob
I've been going at cake for a bit over one month, and I've developed a love/hate relationship with it. I apologize if this is a rant ... cake documentation is a touchy subject for me, and I believe my experiences may help you. Understanding CakePHP has been an uphill battle the whole way, but it

Re: Url problem

2008-06-23 Thread floob
Read up on Routing. I've done similar work with some creative routes. http://book.cakephp.org/view/39/configuration#routes-configuration-46 On Mon, Jun 23, 2008 at 1:27 AM, AbhinavZone <[EMAIL PROTECTED]> wrote: > > is there any other way so that I don't need to change source?? > > On Jun 23, 10

Re: Storing PHP in a Table

2008-06-23 Thread floob
Just to be sure ... When you view page source, do you see your code snippets? If you do, then 703designs is 100% right, and Sanitize::html could be useful to you. http://api.cakephp.org/class_sanitize.html On Mon, Jun 23, 2008 at 12:01 PM, 703designs <[EMAIL PROTECTED]> wrote: > > The clumsy way

Re: HABTM on multiple DB

2008-06-19 Thread floob . spam
You can set which Database a Model uses in the Model itself, using the $useDbConfig variable. http://book.cakephp.org/view/66/models#usedbconfig-435 . On Thu, Jun 19, 2008 at 8:33 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Is it possible set a HABTM relation between table on different >

Re: Problem with hasOne and belongsTo using non-standard foreignKeys

2008-06-18 Thread floob
Hey Robert, You've got it a bit backwards. If Item contains all the foreign keys, then Item _belongsTo_ ItemType and ItemStatus. Type and Status would both "haveOne" Item From the book's section on Associations : belongsTo: "foreignKey: the name of the foreign key found in the _current_ model

Re: Deleting dependent models with conditions

2008-06-07 Thread floob
Almost forgot ... here's the link to the ticket: https://trac.cakephp.org/ticket/4202 On Jun 7, 1:42 pm, floob <[EMAIL PROTECTED]> wrote: > Has anyone ever deleted from a Model that has dependent joins with > conditions, and realized that more rows got deleted than they > e

Deleting dependent models with conditions

2008-06-07 Thread floob
Has anyone ever deleted from a Model that has dependent joins with conditions, and realized that more rows got deleted than they expected? To give an example, let's declare 3 classes, Book Cd and OverallFavorite. OverallFavorite stores your prioritized rank of all of your favorite stuff ... favo

Re: Another "does cake fit my needs" question

2008-06-06 Thread floob
EmailComponent has worked fine for me. I haven't done any mass mailing, though. FWIW, it's ridiculously simple to drop in 3rd-party mailers with cake's vendor setup. On Jun 6, 2:11 pm, teum <[EMAIL PROTECTED]> wrote: > Hi, > > I need to bake an application to allow people to send newsletters. So

Re: Session destroy and reinitialize in same action

2008-06-06 Thread floob
his->Session->setFlash('You have logged out'); > > On Jun 5, 5:03 pm,floob<[EMAIL PROTECTED]> wrote: > > > I may be missing some key concept about how Sessions work in general, > > so if this problem is inevitable everywhere, do please help me learn > > wh

Session destroy and reinitialize in same action

2008-06-05 Thread floob
I may be missing some key concept about how Sessions work in general, so if this problem is inevitable everywhere, do please help me learn why. The situation is, in an action such as User logout for example, I would like to destroy the session, initialize a new session, and store a logout message