Re: overwrite save function of model

2006-07-16 Thread Grant Cox

What is the problem with having an 'id' field on that table?  I have a
similar setup in a test application, and my join model has it's own id,
a model1_id and model2_id.

With the appropriate associations set up (Model1 hasMany JoinObj,
JoinObj belongsTo Model1,Model2, Model2 hasMany JoinObj), this works
fine for 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
-~--~~~~--~~--~--~---



overwrite save function of model

2006-07-16 Thread bingo

Hi,

I have a situation where I do not have id field for a table. This is
because it is a association table with many other fields and default
HABTM do not allow access to these extra fields. So I created a model
for that and using hasMany associations.

Now, when I try to save data for the association table, I get
last_insert_id error. Hence I am thinking to overwrite save function.
Related to this, I have two questions.

1. Is this the best solution or there is some way to avoid
last_insert_id error

2. How to save data. I mean, do I need to build sql command and save as
it is done in traidtional php way or CakePHP has some functionality to
do that. It will be great, If someone can provide an example of it.
Here is what I was trying within my model

function save( $data = null, $validate = true, $fieldList = array())
{
if(empty($data))
$this->flash('Invalid Information Provided');
//after this I am not sure what to do
}

Regards,
Ritesh


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cakePHP and "Train Wrecks"

2006-07-16 Thread nate

You have to look at it in context.  The article is providing a general
rule of thumb for good object-oriented development, as evidenced by the
very general code snippet representing a dog and it's tail.

> This is known as a "Train Wreck". It said that this was bad because this one
> line depends on the interfaces and implied structure of three different
> objects.

Not to get technical, but the 'badness' has more to do with the fact
that the calling object is explicitly associating itself with an object
(tail) that it does not need to know about.

The point is that instead of the calling object being aware of the
dog's tail object, the caller simply tells the dog to be happy, and the
dog automatically knows what to do with it's own tail (as in the
example dog.expressHappiness()).  This, of course, represents
encapsulation.

When dealing with models in a controller, however, it gets a little bit
different.  Let's take the example of the Post model, (with
corresponding controller) which hasMany Comment.  The reason why it's
more acceptable to access $this->Post->Comment in the controller is
because while it could still be argued that Post encapsulates Comment,
it would be more accurate to say that this syntax is a reflection of
the actual relationship between the two objects (hasMany/belongsTo).

You also have to consider this within the context of the MVC
architecture, where the controller tier represents the "glue" code; the
rubber-meets-road business logic of the application.  If it can't be
abstracted, extracted or refactored, chances are it belongs in the
controller.  That being the case, it's a little bit more acceptable for
a controller to access things that aren't right in front of it's face.

Also, since PostsController is the object that effectively wraps access
to the Post model to the outside world, it's probably okay that it is
aware of the relationship of Post to other models, particularly
considering that it might well have to manipulate Comment data which is
fetched as part of a call to Post.

Since Cake already abstracts most of the busy-work out of your
application, you are free to choose the encapsulation method that fits
your situation (or fancy) the best, since they're all pretty much
equally inconsequential in terms of effort required.  In this
situation, you could:

(a) Access Comment directly, as in $this->Post->Comment->findAll
(b) Create an accessor method within Post, as in
$this->Post->getComments
(c) Use requestAction to make a call to CommentsController
(d) Use $uses to make Comment directly available, although this is
probably the least MVC-like

Hope that helps.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Is del() recursive?

2006-07-16 Thread nate

Only if the 'dependent' association key is set to true, i.e.:

class Post extends AppModel {

   var $hasMany = array(
   'Comment' => array('dependent' => true)
);
}


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Is del() recursive?

2006-07-16 Thread ShepherdWeb

Is $this->Model->del($id); supposed to be recursive to hasMany
relationships?  I seem to be getting inconsistent results.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error installing CakePHP

2006-07-16 Thread Grant Cox

I just noticed you are on Windows XP.  I recommend using ZipGenius, as
it is free, works with almost all archive types, and integrates well
into the Explorer context menu.  And unlike TUGZip, it does preserve
empty folders when extracting.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Error installing CakePHP

2006-07-16 Thread Grant Cox

This is because you are using a utility that does not keep empty
folders when extracting the cake archive.

Use another un-archiving tool that keeps the empty folders, and you
won't have any of these warnings.


philip wrote:
> Hi,
>
> I tell you what happened. After I went to the cake URL as you said, I
> got lots of warnings at the top of the screen. To get rid of the
> warnings I had to manually create a folder in cake/app/ called models.
> After createing models folder the CakePHP home page didn't give any
> warnings, just said database file not configured.
> But I keep getting warnings for different things.  Mostly only when I
> bake, when I get the warnings I find I have to create directories
> myself manually then I go through the bake process again and it works.
>
> So the problem is with the bake.php now. Is it unable to create
> directories? Is this due to some file/folder permission problem?
>
> Thanks, Philip
>
>
> ryanb006 wrote:
> > After the Blog Tutorial, follow it by example in building your own
> > application.  For reference to all Cake functions, visit the API at
> > [1].  Also, you can check out the screencasts at [2].
> >
> > Good luck with Cake! I haven't gone back to my old ways since I found
> > it.
> >
> > --
> > [1] http://api.cakephp.org/
> > [2] http://cakephp.org/screencasts
> > --
> > 
> > Ryan


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Bootstrap.php

2006-07-16 Thread Langdon Stevenson

Thank you RosSoft, much appreciated

RosSoft wrote:
> this file is included at the begin of every request. there you can
> include other vendor global files, or declare your custom define's for
> some configure options
> 
> 
> > 

-- 
Linden Row Pty Ltd

NSW  : +61 2 8215 0570
Victoria : +61 3 9013 9423
Fax  : +61 2 8215 0571

Mobile   : +61 416 118 037

http://www.lindenrow.com.au

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cakePHP and "Train Wrecks"

2006-07-16 Thread Gustavo Carreno

On 7/17/06, Sonic Baker <[EMAIL PROTECTED]> wrote:
> Any comments will be greatly appreciated.

You can access directly any of the models in the associations you've set.
The QUOTE Train Wreck UNQUOTE scenario is just a means of readability.
If you have Users hasMany Posts you can call $this->Post or
$this->User->Post in the Users controller.
The first is short but can be confusing since not everybody remembers
the associations and the second, while a bit more lenghty, is quite
more readable.

Just my 2c,
Gustavo Carreno
---
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



cakePHP and "Train Wrecks"

2006-07-16 Thread Sonic Baker



	

	
	
	
	
	

Hi there,

I've was reading an article
(www.jmock.org/oopsla2004.pdf)
the other day and came across an section in which there
was a warning about code which goes along the lines of the following:

dog.getBody().getTail().wag();

This is known as a "Train Wreck".
It said that this was bad because this one line depends on the
interfaces and implied structure of three different objects.

I was wondering if this was the same as
calling a Model in cakePHP through a series of it's associations,
e.g. $this->Dog->Body->Tail->wag();

I know I could just put 'Tail' in the
$uses[] array of the controller but my understanding of the $uses
array is that it's purpose is for calling methods from unrelated
models. Am I misunderstanding the Train Wreck scenario or does it not
apply in the case of cakePHP since the models above are related via
associations?

Any comments will be greatly
appreciated.

Cheers,

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  -~--~~~~--~~--~--~---


Lighttpd rewrite config for Cake

2006-07-16 Thread Darian Anthony Patrick

Hey Chris,

I'm unfamiliar with rewriting in lighty. Can you post your rewrite config?

Thanks!

--
Darian Anthony Patrick <[EMAIL PROTECTED]>
-Original Message-
From: Chris Lamb <[EMAIL PROTECTED]>
Date: Sunday, Jul 16, 2006 4:35 pm
Subject: Re: Using cake to serve files

Don't forget that using PHP to serve up lots of files is very slow.. if
you're using Lighttpd, check out:

http://blog.lighttpd.net/articles/2006/07/02/x-sendfile

Lamby


On Sat, 15 Jul 2006 01:41:20 -0700
"georgeL" <[EMAIL PROTECTED]> wrote:

> 
> Other file serving php scripts do this by putting the files somewhere
> else on your system outside of the webroot.
> 
> 
> > 


-- 
 Chris Lamb, Cambridgeshire, UK  [EMAIL PROTECTED]
  WWW: www.chris-lamb.co.uk GPG: 0x634F9A20



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread John Zimmerman [gmail]
http://irc.cakephp.org/irc.htmlIf you have a java plugin installed for your web browser you can just go to the link above and login to the irc channel via  the java applet.
On 7/16/06, invincible <[EMAIL PROTECTED]> wrote:
Thanks man.I've found that GenerateFieldNames() is only used in scaffold andbake.php.The only real bugger seems to be cleanUpFields().K i'll have to install a ircclient on debian here then.
And it is weekend of course (just came back from diner myself).Thanks again.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Bug: using multiple models in controller

2006-07-16 Thread invincible

Thanks man.

I've found that GenerateFieldNames() is only used in scaffold and
bake.php.

The only real bugger seems to be cleanUpFields().

K i'll have to install a ircclient on debian here then.
And it is weekend of course (just came back from diner myself).

Thanks again.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problems with OthAuth - unintended recursion in model?

2006-07-16 Thread AD7six


M wrote:
> But back to the point - to check on othAuth's storage of login info,  I

This may well be a question for the author then.

> Still, this brings me back to my original issue - when I go to a page
> that requires a login, i get redirected to login page, but when I
> login, I do not get sent back to original page. Session and URL do have
> the proper url to redirect back to, but redirection is just not
> happening.
What does the redirecting? if it is a flash message, the redirect only
happens automatically for debug =0 (by default it is 1). Otherwise you
need to click the message. If it's something else someone using othAuth
will undoubtedly reply some time soon.

> Is there a nice way to debug PHP code line by line without doing a
> million print_r statements?
There's a (PEAR?) debug tool that you can build into PHP Eclipse, but
I've never managed it (did you dev VB perchance ;) ?)

HTH,

AD7six


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Using cake to serve files

2006-07-16 Thread Chris Lamb

Don't forget that using PHP to serve up lots of files is very slow.. if
you're using Lighttpd, check out:

http://blog.lighttpd.net/articles/2006/07/02/x-sendfile

Lamby


On Sat, 15 Jul 2006 01:41:20 -0700
"georgeL" <[EMAIL PROTECTED]> wrote:

> 
> Other file serving php scripts do this by putting the files somewhere
> else on your system outside of the webroot.
> 
> 
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 


-- 
 Chris Lamb, Cambridgeshire, UK  [EMAIL PROTECTED]
  WWW: www.chris-lamb.co.uk GPG: 0x634F9A20


signature.asc
Description: PGP signature


Re: Turn off Cake processing for a file via view

2006-07-16 Thread AD7six


I. E. Smith-Heisters wrote:
> Hi,
>
> is there a way that a view can just dump a file without Cake doing any
> processing. Right now, I sort of have it working by doing something
> like this:
No matter what the content:
http://groups.google.com/group/cake-php/browse_frm/thread/e287370780c4106f/#

> Is there anyway to just tell Cake to turn serving the file over to
> Apache?

Redirect to the actual file url, if the file exists, cake won't do
anything with it.

HTH,

AD7six


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Turn off Cake processing for a file via view

2006-07-16 Thread John Zimmerman [gmail]
You can put the file in the /app/webroot directory and then just reference the file's url directly.For example when I am developing I usually keep a phpinfo.php file that just executes the phpinfo() command in the webroot.
When I want to link to it I just use http://example.com/app/webroot/phpinfo.php  The file is not processed by Cake and comes up fine.
On 7/16/06, I. E. Smith-Heisters <[EMAIL PROTECTED]> wrote:
Hi,is there a way that a view can just dump a file without Cake doing anyprocessing. Right now, I sort of have it working by doing somethinglike this:if($resource['Resource']['type'] === 'include') {
echo $this->render("files/{$location}");$this->autoLayout = false;} elseif ($resource['Resource']['type'] === 'dl') {$file ="{$_SERVER['DOCUMENT_ROOT']}/app/views/resources/files/{$location}";
$mimeType = mime_content_type($file);$fp = fopen($file, "rb") or die ('File not found');if (isset($mimeType) && strlen($mimeType) > 0)header("Content-Type: $mimeType");
header("Content-Disposition: attachment; filename=" .basename($file));header("Content-Length: " . filesize($file));while (!feof($fp)) {
print fread($fp, 4096);}fclose($fp);}?>But the downloaded file is just the CakePHP page with the file contentsincluded within! And furthermore, this seems to be a kludgey and
unportable solution, even if I could get it working.Is there anyway to just tell Cake to turn serving the file over toApache?TIA. And sorry if this question has already been asked; I don't think I
found the right search terms.-Ian
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Problems with OthAuth - unintended recursion in model?

2006-07-16 Thread M

Actually, I was not looking at that, I assumed somewhere there was
something that was breaking recursion since I do get a page returned.
Debug output is not exactly most readable as it is not seem to be of
much use unless you  know exactly what you are looking for. :-/ (Which
I guess is the point.)

But back to the point - to check on othAuth's storage of login info,  I
added a simple  statement to the
end of my login view , so when I login, I see the following in the
view:

ok, I am not going to paste actual output here, just checked but the
output of that is over 1300 lines long (mind you,all but few of those
lines are othAuth's array) but here is a strip down version of  what is
see is

othAuth_mYpERsOnALhaSHkeY
-> USER
-> GROUP
---> USER(list of all users in GROUP)
->0
--->Group
-> Permission (list of all permissions for Group above
--->0
-> Group (list of all groups that have the above
permission)

and so on

Now, it may be that _SESSION variable contains pointers to objects
rather than data and it is the print_r that generates the recursive
output actually that is probably exactly what is happening boy,
do I feel dumb (aside, I hope when cake/PHP stores session data in
database, it will not have a similar issue)...

Still, this brings me back to my original issue - when I go to a page
that requires a login, i get redirected to login page, but when I
login, I do not get sent back to original page. Session and URL do have
the proper url to redirect back to, but redirection is just not
happening.

Is there a nice way to debug PHP code line by line without doing a
million print_r statements?

Again, sorry for the newbe questions, but I've never written much PHP
and I'm trully new to Cake.

Thanks

-M

AD7six wrote:
> Hi M,
>
> I don't use OthAuth, but if you are referring to the text "* Recursion
> *" that appears in the model debug output, this isn't something to
> worry about.
>
> If Model a is defined to linked to model b, and model bi is defined to
> be linked to model a (as it should be), following all links would mean
> that you would enter a never ending loop. The text *Recursion* appears
> in place of this endless loop ;)
> 
> Cheers,
> 
> AD7six


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Turn off Cake processing for a file via view

2006-07-16 Thread I. E. Smith-Heisters

Hi,

is there a way that a view can just dump a file without Cake doing any
processing. Right now, I sort of have it working by doing something
like this:

render("files/{$location}");
$this->autoLayout = false;
} elseif ($resource['Resource']['type'] === 'dl') {
$file =
"{$_SERVER['DOCUMENT_ROOT']}/app/views/resources/files/{$location}";
$mimeType = mime_content_type($file);
$fp = fopen($file, "rb") or die ('File not found');
if (isset($mimeType) && strlen($mimeType) > 0)
header("Content-Type: $mimeType");
header("Content-Disposition: attachment; filename=" .
basename($file));
header("Content-Length: " . filesize($file));
while (!feof($fp)) {
print fread($fp, 4096);
}
fclose($fp);
}
?>

But the downloaded file is just the CakePHP page with the file contents
included within! And furthermore, this seems to be a kludgey and
unportable solution, even if I could get it working.

Is there anyway to just tell Cake to turn serving the file over to
Apache?

TIA. And sorry if this question has already been asked; I don't think I
found the right search terms.

-Ian


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problems with OthAuth - unintended recursion in model?

2006-07-16 Thread AD7six

Hi M,

I don't use OthAuth, but if you are referring to the text "* Recursion
*" that appears in the model debug output, this isn't something to
worry about.

If Model a is defined to linked to model b, and model bi is defined to
be linked to model a (as it should be), following all links would mean
that you would enter a never ending loop. The text *Recursion* appears
in place of this endless loop ;)

Cheers,

AD7six


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problems with OthAuth - unintended recursion in model?

2006-07-16 Thread M

Ok, to start with I am very new to CakePHP so forgive me if I am
missing something obvious.

I am trying to implement OthAuth and running into trouble. Would be
nice to have a skeleton working cake/othAuth app to start with, but
since there is none I followed othAuth docs (and what I found on
various othauth support threads) to create a Users controller with
scaffold and 'login' and 'logout' actions, 'user'/'group'/'permission'
models and login view. it ALMOST works, but when I log in I do not get
redirected back to original page. So while  investigating this I
printed out the $_SESSION and discovered something a bit disturbing -
it appears that there is some unintended recursion happening, so in the
session you get the desired user, which contains group which contains
permissions (up to now, all is good but...)...  and permissions have
groups and groups have users and users gave groups... etc etc etc..
Essentialy I have my entire user/group/permissions database copied many
times over and stored in the session. I am certain this is not how it
is supposed to be.  I defined user/group/permission models by cut and
paste from the othAuth docs and at this point I just want to create
that skeleton app I mentioned above.

Any thoughts?

Thanks,

-M


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Web Developer Training

2006-07-16 Thread Daniel Hofstetter

Good idea. I think there can't be too much material to get people
started using CakePHP. So go for it, and good luck :)

-- 
Daniel Hofstetter
http://cakebaker.wordpress.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
-~--~~~~--~~--~--~---



Web Developer Training

2006-07-16 Thread bobj

I am currently working on putting together a project plan (for my grad
project) to create training on how to use web 2.0 frameworks
(specifically CakePHP). Does anyone think there is a need for such
training? The training would include video and consist of interactive
modules. The training would be hosted on the net.
I got the idea from something I heard in a  podcast and thought it
might make a good grad school project (I will be getting my masters in
"Instructional Technology").
Any feedback would gladly be appreciated.
Thanks
Rob


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread John Zimmerman [gmail]
You might want to jump on the IRC channel and see if you can chat PHPNut up quick.If not then I would probably open a ticket and if nothing else they will explain a reason for it to work the way it does.
On 7/16/06, invincible <[EMAIL PROTECTED]> wrote:
I've just again looked into cake/libs/controller/controller.phpController::$modelClass (not modelName) is used in GenerateFieldNames()and cleanUpFields().Tough Controller::ConstructClasses populates the array
Controller::$modelNames[](from Controller::$uses).the 'bug' seems to be concentrated here.Can i ticket this or is it the way it is supposed to work?anyone?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  -~--~~~~--~~--~--~---


Re: Bootstrap.php

2006-07-16 Thread RosSoft

this file is included at the begin of every request. there you can
include other vendor global files, or declare your custom define's for
some configure options


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Bootstrap.php

2006-07-16 Thread Langdon Stevenson

I am trying to understand what the intended use is for bootstrap.php

I have searched the various Cake resource sites and documentation and 
have only been able to find the briefest explanation.

Would anyone be able to elaborate?  It would be greatly appreciated, and 
perhaps could form the basis of some more detail for the documentation?

If a simple example could be included that would help a lot.

Any assistance would be greatly appreciated.

Regards,
Langdon



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.6.3264 Released

2006-07-16 Thread Gustavo Carreno

On 7/16/06, Shunro Dozono <[EMAIL PROTECTED]> wrote:
> If you need a translator for Japanese, I'm glad to help!
> At the moment, there are only a few information about CakePHP in Japanese,
> so I'm trying to produce some.
> In Japan, there are many engineers who speak Japanese only, so it is
> important to have a Japanese resource to spread the framework.
> So far, symfony is superior in regards to marketing in Japan.

Hey Shunro,

Translation efforts are going to begin as soon as the english version
of the manual is done.
If you want to help goto http://cakeforge.org/projects/translations
and request to be add to the project.

Thanks!,
Gustavo Carreno
---
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread invincible

I've just again looked into cake/libs/controller/controller.php

Controller::$modelClass (not modelName) is used in GenerateFieldNames()
and cleanUpFields().

Tough Controller::ConstructClasses populates the array
Controller::$modelNames[]
(from Controller::$uses).

the 'bug' seems to be concentrated here.

Can i ticket this or is it the way it is supposed to work?
anyone?
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
-~--~~~~--~~--~--~---



Session Problem on save data?

2006-07-16 Thread Gallax

I created a base project with Scaffold function and it's all right.
Great!
My platform is
Win Xp
Apache/1.3.24
PHP Version 4.3.3
cakePHP 1.1.6.3264

I updated my system to
Apache/2.0.58 (Win32)
PHP Version 5.2.0-dev
I maintened the configuration more similar as possible
but my project does not work more!!!
In particular, an error occurred when i tried to create a new row or
edit a row and appears this messagge: "Please correct errors below."

The cause seems to be in the file scaffold.php line 260
if (is_object($this->controllerClass->Session)) {
$this->controllerClass->Session->setFlash('Please correct errors
below.');

How can i resove this problem?
Thanks all!
Simone


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Simple HABTM find results in SQL Error; Where's the problem?

2006-07-16 Thread [EMAIL PROTECTED]

3.26 something. I was checking requirements and it looks like this is
version of MySQL isn't supported. I'm on Media Temple by the way.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP 1.1.6.3264 Released

2006-07-16 Thread Shunro Dozono
Hello,2006/7/15, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]>:
In other news, some new articles were published on Sitepoint [3] and in the International PHP magazine [4]. Fabio Cevasco [5] is the man behind these articles. Together with Fabio, we will be writing a book that will be published by Peachpit press sometime around December 2006.
If you need a translator for Japanese, I'm glad to help!At the moment, there are only a few information about CakePHP in Japanese, so I'm trying to produce some.In Japan, there are many engineers who speak Japanese only, so it is important to have a Japanese resource to spread the framework.
So far, symfony is superior in regards to marketing in Japan.S.Dozonohttp://cakephp.seesaa.net[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  -~--~~~~--~~--~--~---


Re: missing Ajax parameters

2006-07-16 Thread Daniel Hofstetter

Please open an "Enhancement" ticket on https://trac.cakephp.org with
some details.

Thanks.

-- 
Daniel Hofstetter
http://cakebaker.wordpress.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
-~--~~~~--~~--~--~---



Re: Simple HABTM find results in SQL Error; Where's the problem?

2006-07-16 Thread gwoo

What version of mysql?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---