Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread John David Anderson


On Sep 18, 2007, at 8:51 PM, rtconner wrote:

>
> Can I be there AND be a square?

No. By being there, you are (by defintion) cool.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb

Hi Chris,

Thanks for your input. As I mentioned we've been updating the core
from the 1.2.x branch in the SVN quite regularily and without major
issues. This is why I was surprised to even think that the core was
broken not only unstable). Now with you comment in mind, we've
exported a version from the latest nightly build (now r5670) and
started to build simple things from the ground up. We were able to
reproduce the error very constantly with very little code.

The error is; You are seeing this error because the private class
method admin_index should not be accessed directly.
and it happens the second we add function admin_index() {} to the
AppController.

>From the export of the latest core, config the db connection, activate
the activate Routing.admin, create a basic Company model and
CompaniesController. Then add an AppController at the application
level and run /admin/companies

So is there any reason why this (admin_index in appcontroller)
wouldn't be right according to cake?!

Thanks Chris,

Seb.

On Sep 18, 11:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Seb <[EMAIL PROTECTED]> wrote:
>
>
>
> > We've ran into a few issues with using admin routing with this
> > version, to a point where I asked a dev to start a new app from
> > scratch, with the latest core and configuring admin.routing properly.
> > The results weren't great to tell you the least. Activating the
> > Admin.routing by uncommenting the Configure::write('Routing.admin',
> > 'admin'); in the config/core.php just doesn't do it! fiddling around
> > raised all sorts of errors which I will not list.
>
> Hi Seb,
>
> Well, here at CDC we're using admin routing for a current project and
> I'm using the same release of CakePHP as you are (r5669), and my admin
> actions are all routing properly.  I know this is a stupid question,
> but are you sure it's not something else causing the problem?
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bake 1.2 not showing all my tables

2007-09-18 Thread [EMAIL PROTECTED]

Hi,
OK I think I figured out the caching problem.. I had to go into the
\app\tmp\cache\models\ and delete off those files from there.. that
seems to have fixed it.
Did anyone else also face such a similar problem?

Regards
Vinci

On Sep 18, 5:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
> I've been using bake to bake all Model Views and Controllers, it has
> been working fine, but strangely today, I created a couple of new
> tables, and when I run Cake Bake it doesn't show me the new tables.
> Even if I manually create the Models and Controllers, it still asks me
> to create the table even though the table exists in my database.
> What could be wrong, does CakePHP a caching issue or something.. I
> even tried deleting some tables  but cake bake still shows me the list
> of tables that were current till yesterday
>
> Any help will be appreciated
>
> Thanks in advance


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread rtconner

Can I be there AND be a square? Or are the two mutually exclusive?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP and learning..

2007-09-18 Thread John David Anderson (_psychic_)


On Sep 18, 2007, at 7:57 PM, Gould, Adrian wrote:

>
> Hi everyone
>
> Just to let you know I am using CakePHP as a teaching tool this  
> semester
> here in Western Australia.
>
> I first gave the students some foundation PHP skills, and that  
> included
> database operations, but no OOPS at the beginning.
>
> Since then they have been doing the IBM tutorials on Cake.
>
> I would really like to have a good CakePHP book that took them from  
> 1st
> principles on, explaining what is happening along the way.

Is there a way the manual can meet that need? It's currently being re- 
vamped and polished for the 1.2 release.

-- John



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Mariano Iglesias

You have the iTunes feed right there on live:

itpc://live.cakephp.org/shows/index.rss

-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 original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Gould, Adrian
Enviado el: Martes, 18 de Septiembre de 2007 10:54 p.m.
Para: cake-php@googlegroups.com
Asunto: RE: CakePHP Live Broadcast: Be There Or Be Square

Would be great if the show was recoded for podcasting/vidcasting via
iTunes or such

I would certainly subscribe to it and recommend to my students!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI

Hi Samuel,

Well, it's pouched again. So you can check for yourself ;)


On Sep 18, 10:10 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> yea that's not the actual download, it's a page with links to it.
>
> On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I just wanted to point out that the nightly build file,
> > 1.2.x.x_17.09.2007.tar.gz 
> > fromhttp://cakephp.org/downloads/index/nightly/1.2.x.x
> > is only 20 bytes.
>
> > Thanks!
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CakePHP and learning..

2007-09-18 Thread Gould, Adrian

Hi everyone

Just to let you know I am using CakePHP as a teaching tool this semester
here in Western Australia.

I first gave the students some foundation PHP skills, and that included
database operations, but no OOPS at the beginning.

Since then they have been doing the IBM tutorials on Cake.

I would really like to have a good CakePHP book that took them from 1st
principles on, explaining what is happening along the way.

Any suggestions?

I might even have to sit and write more on how to develop an application
from start to finish (including problem analysis, database deign and so
on).

If there are any educators out there, or even non educators who would
love to assist in this then please let me know.

Ady

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Gould, Adrian

Would be great if the show was recoded for podcasting/vidcasting via
iTunes or such

I would certainly subscribe to it and recommend to my students!

Ady

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Loiselle aka phishy
Sent: Wednesday, 19 September 2007 4:50 AM
To: Cake PHP
Subject: CakePHP Live Broadcast: Be There Or Be Square



Hello Fellow Bakers!

We have just released a new live podcast for CakePHP called "The Show."

The Show is a weekly live internet radio broadcast where we discuss
CakePHP-related topics and answer questions live via IRC, Skype, and
telephone.

The Show was conceived after core developer Nate Abele and I recorded a
podcast for php|architect with our good friend Paul Reinheimer. We had
so much fun doing the podcast, that we decided to keep it going for the
CakePHP community. The Show was born.

http://live.cakephp.org
Tune in September 18, 2007 at 12:00 PM EST for the next broadcast

Welcome To The Show!

Regards,
Jeff Loiselle aka phishy




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: log php error messages

2007-09-18 Thread Grant Cox

I've noticed this too, and assumed it was because I use a custom log
class.  When DEBUG > 0, then any notices, warnings and errors are
logged to the /app/tmp/logs/error.log with my own debug statements.
When DEBUG = 0 though, none are logged.

In both cases, the "log_errors" and "error_log" settings in php.ini
are ignored (due to the set_error_handler() call in /cake/libs/
debugger.php), and when DEBUG is 0 then the error_reporting(0); in /
cake/libs/configure.php causes the debugger not to log any errors.

Would most people assume that when in production mode no errors are
logged at all?  I certain agree that notices and warnings should not
be, but if there is a fatal error for some reason it makes sense that
this should at least be logged...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Forms that add/edit multiple models

2007-09-18 Thread Geoff Ford

As long as the form elements are named using the cake conventions i.e.
name="data[ModelName][fieldName]" (best acheived by using the
FormHelper functions) there should be no difference between single and
multi-model forms.

The only difference is when you need to validate both models before
saving either.  In the controller you need to call $this->ModelOne-
>validates() and $this->ModelTwo->validates() before calling the save
functions.

Also you will need to add $uses = array('ModelOne', 'ModelTwo') to
your controller to be able to access both models properly.

Geoff
--
http://lemoncake.wordpress.com

On Sep 19, 5:19 am, nryan <[EMAIL PROTECTED]> wrote:
> Hello -- I have another question regarding the 'right way' to do
> something with cake.
>
> I have a form on a page which updates 2 different models. Is there a
> recommended way to structure the page in cake? Like, where should the
> form-handling logic go? Anyone have a suggested way to make the most
> out of cake's validation/saving?
>
> Thank you!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Custom SQL Query for BelongsTo Assitiation

2007-09-18 Thread Grant Cox

If your association has a dynamic foreign model, then you need to
rebind the association before each request to ensure the correct model
is used.  Or, if the model stays the same, but that model's table
changes, then you just want to change the associated model's
"useTable" property before each request.

Either way, you should be able to do it in your Organiserobject's
beforeFind() callback - look at the provided query conditions and
either use bindModel/unbindModel (to change what foreign model you are
associated to), or to just have $this->ReferenceObject->useTable =
'whatever_table'; to change which foreign table is being queried for
the ReferenceObject.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Spoofing / Otherwise $this->data

2007-09-18 Thread Femi Taiwo





Hi all,
Maybe
Let's say I'm trying to create a new record using a form and these are
the fields in model Article - id, name, content etc
Naturally I'd just go ahead to do a
$this->Article->save($this->data) with the form elements
'name' and 'content' in the view. I also have the validate options set
in my Article model to require both fields. No problem thus far.
Naturally, I call
$this->Article->create() before
$this->Article->save($this->data). However, assuming I have 3
entries in the database with ids 1,2,3. Even if I call a
$this->Article->create() first, i notice if I include a form
element with name Article/id, What actually happens is that the id of
the record specified in that form element is updated if it exists,
created if otherwise. This presents a new kind of nightmare for me,
understanding that forms can be modified (hacked is more like it) by my
site users.

Things I've tried - 
1. Calling $this->Article->create($this->data) first
2. Specifying the fieldList with just 'name' and 'content' in the
array();

However just as I was about typing this mail, an idea occurred to me.
And it works.
I created my own app_model.php and placed it in my app dir. Here's an
extract of the contents


    class AppModel extends Model{
        function create(&$data="">
        {
    
    
            if(count($data)){
                if(isset($data[$this->name])){
                
                    $data[$this->name]['id']=null;
                
                }
            }
            parent::create($data);
        }
}
?>

Using this, I was able to set id to null to
fix the 'problem'. And it works.

The only other alternatives I see is to extract manually from
$this->data what I want to insert or by always setting
$this->data['Article']['id'] to null in my controller and any other
controller actions that creates new records. Really awkward stuff
So the easiest fix is the one in the app/app_model.php . 


Has anyone experienced/solved this any other way?


Cheers

Femi TAIWO.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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, visit this group at http://groups.google.com/group/cake-php?hl=en  -~--~~~~--~~--~--~---





Re: Cake Project Planning

2007-09-18 Thread Adam Royle

Since I only ever implement someone else's designs, I just print out
their design and go through each section and link and write notes
about how I will implement - ie. what controller & action it should
be. Jot down anything unusual or special. Then I create my database
based on information displayed in those designs, and then bake my
models, controllers and views and start hacking away.

Adam

On Sep 19, 3:56 am, jwerd <[EMAIL PROTECTED]> wrote:
> I am looking for suggestions for software that you use to plan your
> projects, or guidelines you follow when planning.  I have a pretty
> large project but I want to plan it out a lot better and I have a good
> feeling there is software out there to help me acheieve this.
>
> Preferably mac.  It can be a web service also.  I'm looking for free,
> if possible as well.
>
> Thanks for your time!  Spam away!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon

ok, here's the FULL solution (ran into some other problems, hehe):

following is copy/paste'd from the Mint forum thread at
http://www.haveamint.com/forum/troubleshooting/629/birdfeeder_pepper_and_the_cakephp_framework#post_5640



Ok, this has been resolved, once and for all :) NOTE: I'm sure there
are better ways of achieving the same goal, but this worked, and I
don't feel like touching it anymore.

To get the Bird Feeder Pepper to work in CakePHP:

1) Follow all the directions in the ReadMe file.
2) Add the following lines BEFORE the define() and include() code you
added from the ReadMe file:

global $Mint;
global $Pepper;

3) Ensure that the path in the include() statement is correct. I had
to add cake/app/webroot/ to mine.
ANOTHER NOTE: Some of this path-related hassle may, in fact, have been
caused by either Cake's or my own mod_rewrite rules, as is often the
case with Mint, rather than Cake itself. While it won't hurt anything,
I would recommend just trying steps 1 and 2 and seeing if that works.
If not, then start fixing the paths.
4) In the birdfeeder/watcher.php file, adjust the definition of the
MINT_ROOT constant to point directly to your Mint installation. Mine
now reads:

define('MINT_ROOT', $_SERVER['DOCUMENT_ROOT'].'/cake/app/webroot/js/
mint/');

That's it. After that, everything was perfect. Hope this helps
someone... Hope Julian (original poster) either fixed it or comes back
to see this.


On Sep 18, 12:12 pm, Brad Dillon <[EMAIL PROTECTED]> wrote:
> Chris, thank you! I went to your blog and searched 'Mint' and found
> the answer...
>
> For future reference, the Bird Feeder plugin for Mint requires that
> you add two lines of code to your feed template. BEFORE those two
> lines of code, you have to instantiate the global 'Mint'. The article
> I found at Chris' blog is 
> athttp://www.littlehart.net/atthekeyboard/2007/01/30/wordpress-21-and-mint,
> and I'm going to add this info to the Mint forum thread as well.
>
> Thanks again Chris and everyone else.
>
> On Sep 18, 11:55 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 9/18/07, Brad Dillon <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the tip McFadly, I'll be sure to check it out right away.
>
> > > Just wanted to point out that Mint itself works great with cake. No
> > > problems getting it set up at all. The only issue I've been having are
> > > with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint
> > > for stat tracking, though. It's a fantastic piece of software :)
>
> > I seem to remember having the same problem getting Bird Feeder to work
> > on my own WordPress blog...I will dig through my old notes and see
> > what I can find.  I seem to remember doing a blog post about it, but
> > the situation may have improved since then.
>
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: log php error messages

2007-09-18 Thread Claudia

Thanks for your replies.

@AD: The error logs are not filled if debug is set to 0. Of course you
are correct that there should not be any errors in an online page but
it would be nice to be sure about it.

@Marcus: Unfortunately I do not have access to this log. Apart from
that I would like to log additional information for any error so
having a custom error handler would be nice.

Claudia

On Sep 18, 3:00 pm, "Marcus T. Jaschen" <[EMAIL PROTECTED]> wrote:
> Claudia wrote:
> > Hi there
>
> > How can I log any notice/warning/error thrown by php?
>
> PHP (not CakePHP) warnings and errors can be logged to syslog or to a
> file, search php.ini for the 'error_log' setting.
>
> M
arcus


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CakePHP Live Broadcast: Be There Or Be Square

2007-09-18 Thread Jeff Loiselle aka phishy

Hello Fellow Bakers!

We have just released a new live podcast for CakePHP called "The
Show."

The Show is a weekly live internet radio broadcast where we discuss
CakePHP-related topics and answer questions live via IRC, Skype, and
telephone.

The Show was conceived after core developer Nate Abele and I recorded
a podcast for php|architect with our good friend Paul Reinheimer. We
had so much fun doing the podcast, that we decided to keep it going
for the CakePHP community. The Show was born.

http://live.cakephp.org
Tune in September 18, 2007 at 12:00 PM EST for the next broadcast

Welcome To The Show!

Regards,
Jeff Loiselle aka phishy


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Radinks image uplaoding - bug on resize

2007-09-18 Thread Owki

I use the Radinks applet 3.12 for image upload on my site. It seems
there is a bug when the client-side resize function is activated. The
last image of the group is uncomplete on the server. Has anybody used
this applet with image resizing?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Database Migrations ala RoR

2007-09-18 Thread gonzoprosperity

Existing data is definitely NOT hosed. As Grant Cox points out below,
its really for schema modification. And the only data changes that
might be executed were if you wrote any DROP table / column
statements.

Also, data from an arbitrary DB can be generated via set of INSERT
statements, which in turn is generated by mysqldump (for example, if
MySQL is your DB). Just look at the "-t" flag to mysqldump which
suppresses the CREATE statements and just emits pure INSERT
statements.

Assuming your table structures have not changed, thats all your data.

/cody

On Sep 17, 10:16 am, "Sonic Baker" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> On 9/11/07, gonzoprosperity <[EMAIL PROTECTED]> wrote:
>
>
>
> > //populate it with some default data
> > $this->execute("INSERT INTO users (...) VALUES (...)");
>
> > Does this answer your question?
>
> I was wondering if, once the new schema is defined, can the data from the
> old structure be imported automatically from the old schema, via any method.
> I guess no is the answer then.
> Thanks for your help.
>
> Sonic


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake Project Planning

2007-09-18 Thread jwerd

Actually that sounds great.  I need to get omnigraffle but in the mean
time, do you want to send me a copy?

On Sep 18, 12:42 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> I am working on an omnigraffle stencil set if you think that might be helpful
>
> Sam D
>
> On 9/18/07, jwerd <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am looking for suggestions for software that you use to plan your
> > projects, or guidelines you follow when planning.  I have a pretty
> > large project but I want to plan it out a lot better and I have a good
> > feeling there is software out there to help me acheieve this.
>
> > Preferably mac.  It can be a web service also.  I'm looking for free,
> > if possible as well.
>
> > Thanks for your time!  Spam away!
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Forms that add/edit multiple models

2007-09-18 Thread nryan

Hello -- I have another question regarding the 'right way' to do
something with cake.

I have a form on a page which updates 2 different models. Is there a
recommended way to structure the page in cake? Like, where should the
form-handling logic go? Anyone have a suggested way to make the most
out of cake's validation/saving?

Thank you!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake (and Bake) error in cake/libs/model/dbo/dbo_mysql.php in function describe

2007-09-18 Thread Jeff Brown
Hi again,

I hadn't mentioned before but my change was done in file:
/* SVN FILE: $Id: dbo_mysql.php 5612 2007-08-30 01:49:55Z phpnut $ */

Anyway, another problem I discovered, trying to move my database into cake
with bake, As I'd mentioned earlier, it was strange that bake wasn't quite
working right.

So I found that bake wasn't getting the names from the model.  But then it
doesn't really use the model then

bake.php:430 -> $modelFields = $db->describe($tempModel);

Probably the right fix would be to modify $db->describe() to add the 'name'
field to the array even though it's already indexed by name.  This would
probably need to be done (or checked) in all the dbo files, but I only have
mysql handy, so that's all you get.

as in:

(from my previous fix, just inside the end of the if block I proposed, add
the following:

192 /*
193 ** to make name of column available
194 */
195 $column[0]['Field'] =
$column['COLUMN_NAME']['Field'];



Then we need that value shoved into the $fields array, (happens right after
the if block closes 197 if you're following along.  I placed last
in the construction of the fields array.

202 /*
203 ** jefkin, adding the name
value...
204 */
205 'name'  =>
$column[0]['Field']



So that make the name go through.

Jeff

On 9/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi group.
>
> New to cake, but I like the concept,  installed, and tried bake.php on
> a table in a database, it kept giving me very strange results.
>
> Finally I just went with it to see if I could get things working.
>
> after some other configuration issues, I pointed at my 'questions'
> table page. http://myserver/questions/
>
> I received a whole slew of errors, like 'undefined index 'Type'... in
> cake/libs/model/dbo/dbo_mysql.php
> also an error for 'Null', 'Default',  (each multiple times) and one
> time for 'Key'. for each column in the table.
>
> So being a decent debuger, I printed out the data in the database.
>
> mysql> describe questions;
> +-+-+--+-+-++
> | Field   | Type| Null | Key | Default | Extra  |
> +-+-+--+-+-++
> | id  | int(11) | NO   | PRI | NULL| auto_increment |
> | desc_id | int(11) | NO   | MUL | 0   ||
> +-+-+--+-+-++
>
> database: mysql 5.0.22
>
> so as I said, I'm used to debuging, I printed out what the cake file
> was seeing:
>
> describe `questions`
>
> Array
> (
> [0] => Array
> (
> [COLUMN_NAME] => Array
> (
> [Field] => id
> )
>
> [COLUMN_TYPE] => Array
> (
> [Type] => int(11)
> )
>
> [IS_NULLABLE] => Array
> (
> [Null] => NO
> )
>
> [COLUMN_KEY] => Array
> (
> [Key] => PRI
> )
>
> [COLUMN_DEFAULT] => Array
> (
> [Default] =>
> )
>
> [EXTRA] => Array
> (
> [Extra] => auto_increment
> )
>
> )
>
> [1] => Array
> (
> [COLUMN_NAME] => Array
> (
> [Field] => desc_id
> )
>
> [COLUMN_TYPE] => Array
> (
> [Type] => int(11)
> )
>
> [IS_NULLABLE] => Array
> (
> [Null] => NO
> )
>
> [COLUMN_KEY] => Array
> (
> [Key] => MUL
> )
>
> [COLUMN_DEFAULT] => Array
> (
> [Default] => 0
> )
>
> [EXTRA] => Array
> (
> [Extra] =>
> )
>
> )
>
> )
>
> Wanting to see something real come out, I added the following lines to
> dbo_mysql.php file:
>
> in 'foreach ($cols as $column)'
>
> in 'if (isset($column[0]))'
>
> added lines:
> 180   /*
> 181   ** jefkin: fixing describe reading
> for MySql 5.0.22
> 182   */
> 183   if ((isset($column['COLUMN_NAME']))
> && (isset($column['COLUMN_TYPE'])) &&
> 184   (isset($column['IS_NULLABLE']))
> && (isset($column['COLUMN_KEY']))  &&
> 185   (isset($

Re: Cake Project Planning

2007-09-18 Thread Samuel DeVore

I am working on an omnigraffle stencil set if you think that might be helpful

Sam D

On 9/18/07, jwerd <[EMAIL PROTECTED]> wrote:
>
> I am looking for suggestions for software that you use to plan your
> projects, or guidelines you follow when planning.  I have a pretty
> large project but I want to plan it out a lot better and I have a good
> feeling there is software out there to help me acheieve this.
>
> Preferably mac.  It can be a web service also.  I'm looking for free,
> if possible as well.
>
> Thanks for your time!  Spam away!
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cake Project Planning

2007-09-18 Thread jwerd

I am looking for suggestions for software that you use to plan your
projects, or guidelines you follow when planning.  I have a pretty
large project but I want to plan it out a lot better and I have a good
feeling there is software out there to help me acheieve this.

Preferably mac.  It can be a web service also.  I'm looking for free,
if possible as well.

Thanks for your time!  Spam away!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cake (and Bake) error in cake/libs/model/dbo/dbo_mysql.php in function describe

2007-09-18 Thread [EMAIL PROTECTED]

Hi group.

New to cake, but I like the concept,  installed, and tried bake.php on
a table in a database, it kept giving me very strange results.

Finally I just went with it to see if I could get things working.

after some other configuration issues, I pointed at my 'questions'
table page. http://myserver/questions/

I received a whole slew of errors, like 'undefined index 'Type'... in
cake/libs/model/dbo/dbo_mysql.php
also an error for 'Null', 'Default',  (each multiple times) and one
time for 'Key'. for each column in the table.

So being a decent debuger, I printed out the data in the database.

mysql> describe questions;
+-+-+--+-+-++
| Field   | Type| Null | Key | Default | Extra  |
+-+-+--+-+-++
| id  | int(11) | NO   | PRI | NULL| auto_increment |
| desc_id | int(11) | NO   | MUL | 0   ||
+-+-+--+-+-++

database: mysql 5.0.22

so as I said, I'm used to debuging, I printed out what the cake file
was seeing:

 describe `questions`

 Array
(
[0] => Array
(
[COLUMN_NAME] => Array
(
[Field] => id
)

[COLUMN_TYPE] => Array
(
[Type] => int(11)
)

[IS_NULLABLE] => Array
(
[Null] => NO
)

[COLUMN_KEY] => Array
(
[Key] => PRI
)

[COLUMN_DEFAULT] => Array
(
[Default] =>
)

[EXTRA] => Array
(
[Extra] => auto_increment
)

)

[1] => Array
(
[COLUMN_NAME] => Array
(
[Field] => desc_id
)

[COLUMN_TYPE] => Array
(
[Type] => int(11)
)

[IS_NULLABLE] => Array
(
[Null] => NO
)

[COLUMN_KEY] => Array
(
[Key] => MUL
)

[COLUMN_DEFAULT] => Array
(
[Default] => 0
)

[EXTRA] => Array
(
[Extra] =>
)

)

)

Wanting to see something real come out, I added the following lines to
dbo_mysql.php file:

in 'foreach ($cols as $column)'

in 'if (isset($column[0]))'

added lines:
180   /*
181   ** jefkin: fixing describe reading
for MySql 5.0.22
182   */
183   if ((isset($column['COLUMN_NAME']))
&& (isset($column['COLUMN_TYPE'])) &&
184   (isset($column['IS_NULLABLE']))
&& (isset($column['COLUMN_KEY']))  &&
185   (isset($column['EXTRA'])))
186   {
187 $column[0]['Extra']   =
$column['EXTRA']['Extra'];
188 $column[0]['Key'] =
$column['COLUMN_KEY']['Key'];
189 $column[0]['Type']=
$column['COLUMN_TYPE']['Type'];
190 $column[0]['Null']  =
$column['IS_NULLABLE']['Null'];
191 $column[0]['Default'] =
$column['COLUMN_DEFAULT']['Default'];
192   }

note my lines might be off from yours as I still had some debuging
stuff in the file.  But this patch seems to fix
the page lookups, but seems to be missing the name when I run bake.php
again.

So... there you have it, now I've contributed to cake...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon

Chris, thank you! I went to your blog and searched 'Mint' and found
the answer...

For future reference, the Bird Feeder plugin for Mint requires that
you add two lines of code to your feed template. BEFORE those two
lines of code, you have to instantiate the global 'Mint'. The article
I found at Chris' blog is at 
http://www.littlehart.net/atthekeyboard/2007/01/30/wordpress-21-and-mint,
and I'm going to add this info to the Mint forum thread as well.

Thanks again Chris and everyone else.

On Sep 18, 11:55 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Brad Dillon <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks for the tip McFadly, I'll be sure to check it out right away.
>
> > Just wanted to point out that Mint itself works great with cake. No
> > problems getting it set up at all. The only issue I've been having are
> > with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint
> > for stat tracking, though. It's a fantastic piece of software :)
>
> I seem to remember having the same problem getting Bird Feeder to work
> on my own WordPress blog...I will dig through my old notes and see
> what I can find.  I seem to remember doing a blog post about it, but
> the situation may have improved since then.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP, RSS, and Mint

2007-09-18 Thread Chris Hartjes

On 9/18/07, Brad Dillon <[EMAIL PROTECTED]> wrote:
>
> Thanks for the tip McFadly, I'll be sure to check it out right away.
>
> Just wanted to point out that Mint itself works great with cake. No
> problems getting it set up at all. The only issue I've been having are
> with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint
> for stat tracking, though. It's a fantastic piece of software :)

I seem to remember having the same problem getting Bird Feeder to work
on my own WordPress blog...I will dig through my old notes and see
what I can find.  I seem to remember doing a blog post about it, but
the situation may have improved since then.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---




Re: I can no longer directly access the index method?

2007-09-18 Thread [EMAIL PROTECTED]

I had the same issue when updating.  I created a copy method that
allowed me to generically call a copy method and give the item I
wanted to copy as a parameter.  After updating to the branch, I
received the same error.  My workaround was to name the method _copy
in app_controller, and then make a method in the other controllers as
copy, calling parent::copy($id).  It isn't as clean as it once was,
but it is a little safer.

On Sep 18, 9:46 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/18/07, AD7six <[EMAIL PROTECTED]> wrote:
>
> > I did some investigations (since I also find myself affected):
> >https://trac.cakephp.org/changeset/5628/branches/1.2.x.x/cake/dispatc...
>
> > This means that it is not possible to define a generic web accessible
> > method in the app controller, which leaves me with a bit of a problem,
> > since I do that all the time ;).
>
> > AD
>
> Interesting...I have not run into that as of yet.  Then again, I do
> not tend to put anything in to my app_controller other than
> before_filter() and is_authorized() when using the Auth component.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP, RSS, and Mint

2007-09-18 Thread Brad Dillon

Thanks for the tip McFadly, I'll be sure to check it out right away.

Just wanted to point out that Mint itself works great with cake. No
problems getting it set up at all. The only issue I've been having are
with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint
for stat tracking, though. It's a fantastic piece of software :)

On Sep 18, 12:04 am, McFadly <[EMAIL PROTECTED]> wrote:
> Hey Brad -
> Have you checked for php core files in your webroot dir?  The last
> time I had a blank screen, no visible errors or server log errors,
> PHP was dumping core for some reason - it was a specific version of
> PHP (5.1.3 off the top of my head) that was causing the problems...
> Just a thought.
>
> I'm curious how this turns out, because I have been thinking about
> firing upMintfor a website I'm working on.
>
> On Sep 17, 12:40 pm, Brad Dillon <[EMAIL PROTECTED]> wrote:
>
> > Howdy all,
>
> > I've been scouring the internet looking for a solution to this, but
> > I'm coming up empty. If you are familiar with theMintstat software
> > package (http://www.haveamint.com), and intimately acquainted with
> > CakePHP, you might be able to solve this puzzler.
>
> >Minthas a plugin called Bird Feeder which is a feed tracker similar
> > to Feedburner, tracking subscribers and item clicks. To install the
> > plugin, you must add two lines of code to your feed template. The
> > problem is, when this is done in CakePHP, it causes the Feed to be...
> > well... blank. No information. Not even an error. I even upped my
> > debug level and still nothing. Just an empty document.
>
> > If you think you can be of help, or need more information, please read
> > this forum 
> > entry:http://www.haveamint.com/forum/troubleshooting/629/birdfeeder_pepper_...
>
> > ... in which anothermintuser has the same problem. They explain/know
> > more about the problem than I do, but no solution is given.
>
> > My feed follows the RSS method laid out 
> > athttp://cake.insertdesignhere.com/posts/view/8
> > but I have also tried several of the methods documented in the Bakery,
> > all with the same outcome.
>
> > Please let me know if you can help. I'll be happy to give any
> > information I can. Thanks.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Unexpected behaviour in 'required' validation rule (v 1.2)

2007-09-18 Thread Farez

Hi,

I'm wondering if I'm doing something wrong here (have searched docs,
sources and archives and can't find an answer).

The 'required' rule seems to be broken as it still reports an error
even when the field is not empty. The rule I have is:

'email' => array('rule'=>'required')

I traced this to this part of the code in Model:invalidFields():

if (method_exists($this, $rule)) {
$ruleParams[] = array_diff_key($validator, $default);
$valid = call_user_func_array(array(&$this, $rule), $ruleParams);
} elseif (method_exists($Validation, $rule)) {
$valid = call_user_func_array(array(&$Validation, $rule),
$ruleParams);
} elseif (!is_array($validator['rule'])) {
$valid = preg_match($rule, $data[$fieldName]);
}

where it always lands on the preg_match(...) line in the last
condition, where it tries to preg_match() $rule which has a value of
'required', against the data field.

Anyway, I tried using a pattern instead of 'required' and it works,
like this:

'email' => array('rule'=>VALID_NOT_EMPTY)

... but I'm wondering if the 'required' rule is working in 1.2?

Cheers,
Farez


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: I can no longer directly access the index method?

2007-09-18 Thread Chris Hartjes

On 9/18/07, AD7six <[EMAIL PROTECTED]> wrote:
> I did some investigations (since I also find myself affected):
> https://trac.cakephp.org/changeset/5628/branches/1.2.x.x/cake/dispatcher.php
>
> This means that it is not possible to define a generic web accessible
> method in the app controller, which leaves me with a bit of a problem,
> since I do that all the time ;).
>
> AD

Interesting...I have not run into that as of yet.  Then again, I do
not tend to put anything in to my app_controller other than
before_filter() and is_authorized() when using the Auth component.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: I can no longer directly access the index method?

2007-09-18 Thread AD7six



On Sep 18, 4:23 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Sep 14, 12:37 am, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > "You are seeing this error because the private class method index
> > should not be accessed directly."
>
> > Apparently this is part of the latest SVN update of 1.2. Ideas?
> > Thoughts? Explanation?
>
> Thoughts: revert a couple of revisions?
> Explanation: It's a blip in the matrix?
>
> Cheers,
>
> AD

I did some investigations (since I also find myself affected):
https://trac.cakephp.org/changeset/5628/branches/1.2.x.x/cake/dispatcher.php

This means that it is not possible to define a generic web accessible
method in the app controller, which leaves me with a bit of a problem,
since I do that all the time ;).

AD


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Display data from two related tables on one page

2007-09-18 Thread Dr. Tarique Sani

On 9/18/07, Indian Baker <[EMAIL PROTECTED]> wrote:
> when I'm viewing a user's page like   localhost/blog/users/view/3/
> I see the user details, like name, username password etc etc.
> What I want is below that I should also get to see a list of all his
> postings

You need to set up an association User hasMany Post

Beyond that you need to read the manual :)

HTH and cheers

T

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: I can no longer directly access the index method?

2007-09-18 Thread Chris Hartjes

On 9/13/07, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> "You are seeing this error because the private class method index
> should not be accessed directly."
>
> Apparently this is part of the latest SVN update of 1.2. Ideas?
> Thoughts? Explanation?

Thoughts: something this broken would've been noticed as I am using
the latest revision
Explanation: did you prepend your index method with an _ or defined it
as private?

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Display data from two related tables on one page

2007-09-18 Thread Indian Baker

Hi,
This may be a very simple one, but I'm stumped.
What I need to do is Say I have the same blog example.. what I want is

when I'm viewing a user's page like   localhost/blog/users/view/3/
I see the user details, like name, username password etc etc.
What I want is below that I should also get to see a list of all his
postings

How do I get around doing that or is there a tutorial which I can
refer.

Any code snippets or pointers would be greatly appreciated
Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: I can no longer directly access the index method?

2007-09-18 Thread AD7six



On Sep 14, 12:37 am, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> "You are seeing this error because the private class method index
> should not be accessed directly."
>
> Apparently this is part of the latest SVN update of 1.2. Ideas?
> Thoughts? Explanation?

Thoughts: revert a couple of revisions?
Explanation: It's a blip in the matrix?

Cheers,

AD


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Display data from two related tables on one page

2007-09-18 Thread fr3nch13

http://manual.cakephp.org


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread Samuel DeVore

yea that's not the actual download, it's a page with links to it.

On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I just wanted to point out that the nightly build file,
> 1.2.x.x_17.09.2007.tar.gz from 
> http://cakephp.org/downloads/index/nightly/1.2.x.x
> is only 20 bytes.
>
> Thanks!
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



quoting error

2007-09-18 Thread csikosjanos

Hello,

I have a error message in cake v1.1.16 and 1.1.17:

Query: SELECT `Painting`.`year` FROM `paintings` AS `Painting` LEFT
JOIN `places` AS `Place` ON (`Painting`.`place_id` = `Place`.`id`)
LEFT JOIN `compositions` AS `Composition` ON
(`Painting`.`composition_id` = `Composition`.`id`) LEFT JOIN `formats`
AS `Format` ON (`Painting`.`format_id` = `Format`.`id`) WHERE `id` IN
'(1782,1938,3440)' ORDER BY `Painting`.`year` ASC

Warning: SQL Error: 1064: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near ''(1782,1938,3440)' ORDER BY `Painting`.`year` ASC'
at line 1 in /Users/janos/Sites/dc/cake/libs/model/datasources/
dbo_source.php
on line 463

So I think I don't need single quotes around the brackets. My code is
the follow:
$this->findAll(sizeof($paintingIDs)>0?array('id'=>'IN
('.implode(',',$paintingIDs).')'):null,'Painting.year','Painting.year
ASC');

Somebody found this problem already?

Cheers,
csikosjanos


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bake 1.2 not showing all my tables

2007-09-18 Thread [EMAIL PROTECTED]

Hi,
I've been using bake to bake all Model Views and Controllers, it has
been working fine, but strangely today, I created a couple of new
tables, and when I run Cake Bake it doesn't show me the new tables.
Even if I manually create the Models and Controllers, it still asks me
to create the table even though the table exists in my database.
What could be wrong, does CakePHP a caching issue or something.. I
even tried deleting some tables  but cake bake still shows me the list
of tables that were current till yesterday

Any help will be appreciated

Thanks in advance


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Chris Hartjes

On 9/18/07, Seb <[EMAIL PROTECTED]> wrote:
>
>
> We've ran into a few issues with using admin routing with this
> version, to a point where I asked a dev to start a new app from
> scratch, with the latest core and configuring admin.routing properly.
> The results weren't great to tell you the least. Activating the
> Admin.routing by uncommenting the Configure::write('Routing.admin',
> 'admin'); in the config/core.php just doesn't do it! fiddling around
> raised all sorts of errors which I will not list.

Hi Seb,

Well, here at CDC we're using admin routing for a current project and
I'm using the same release of CakePHP as you are (r5669), and my admin
actions are all routing properly.  I know this is a stupid question,
but are you sure it's not something else causing the problem?

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb

Hi Adam,

Good point you're raising! Though we've been updating from that branch
for as long as the project has been going (~6months now) and it't
proved pretty good! Now that's broken more than unstable. But yeah..
awesome point.. I'll give that a try in the morning!!

Cheers mate!

Seb.

On Sep 18, 5:25 pm, "Adam Royle" <[EMAIL PROTECTED]> wrote:
> Hi Seb,
>
> Seems you are looking at the latest branch, which is not necessarily stable.
>
> Try using the trunk:
>
> https://svn.cakephp.org/repo/trunk
>
> Cheers,
> Adam
>
> - Original Message -
> From: "Seb" <[EMAIL PROTECTED]>
> To: "Cake PHP" 
> Sent: Tuesday, September 18, 2007 5:18 PM
> Subject: Calling core devs for a quick brief on Admin Routing in 1.2
>
> > Hi guys,
>
> > I'd be interested to hear any of the core developers (nate, nut, gwoo
> > and co.) to tell me a little more about admin.routing in the latest
> > 1.2 (atm r5669 - though the dispatcher.php was last modified in r5628)
>
> > We've ran into a few issues with using admin routing with this
> > version, to a point where I asked a dev to start a new app from
> > scratch, with the latest core and configuring admin.routing properly.
> > The results weren't great to tell you the least. Activating the
> > Admin.routing by uncommenting the Configure::write('Routing.admin',
> > 'admin'); in the config/core.php just doesn't do it! fiddling around
> > raised all sorts of errors which I will not list.
>
> > Now I had a look at the code and the main problem I found was around
> > line 173;
>
> > // line 160-171
> > $prefixes = Router::prefixes();
> > if (!empty($prefixes)) {
> > if (isset($this->params['prefix'])) {
> > $this->params['action'] = $this->params['prefix'] . '_' . $this-
> >>params['action'];
> > } elseif (strpos($this->params['action'], '_') !== false) {
> > list($prefix, $action) = explode('_', $this->params['action']);
> > $privateAction = in_array($prefix, $prefixes);
> > }
> > }
> > $protected = array_map('strtolower',
> > get_class_methods('appcontroller'));
> > $classMethods = array_map('strtolower',
> > get_class_methods($controller));
>
> > // line 173-175
> > if (in_array(low($this->params['action']), $protected)  ||
> > strpos($this->params['action'], '_', 0) === 0) {
> > $privateAction = true;
> > }
>
> > Calling /admin/controller/index  $this->params['action'] becore
> > admin_index at line 163 which is quite right, but then the check on
> > line 173 fails because $protected contains a list of *ALL* methods in
> > the controller.\
>
> > Anyways... we're puzzled around here...
>
> > Any body could shed some light on this?
>
> > Cheers,
>
> > Seb.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: $form->input() syntax for associations not following Cake conventions

2007-09-18 Thread Chris Hartjes

On 9/18/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote:
>
> How should I change the call to $form->input() to show a select-list?
> The list with audiences is available to the view in variable
> $audiences.

Try this code using 1.2.x.x

$form->input('ade_id', array('values' => $audiences));

Hope that helps.



-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with Sessions Component

2007-09-18 Thread Chris Hartjes

On 9/17/07, Matt <[EMAIL PROTECTED]> wrote:
>
> I'm having trouble specifically with writing once to a session. As
> soon as I write once to a session every page in my cake app goes
> blank.
>
> I've spent way too much time with this session component. I don't know
> how to approach this problem anymore...

Well, I've used the session component a few times and never ran into
the problem you are describing, but I've been using Cake 1.2.x for
quite some time.  I wonder how many other people are having the same
problem in Cake 1.1?

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: log php error messages

2007-09-18 Thread Marcus T. Jaschen

Claudia wrote:
> Hi there
> 
> How can I log any notice/warning/error thrown by php?

PHP (not CakePHP) warnings and errors can be logged to syslog or to a
file, search php.ini for the 'error_log' setting.

Marcus


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI

Hey Adam,

Good One ;)

On Sep 18, 12:54 am, "Adam Royle" <[EMAIL PROTECTED]> wrote:
> The cakePHP team are very code-efficient. : )
>
> - Original Message -
> From: "DragonI" <[EMAIL PROTECTED]>
> To: "Cake PHP" 
> Sent: Tuesday, September 18, 2007 2:52 PM
> Subject: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!
>
> > Hi,
>
> > I just wanted to point out that the nightly build file,
> > 1.2.x.x_17.09.2007.tar.gz from
> >http://cakephp.org/downloads/index/nightly/1.2.x.x
> > is only 20 bytes.
>
> > Thanks!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: log php error messages

2007-09-18 Thread AD7six



On Sep 18, 12:56 pm, Claudia <[EMAIL PROTECTED]> wrote:
> Hi there
>
> How can I log any notice/warning/error thrown by php?

Did you look at /app/tmp/logs/errors.log ?

One would hope that you don't have any php errors when a site goes
live.

hth,

AD


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



log php error messages

2007-09-18 Thread Claudia

Hi there

How can I log any notice/warning/error thrown by php?

I know how to log cakeerrors like missing_controller
(I adapted http://www.ad7six.com/MiBlog/EmailMeErrors)
but this does not log any php errors.

What I want to achieve at the end is that the user does not see any
errors
(which is why I have set the debug level to 0) but all error messages
are logged in a logfile.

I use cake 1.2

Thanks for any tips

Claudia


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Custom SQL Query for BelongsTo Assitiation

2007-09-18 Thread [EMAIL PROTECTED]

Hello,

I have the following model:

class Organiserobject extends AppModel {

var $name = 'Object';

var $belongsTo = array(
'ReferenceObject' => array('className' => 
'ReferenceObject',
'foreignKey' => 
'reference_id',
'conditions' => 
'',
'fields' => '',
'order' => '',
'counterCache' 
=> '')
);

}

How can insert a custom sql command witch solves the problem that the
foreignKey can point on different tables, depending on the value of
the field "type" of the table organiserobjects. The field type can
contain the classname of the model of such a table. The Other thing
is, that the field whitch will be joined has to be concartenated in
the query from some fields of these tables.

In other cases this wouldn't be a problem for me, but I'm new to
Cakephp and have no idea how to insert my query here ...

Thanks in Advance
Oliver


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



$form->input() syntax for associations not following Cake conventions

2007-09-18 Thread Martin Schapendonk

Hi,

Using latest cake alpha (r5427).

I have an association between two models that doesn't follow Cake
conventions ("Activity belongsTo Audience" and its counterpart
"Audience hasMany Activity").

Cake's convention demands that the association is on
Activity.audience_id. In my case, it isn't, it's on Activity.ade_id.

I got my models/controllers set up to handle this. My view shows:

echo $form->input('ade_id');

FormHelper shows me a plain text box, but I expected a nice
select-list with all available audiences.

How should I change the call to $form->input() to show a select-list?
The list with audiences is available to the view in variable
$audiences.

Regards,

Martin

-- 
  Martin Schapendonk, [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: disable POST from another site

2007-09-18 Thread Sergei

Yes, I forgot about it.

On 18 сент, 12:48, McFadly <[EMAIL PROTECTED]> wrote:
> Sergi -
> check out the Request Handler :


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Adam Royle

Hi Seb,

Seems you are looking at the latest branch, which is not necessarily stable.

Try using the trunk:

https://svn.cakephp.org/repo/trunk

Cheers,
Adam
- Original Message - 
From: "Seb" <[EMAIL PROTECTED]>
To: "Cake PHP" 
Sent: Tuesday, September 18, 2007 5:18 PM
Subject: Calling core devs for a quick brief on Admin Routing in 1.2


>
> Hi guys,
>
> I'd be interested to hear any of the core developers (nate, nut, gwoo
> and co.) to tell me a little more about admin.routing in the latest
> 1.2 (atm r5669 - though the dispatcher.php was last modified in r5628)
>
> We've ran into a few issues with using admin routing with this
> version, to a point where I asked a dev to start a new app from
> scratch, with the latest core and configuring admin.routing properly.
> The results weren't great to tell you the least. Activating the
> Admin.routing by uncommenting the Configure::write('Routing.admin',
> 'admin'); in the config/core.php just doesn't do it! fiddling around
> raised all sorts of errors which I will not list.
>
> Now I had a look at the code and the main problem I found was around
> line 173;
>
> // line 160-171
> $prefixes = Router::prefixes();
> if (!empty($prefixes)) {
> if (isset($this->params['prefix'])) {
> $this->params['action'] = $this->params['prefix'] . '_' . $this-
>>params['action'];
> } elseif (strpos($this->params['action'], '_') !== false) {
> list($prefix, $action) = explode('_', $this->params['action']);
> $privateAction = in_array($prefix, $prefixes);
> }
> }
> $protected = array_map('strtolower',
> get_class_methods('appcontroller'));
> $classMethods = array_map('strtolower',
> get_class_methods($controller));
>
> // line 173-175
> if (in_array(low($this->params['action']), $protected)  ||
> strpos($this->params['action'], '_', 0) === 0) {
> $privateAction = true;
> }
>
>
> Calling /admin/controller/index  $this->params['action'] becore
> admin_index at line 163 which is quite right, but then the check on
> line 173 fails because $protected contains a list of *ALL* methods in
> the controller.\
>
> Anyways... we're puzzled around here...
>
> Any body could shed some light on this?
>
> Cheers,
>
> Seb.
>
>
> >
>
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb

Mmmm... my dyslexia's getting quite bad ain't it... let me try again

When calling /admin/controller/index  variable $this-
>params['action'] becomes
admin_index at line 163 which is quite right, but then the check on
line 173 fails because $protected contains a list of *ALL* methods in
the appcontroller, which includes admin_index.

The results is that protected_action error... saying I can't access
admin_index directly...

Cheers for the inputs!

Seb.

On Sep 18, 5:18 pm, Seb <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'd be interested to hear any of the core developers (nate, nut, gwoo
> and co.) to tell me a little more about admin.routing in the latest
> 1.2 (atm r5669 - though the dispatcher.php was last modified in r5628)
>
> We've ran into a few issues with using admin routing with this
> version, to a point where I asked a dev to start a new app from
> scratch, with the latest core and configuring admin.routing properly.
> The results weren't great to tell you the least. Activating the
> Admin.routing by uncommenting the Configure::write('Routing.admin',
> 'admin'); in the config/core.php just doesn't do it! fiddling around
> raised all sorts of errors which I will not list.
>
> Now I had a look at the code and the main problem I found was around
> line 173;
>
> // line 160-171
> $prefixes = Router::prefixes();
> if (!empty($prefixes)) {
> if (isset($this->params['prefix'])) {
> $this->params['action'] = $this->params['prefix'] . '_' . 
> $this->params['action'];
>
> } elseif (strpos($this->params['action'], '_') !== false) {
> list($prefix, $action) = explode('_', 
> $this->params['action']);
> $privateAction = in_array($prefix, $prefixes);
> }}
>
> $protected = array_map('strtolower',
> get_class_methods('appcontroller'));
> $classMethods = array_map('strtolower',
> get_class_methods($controller));
>
> // line 173-175
> if (in_array(low($this->params['action']), $protected)  ||
> strpos($this->params['action'], '_', 0) === 0) {
> $privateAction = true;
>
> }
>
> Calling /admin/controller/index  $this->params['action'] becore
> admin_index at line 163 which is quite right, but then the check on
> line 173 fails because $protected contains a list of *ALL* methods in
> the controller.\
>
> Anyways... we're puzzled around here...
>
> Any body could shed some light on this?
>
> Cheers,
>
> Seb.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Calling core devs for a quick brief on Admin Routing in 1.2

2007-09-18 Thread Seb

Hi guys,

I'd be interested to hear any of the core developers (nate, nut, gwoo
and co.) to tell me a little more about admin.routing in the latest
1.2 (atm r5669 - though the dispatcher.php was last modified in r5628)

We've ran into a few issues with using admin routing with this
version, to a point where I asked a dev to start a new app from
scratch, with the latest core and configuring admin.routing properly.
The results weren't great to tell you the least. Activating the
Admin.routing by uncommenting the Configure::write('Routing.admin',
'admin'); in the config/core.php just doesn't do it! fiddling around
raised all sorts of errors which I will not list.

Now I had a look at the code and the main problem I found was around
line 173;

// line 160-171
$prefixes = Router::prefixes();
if (!empty($prefixes)) {
if (isset($this->params['prefix'])) {
$this->params['action'] = $this->params['prefix'] . '_' . $this-
>params['action'];
} elseif (strpos($this->params['action'], '_') !== false) {
list($prefix, $action) = explode('_', $this->params['action']);
$privateAction = in_array($prefix, $prefixes);
}
}
$protected = array_map('strtolower',
get_class_methods('appcontroller'));
$classMethods = array_map('strtolower',
get_class_methods($controller));

// line 173-175
if (in_array(low($this->params['action']), $protected)  ||
strpos($this->params['action'], '_', 0) === 0) {
$privateAction = true;
}


Calling /admin/controller/index  $this->params['action'] becore
admin_index at line 163 which is quite right, but then the check on
line 173 fails because $protected contains a list of *ALL* methods in
the controller.\

Anyways... we're puzzled around here...

Any body could shed some light on this?

Cheers,

Seb.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---