Using data from another model, referenced by a foreign key.

2006-12-21 Thread FrenchEscapes


I have worked out how to populate drop down menus from an associated
model, thanks to help from other posts (much appreciated).

But I can't figure out how to use the foreign key to show a different
value from the other table, ex. I have an Events table which hasOne
Type, the 'id' of the Type is stored in the Events table, but when
viewing an Events record I want it to show the 'name' from the Type
table instead of the 'id'.


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



pretty-url mayhem

2006-12-21 Thread guigouz


Hello, I was using cake php with mod_rewrite and everything was fine.
Unfortunately, my client's host does not have mod_rewrite enabled, so I
configured cake's pretty urls uncommenting

define ('BASE_URL', env('SCRIPT_NAME'));

then the problems started, first my links were all wrong, I tried to
find some cake cache, but had no luck. I moved the application
directory to another name then they were fine, now my css and js files
have weird urls, like

(added with $html->css())
or 

Re: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread ShepherdWeb


I found the answer in the PHP 5 ChangeLog:
http://www.php.net/ChangeLog-5.php

Bug 31288 was fixed in version 5.0.4


--~--~-~--~~~---~--~~
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: Updating a date field after form submission

2006-12-21 Thread Mariano Iglesias


You just add them to the array of data you send to $model->save. Say instead
of:

$this->Post->save($this->data);

You can do something like:

$data = $this->data;

$data['Post']['some_field'] = 'some_value';

$this->Post->save($data);

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 06:41 p.m.
Para: Cake PHP
Asunto: Re: Updating a date field after form submission


That I did not know...I'll change the names of my fields. I guess it
would still be useful to know how to update fields that aren't in a
form along with the form anyway though.


--~--~-~--~~~---~--~~
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: Including a cakephp action result in another site

2006-12-21 Thread M


Hello,

I checked with my provider and php has the curl extension.

Now this is what I made:

I  wrote a PHP file on site B that connects to the db, retrieves the
announcements inserted today, outputs data in a HTML format, close the
db connection.

Then in site A i did put the code for opening a curl connection
(example taken from php.net) and all works.

Now I have some other questions:

- Where should i place in the cake directory structure this php script
? Now it is in webroot dir.
- Anyone has a suggestion for a "easy to plug" marquee replacement? I
need to scroll this  announcements on site A in a box
- Are there any suggestion about security?

Thank you very much

Michele


--~--~-~--~~~---~--~~
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: Updating a date field after form submission

2006-12-21 Thread [EMAIL PROTECTED]


That I did not know...I'll change the names of my fields. I guess it
would still be useful to know how to update fields that aren't in a
form along with the form anyway though.

On Dec 21, 4:06 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:

Did you know that if you have a field called created (DATETIME) on that
table CakePHP will automatically populate its value? The same applies for a
field called modified (DATETIME).

-MI

---

Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.

BAKE ON!

-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 05:55 p.m.
Para: Cake PHP
Asunto: Updating a date field after form submission

I have a form that ties into a table, and in that table is a field
date_created...so when someone submits that form i need to add a
date_created=now() to the sql.



--~--~-~--~~~---~--~~
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: Updating a date field after form submission

2006-12-21 Thread Mariano Iglesias


Did you know that if you have a field called created (DATETIME) on that
table CakePHP will automatically populate its value? The same applies for a
field called modified (DATETIME).

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 05:55 p.m.
Para: Cake PHP
Asunto: Updating a date field after form submission

I have a form that ties into a table, and in that table is a field
date_created...so when someone submits that form i need to add a
date_created=now() to the sql.


--~--~-~--~~~---~--~~
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: does cake not join tables when using hasMany?

2006-12-21 Thread Mariano Iglesias


Take a look at this piece of code:

http://bakery.cakephp.org/articles/view/185

It can help you reduce the number of generated queries.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 04:44 p.m.
Para: Cake PHP
Asunto: Re: does cake not join tables when using hasMany?


ah, thanks for the reply.  using the fake hasOne relationship worked.
but, the page still performs a *ton* of sql queries.  is ther any way
of limiting this?


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



Updating a date field after form submission

2006-12-21 Thread [EMAIL PROTECTED]


I have a form that ties into a table, and in that table is a field
date_created...so when someone submits that form i need to add a
date_created=now() to the sql.

How do I accomplish this? I'm sure its something very easy, but I can't
seem to find it in the manual.


--~--~-~--~~~---~--~~
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 not running on shared server

2006-12-21 Thread keymaster


Thanks for all your replies.

I did the following. I installed the identical files on another site,
this time with a regular domain name.

eg. www.mydomain.com (as opposed to the site in my post above which was
accessed through the ip)

I got the same error - but, I looked at the server error logs and found
the problem:

in app/webroot there is a .htaccess file which contained the lines
(from the BakeSale project on cakeforge):

php_flag zlib.output_compression On
php_value zlib.output_compression_level 1

These lines were producing the error:

"[alert] [client 99.99.999.999]
/home/myaccount/public_html/app/webroot/.htaccess: Invalid command
'php_flag', perhaps mis-spelled or defined by a module not included in
the server configuration"

So, I commented them out as follows:

#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 1

That did it, cake came up smiling, using nothing but mod_rewrite.

I should note, that although I have no problems anymore on a site with
a regular domain name, there are still problems on the other site
accessed through IP.  I suspect there is still an issue there with
cake...

Thanks for your help.


--~--~-~--~~~---~--~~
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: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread anselm




Thanks for the info.  I'm concerned because I'm getting ready to launch
a site which is running php v 5.0.4.  However, I don't have access to
the server yet.  Does anyone know if this bug was fixed in version
5.0.4?


As I understand it, it was fixed in 5.2.0, sorry. But it's probably a
combination of factors - if I'm the first to mention it here, it sounds
like this problem is the exeption rather than the rule, so chances are
it'll work fine.

Good luck !

Anselm


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



Problems with Auto-Complete in an Ajax Form

2006-12-21 Thread Chowsapal


So I've got an ajax form with an ajax auto-complete field in it, using
the auto-complete component.  It works find if I replace the Ajax
submit with a regular submit, or if I use the Ajax form and disable the
Autocomplete component (but then, of course, the autocomplete doesn't
work).  Unfortunately, the autocomplete component seems to be grabbing
any ajax request, and when I submit the ajax form, instead of calling
the action I'm looking for, it returns the autocomplete list in my
content div instead.

Is it possible to use an autocomplete field with an ajax form?

Thanks a lot,
chowsapal


--~--~-~--~~~---~--~~
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: othAuth Issue

2006-12-21 Thread devon


Thanks uic, I'll give that a shot this afternoon and let you know what
I find out.



i would try to check at some point in the component what part of the
process is failing.
first i would try to print session variables after connecting to the
database in login function :

 $this->Session->write($this->sesskey, $sessdata);
 //---> just here, before it returs true and try to redirect try to
print_r($_SESSION);exit;
//if the model connected correctly to the database amd took
everything,
//the function should have stored everything in the session
variables.
return true;

if you can see the user group...the user is authenticated and stored in
your session what comes after is the reload action in the users
controller, you can try also there before redirecting to
print_r($_SESSION);exit; to check if the data still there in your
session..if it does then you have the same problem i run into this
morning...the session data is lost after this redirect..and im still
trying to solve this...maybe we can find something :)



--~--~-~--~~~---~--~~
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: does cake not join tables when using hasMany?

2006-12-21 Thread [EMAIL PROTECTED]


ah, thanks for the reply.  using the fake hasOne relationship worked.
but, the page still performs a *ton* of sql queries.  is ther any way
of limiting this?

On Dec 21, 1:21 am, "AD7six" <[EMAIL PROTECTED]> wrote:

On Dec 21, 3:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> first off, it seems like the page would probably run faster if it was
> just one query instead of 30 or 40.

> but the other reason is to filter results or get variables from the
> other model. for instance, if Forrest has many Trees and i query
> Forrest wanting to only return Trees that are Brown, how is it possible
> to check if Trees.Brown from the query on Forrest if it is not joined?

> *vTo find all forests that contain a brown tree, you can achieve that by
using the search and 
cheatinghttp://groups-beta.google.com/group/cake-php/tree/browse_frm/thread/f...

To find all brown trees for a forest, you would define that in the
association definition (e.g. by using bindModel and defining a
condition).

To do both, find only forrests that have a brown tree, and list all
brown trees by forrest, you would do both.

HTH,

AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake search (at the time of writing) erroneously reports less/no
results for the google group.
The wiki may contain incorrect info - read at your own risk (it's
mainly user submitted) :) You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
here:http://irc.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: cake not running on shared server

2006-12-21 Thread Nimrod A. Abing


On 12/22/06, keymaster <[EMAIL PROTECTED]> wrote:


It was/is commented. Any other suggestions?

Do you think the fact there is no domain name and I am accessing the
site as:

http://99.99.999.999/~accountname/


This should not be a problem.


(ie. using the ip) is a problem? What about php over cgi, is that an
issue?


It shouldn't be an issue whether or not PHP is running as a CGI binary
provided the PHP CGI binary is compiled with
--enable-force-cgi-redirect. My website is configured to run PHP as a
CGI binary and I have used it as a staging area for one CakePHP-based
project with mod_rewrite enabled. The project was also in a
subdirectory under the DOCUMENT_ROOT.

Have you tried uploading an unmodified CakePHP into your server's
DOCUMENT_ROOT? If not, try it and then say:

http://99.99.999.999/~accountname/pages/home

It *should* show the CakePHP default homepage for your installation.
If not, then there is something wrong with your server's setup.
--
_nimrod_a_abing_

[?] http://abing.gotdns.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: othAuth Issue

2006-12-21 Thread :uic


i would try to check at some point in the component what part of the
process is failing.
first i would try to print session variables after connecting to the
database in login function :

$this->Session->write($this->sesskey, $sessdata);
//---> just here, before it returs true and try to redirect try to
print_r($_SESSION);exit;
   //if the model connected correctly to the database amd took
everything,
   //the function should have stored everything in the session
variables.
return true;

if you can see the user group...the user is authenticated and stored in
your session what comes after is the reload action in the users
controller, you can try also there before redirecting to
print_r($_SESSION);exit; to check if the data still there in your
session..if it does then you have the same problem i run into this
morning...the session data is lost after this redirect..and im still
trying to solve this...maybe we can find something :)


--~--~-~--~~~---~--~~
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: Including a cakephp action result in another site

2006-12-21 Thread M


Thanks for all the reply I will try some of the advices...
I hope to succeed and then show you my site in cakephp...

... and thanks again for the fantastic framework

Michele


--~--~-~--~~~---~--~~
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: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread Mariano Iglesias


That's a bummer. If your hosting is already running PHP 5.x then you should
encourage them to upgrade to 5.2 since it fixes a lot of critical/security
bugs. 


I have some dedicated servers with GoDaddy and I almost demanded them to do
so, and they did. There's nothing like acting as a pissed off client ;)

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de ShepherdWeb
Enviado el: Jueves, 21 de Diciembre de 2006 03:07 p.m.
Para: Cake PHP
Asunto: Re: PHP < 5.2.0 crash with mysql_fetch_field

Thanks for the info.  I'm concerned because I'm getting ready to launch
a site which is running php v 5.0.4.  However, I don't have access to
the server yet.  Does anyone know if this bug was fixed in version
5.0.4?


--~--~-~--~~~---~--~~
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: othAuth Issue

2006-12-21 Thread devon


Hello uic,

Thanks for your reply. If I understand you correctly, I have made
models for "user", & "group".

user:


   array('className'=> 'Group',
 'foreignKey'   => 'group_id'));
}
?>


group:


array('className' => 'Permission',
'joinTable' => 'groups_permissions'));
}
?>

I've created group levels 100, 200, 300.
Assigned groups names per tutorial 0.5
Created  permissions  (1,1) (2,2) (2,3) (2,4) (3,5) (3,6) etc.

var $mode = 'oth';
var $gid = 3;
var $auto_redirect = true;
var $gid_order = 'asc';
var $strict_gid_check = false;

I have access to everything I'm trying to protect. Tested in all levels
100, 200, 300.

Ideas?

Many thanks for your help.

devon





I'm using component 0.5.2 and was referring to the 0.5 tutorial. Have
attempted to use the correct conventions.
Where I left off yesterday was basically where I'm at today.

On Dec 21, 9:15 am, ":uic" <[EMAIL PROTECTED]> wrote:

Hi devon,

looks like your user data is not being passed to the session...thats
why when the lock function is trying to determine wheter the user is
authorized or not its not able to find this data in the session.
Have you made the models and its relationships? (usermodel and
groupmodel)

devon wrote:
> Hello CakePHP Community..

> I'm new to the framework and excited to get some work done for my
> clients. It looks to be a very good framework with improving
> documentation. On to my issue..

> Traversing through this group and on IRC I know this topic has come up
> many times, but I must ask for an assist. I've downloaded and installed
> onAuth component 05.2, the helper, baked the models, set up the db
> permissions matrix, updated the appController, and have followed the
> tutorial closely. ( I thought)

> I'm having a problem enabling login. I am not getting beyond the login
> page, however I can open the admin views of the content I am trying to
> secure.

> I do get an "Invalid ID for User" when accessing users/index. No other
> errors are thrown. This must be a simple fix, but I'm not able to find
> the problem. What am I missing?

> Devon



--~--~-~--~~~---~--~~
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: PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread ShepherdWeb


Anselm,

Thanks for the info.  I'm concerned because I'm getting ready to launch
a site which is running php v 5.0.4.  However, I don't have access to
the server yet.  Does anyone know if this bug was fixed in version
5.0.4?


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



PHP < 5.2.0 crash with mysql_fetch_field

2006-12-21 Thread anselm


Hi everyone :)

Just thought I'd write this here in case other people have this problem
in the future. There is a bug in some versions of PHP that causes PHP
to crash when mysql_fetch_field is called.

I don't know exactly which versions of PHP this covers, but I have had
it in PHP 5.0.3, and it is definitly fixed in PHP 5.2.0. Not everyone
with PHP 5.0.3 have this problem - it's probably a (rare) combination
of things - but it's definitly a bug, and was reported here :
http://bugs.php.net/bug.php?id=31288

Symptoms : CakePHP will just stop execution at the first database
operation. To work out if you're having this particular problem, you
can have a look in cake/libs/model/dbo/dbo_mysql.php and look for
'mysql_fetch_field'. Put an "echo 'xxx';" after that line to see if you
make it through - if you don't then you're victim of bug #31288

Solution : I have tried various workarounds, and none of them worked.
The only thing that fixed it was upgrading to PHP 5.2.0

The ISP were helpfull and upgraded their server for me within less than
a day which was good :)


Anselm


--~--~-~--~~~---~--~~
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: othAuth Issue

2006-12-21 Thread :uic


Hi devon,

looks like your user data is not being passed to the session...thats
why when the lock function is trying to determine wheter the user is
authorized or not its not able to find this data in the session.
Have you made the models and its relationships? (usermodel and
groupmodel)

devon wrote:

Hello CakePHP Community..

I'm new to the framework and excited to get some work done for my
clients. It looks to be a very good framework with improving
documentation. On to my issue..

Traversing through this group and on IRC I know this topic has come up
many times, but I must ask for an assist. I've downloaded and installed
onAuth component 05.2, the helper, baked the models, set up the db
permissions matrix, updated the appController, and have followed the
tutorial closely. ( I thought)

I'm having a problem enabling login. I am not getting beyond the login
page, however I can open the admin views of the content I am trying to
secure.

I do get an "Invalid ID for User" when accessing users/index. No other
errors are thrown. This must be a simple fix, but I'm not able to find
the problem. What am I missing?

Devon



--~--~-~--~~~---~--~~
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: Very odd problem

2006-12-21 Thread :uic


Well...im still not able to solve this..
im making my login page redirect to an action where i use as layout a  
blank page with this code:


and i get :

Array ( [Config] => Array ( [rand] => 1301800827 [time] => 1166721008  
[userAgent] => 5775c78b808060a9b312c8682121643e ) )


which makes me almost completely sure that my landing page uses  
session handling..
If before "$this->redirect('mylandingpage-in-the-same-drectory');" on  
my users controller in login action i write :


print_r($_SESSION);exit;

im able to get all the data needed for obauth..but if i dont exit  
there and let it redirect to my "print_r($_SESSION);" page, the user  
group password etc disappears..
the most frustrating is that it was working last night before i went  
to sleep :)


any help would be appreciated.


:uic



On 12/21/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:


This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.

I just can't believe how a html file would crash php core.



It seems very unliktely to me as wel that an HTML file could crash
PHP.  Besides, it's not a crash really, is it?  It's more like your
code is not generating the desired output.

Setting aside the "background=white" stuff, it sounds to me like the
next page in the chain (meaning the page that you land on after
logging in) is not capturing the session at all.  If you don't
explicitly make sure that you are using session handling on every page
(I know others will correct me if I'm wrong) then of course you're not
going to have session data show up on the next page.

So, are you 100% sure that the "landing page" that you go to after
logging in is configured to work with an existing session?  Showing us
some code is the 100% guaranteed way to diagnose this problem.

Redirects to a page that is not configured to be using a session is
100% guaranteed to not be able to read session data.

Hope that helps.

--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will  
never have."

-- Rasmus Lerdorf

@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: Looking for downloable doc

2006-12-21 Thread ReynierPM

Thanks a lot, now I'm subscribed to both of groups and start with CakePHP.
Cheers

2006/12/21, Mariano Iglesias <[EMAIL PROTECTED]>:



Cool! Just signed up. Thanks for the tip!

-MI


---

Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.

BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Daniel Hofstetter
Enviado el: Jueves, 21 de Diciembre de 2006 07:45 a.m.
Para: Cake PHP
Asunto: Re: Looking for downloable doc

There exists a group for Spanish speaking people:
http://groups.google.com/group/CakePHP-es


>




--
Salu2
ReynierPM | 5to. Ing Informática

--~--~-~--~~~---~--~~
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 not running on shared server

2006-12-21 Thread keymaster


It was/is commented. Any other suggestions?

Do you think the fact there is no domain name and I am accessing the
site as:

http://99.99.999.999/~accountname/

(ie. using the ip) is a problem? What about php over cgi, is that an
issue?


--~--~-~--~~~---~--~~
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: IDE of choice?

2006-12-21 Thread D.Pape


Hi.

I evaluated Zend Studio. I think the Zend autocomplete function is 
great!! And i love to work via ftp. But Zend is too expensive for me.


I checked Eclipse, but I don´t like it. It´s a bit overkill for me...

Now i evaluate Komodo Personal (29,95 Dollar) since two weeks and it 
seems to be great. You have project files based on file system, have 
autocomplete and you can include batch files for building (so i use 
rsync to synchronize my remote server).


Sorry for my bad english ;o)

Cheers, Daniel

--~--~-~--~~~---~--~~
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: IDE of choice?

2006-12-21 Thread Mariano Iglesias

Please DO search the group before posting as this issue has been covered
several times:



http://groups-beta.google.com/group/cake-php/browse_thread/thread/cbb35f8a9b
15a978



http://groups-beta.google.com/group/cake-php/browse_thread/thread/8d6103ef74
1074f9



and more. (look for IDE on CakePHP Google Group)



-MI



---



Remember, smart coders answer ten questions for every question they ask. 

So be smart, be cool, and share your knowledge. 




BAKE ON!





-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 12:18 p.m.
Para: Cake PHP
Asunto: IDE of choice?



I sure would like to see all the methods and properties available to me

as I'm working with cakePHP. Autocomplete and some of that other stuff

would be nice, too. I tried the one from Zend, but it seemed to be a

bit of overkill for me. Do you use any sort of IDE? What one? Why?




--~--~-~--~~~---~--~~
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 not running on shared server

2006-12-21 Thread Nimrod A. Abing


Make sure you comment out the line in app/conf/core.php that says:

define ('BASE_URL', env('SCRIPT_NAME'));

when uploading your work to your production server.

On 12/21/06, keymaster <[EMAIL PROTECTED]> wrote:


After giving up getting mod_rewrite working on my windows development
environment (I settled for cake pretty urls - thank goodness for them),
I thought I would have no problems on my production server.

My production server has mod_rewrite, so I reasoned it would be a
breeze, after all, that is what cake was designed for :-)

After installing cake, I got the following error:

"Not Found
The requested URL /home/myaccount/public_html/app/webroot/ was not
found on this server.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request."

The only thing I can think of that I am doing differently is:

1. since I have not yet assigned a domain name to the account, I am
accessing it by:

http://99.99.999.999/~accountname/

2. The setup is a basic cpanel server.

3. PHP is running as a CGI.

I have seen various messages on this board and in Trac about issues
similiar to what I am experiencing, and tried all the posted
suggestions, but... nothing.

Hoping by posting my specific error message someone can suggest what I
should do.

Thanks very much.


>




--
_nimrod_a_abing_

[?] http://abing.gotdns.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: IDE of choice?

2006-12-21 Thread Chris Hartjes


On 12/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I sure would like to see all the methods and properties available to me
as I'm working with cakePHP. Autocomplete and some of that other stuff
would be nice, too. I tried the one from Zend, but it seemed to be a
bit of overkill for me. Do you use any sort of IDE? What one? Why?




I work with Macs (iBook and now a MacBook) and find myself using
TextMate for all my coding (PHP, Ruby, Perl and Python).  I used to be
a firm believer in using IDE's (I've used Eclipse, Zend Studio and
Komodo as well) but keep finding that my combo of a text editor that
can open up remote files and the ability to use a terminal on the
server I have to work on is the sweet spot for me.

I found that autocomplete didn't really save me a lot of time, but
having the ability to look up functions right in the editor is nice.
That's the strength of a good IDE.  Old habits die hard, and I find
myself going to www.php.net to look stuff up anyway instead of using
the built-in help.

Version control hooks are also good to have in an IDE, but I've used
command-line tools for version control for ages so again, I never use
them if they're built in.

Hope that helps.


--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

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



IDE of choice?

2006-12-21 Thread [EMAIL PROTECTED]


I sure would like to see all the methods and properties available to me
as I'm working with cakePHP. Autocomplete and some of that other stuff
would be nice, too. I tried the one from Zend, but it seemed to be a
bit of overkill for me. Do you use any sort of IDE? What one? Why?


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

2006-12-21 Thread Mariano Iglesias


Done Chris. Thanks.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Chris Hartjes
Enviado el: Jueves, 21 de Diciembre de 2006 12:13 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP blogs

Could you please add my blog to this as well?  When I talk about PHP
it's usually CakePHP related.

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 blogs

2006-12-21 Thread Chris Hartjes


On 12/21/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:


Thanks, I've just added your CakePHP feed to Google Reader.

-MI



Could you please add my blog to this as well?  When I talk about PHP
it's usually CakePHP related.

http://www.littlehart.net/atthekeyboard/

--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@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 blogs

2006-12-21 Thread Mariano Iglesias


Thanks, I've just added your CakePHP feed to Google Reader.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de ShepherdWeb
Enviado el: Jueves, 21 de Diciembre de 2006 11:48 a.m.
Para: Cake PHP
Asunto: Re: CakePHP blogs

I post CakePHP articles here:

http://www.shepherdweb.com/category/frameworks/cakephp/



--~--~-~--~~~---~--~~
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 not running on shared server

2006-12-21 Thread keymaster


After giving up getting mod_rewrite working on my windows development
environment (I settled for cake pretty urls - thank goodness for them),
I thought I would have no problems on my production server.

My production server has mod_rewrite, so I reasoned it would be a
breeze, after all, that is what cake was designed for :-)

After installing cake, I got the following error:

"Not Found
The requested URL /home/myaccount/public_html/app/webroot/ was not
found on this server.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request."

The only thing I can think of that I am doing differently is:

1. since I have not yet assigned a domain name to the account, I am
accessing it by:

http://99.99.999.999/~accountname/

2. The setup is a basic cpanel server.

3. PHP is running as a CGI.

I have seen various messages on this board and in Trac about issues
similiar to what I am experiencing, and tried all the posted
suggestions, but... nothing.

Hoping by posting my specific error message someone can suggest what I
should do.

Thanks very much.


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

2006-12-21 Thread NOSLOW


The word "blogs" wrapped to the next line, so after clicking the link
and getting the "oops" page, add the word "blogs" to the end of the
URL.

The part after www.google.com/ should be:

reader/shared/user/09138396384756178995/label/cakephp-blogs


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

2006-12-21 Thread Mariano Iglesias


Yes damn email client. Short URLS:

AGGREGATED WEB: http://tinyurl.com/yxlpto
AGGREGATED FEED: http://tinyurl.com/y33xr2

But I'm thinking that it could be useful to have something like
blogs.cakephp.org redirected to the aggregated blog page (or even use the
feed to display aggregated posts within CakePHP layout) and
blogs.cakephp.org/feed have the aggregated feed.

I'll add a ticket for this.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


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

2006-12-21 Thread ShepherdWeb


I post CakePHP articles here:

http://www.shepherdweb.com/category/frameworks/cakephp/


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

2006-12-21 Thread tracyfloyd


Mariano,
those Google Reader links seem truncated... maybe repost after running
through http://tinyurl.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: Very odd problem

2006-12-21 Thread Chris Hartjes


On 12/21/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:


This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.

I just can't believe how a html file would crash php core.



It seems very unliktely to me as wel that an HTML file could crash
PHP.  Besides, it's not a crash really, is it?  It's more like your
code is not generating the desired output.

Setting aside the "background=white" stuff, it sounds to me like the
next page in the chain (meaning the page that you land on after
logging in) is not capturing the session at all.  If you don't
explicitly make sure that you are using session handling on every page
(I know others will correct me if I'm wrong) then of course you're not
going to have session data show up on the next page.

So, are you 100% sure that the "landing page" that you go to after
logging in is configured to work with an existing session?  Showing us
some code is the 100% guaranteed way to diagnose this problem.

Redirects to a page that is not configured to be using a session is
100% guaranteed to not be able to read session data.

Hope that helps.

--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@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: Very odd problem

2006-12-21 Thread Ismael S. Kafeltz


This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.

I just can't believe how a html file would crash php core.


--~--~-~--~~~---~--~~
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: Very odd problem

2006-12-21 Thread :uic


Hi,

Im having the same session problems with obauth..unfortunately the  
problem is not related to any specific code for me, i just use the  
login function rthat stores the data in session variables, and before  
the controller redirects to a specific view i can print_r all the  
$_SESSION data, and my user data is there...after i redirect to an  
empty page containing ONLY print_r($_SESSION); all the data stored  
from the login disapears...i cant figure out what is happening, i  
started thinking its related to my server..if any of you could help  
with this.


thanks
:uic
El 21/12/2006, a las 13:45, Ismael S. Kafeltz escribió:



Hello everybody.

I am using the dAuth v0.3, I have a problem with session that dAuth
create

[User] => Array
   (
   [id] => 1
   [username] => ismael
   [email] => yyy
   [password] => xx
   )

)

Ok, the problem is that i lose the session after enter in a especific
view which contains this snippet:



I discovered (after years trying to find the problem) that if I erase
this: background="white"
it works perfect i don't lose anymore my session.

I really don't know why, i agree this is very uncommon
I think the problem is with the Render engine don't like the
(background="white") string and do something...

I don't know if I made myself clear to explain, can anybody reproduce
this error?


>



--~--~-~--~~~---~--~~
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: Does someone has example about cakephp !!

2006-12-21 Thread [EMAIL PROTECTED]


great I am chinese too.


"ERic ZoU
"

http://hi.baidu.com/xeboy

Try to look through my blog.
It will give u some simple examples.

Hopes it will 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?hl=en
-~--~~~~--~~--~--~---



Re: Ajax, controller and good practice

2006-12-21 Thread purepear


Happy to hear that :)


--~--~-~--~~~---~--~~
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: route to plugin

2006-12-21 Thread Ryan


This should work:

//route to plugins
//$Route->connect('/foo/*', array('controller' => 'plugin_name',
'action' => 'controller_name'));

HTH,
Ryan Rose
Digiwize.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
-~--~~~~--~~--~--~---



route to plugin

2006-12-21 Thread Marcin Szkudlarek



Is there a possibility to specify route to plugin? 
I want to change the default behaviour where url:

/plugin/controller/action
is needed to access plugin.
--
View this message in context: 
http://www.nabble.com/route-to-plugin-tf2865257.html#a8006995
Sent from the CakePHP mailing list archive at Nabble.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: Does someone has example about cakephp !!

2006-12-21 Thread ERic ZoU


http://hi.baidu.com/xeboy

Try to look through my blog.
It will give u some simple examples.

Hopes it will 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?hl=en
-~--~~~~--~~--~--~---



Very odd problem

2006-12-21 Thread Ismael S. Kafeltz


Hello everybody.

I am using the dAuth v0.3, I have a problem with session that dAuth
create

[User] => Array
   (
   [id] => 1
   [username] => ismael
   [email] => yyy
   [password] => xx
   )

)

Ok, the problem is that i lose the session after enter in a especific
view which contains this snippet:



I discovered (after years trying to find the problem) that if I erase
this: background="white"
it works perfect i don't lose anymore my session.

I really don't know why, i agree this is very uncommon
I think the problem is with the Render engine don't like the
(background="white") string and do something...

I don't know if I made myself clear to explain, can anybody reproduce
this error?


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

2006-12-21 Thread Mariano Iglesias


I created a Google Reader public page since Bloglines can be crappy when
displaying feeds, and found that Google Reader has an easier interface.

The URL is at:

http://www.google.com/reader/shared/user/09138396384756178995/label/cakephp-
blogs

I think the URL sucks, and worst of all Google has not yet established a way
to personalize the homepage, nor make the URL a little friendlier.

The great thing about Google reader that Bloglines doesn't offer is that it
supports an atom feed that aggregates all CakePHP related blogs. Use this as
your feed URL:

http://www.google.com/reader/public/atom/user/09138396384756178995/label/cak
ephp-blogs

To include a widget on your page that includes latest 10 posts from
different CakePHP blogs use the following:

http://www.google.com/reader/ui/publisher.js";>
http://www.google.com/reader/public/javascript/user/0913839638475617899
5/label/cakephp-blogs?n=10&callback=GRC_p(%7Bc%3A'blue'%2Ct%3A'CakePHP%20Blo
gs'%2Cs%3A'true'%7D)%3Bnew%20GRC">

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


--~--~-~--~~~---~--~~
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: Including a cakephp action result in another site

2006-12-21 Thread anselm



You should read up on
allow_url_fopen, and the *huge* security risk it poses if you're not
careful.  You should never use any filesystem functions on remote
resources, especially if you don't control them.


Thanks for pointing this out nate ! in case there are others who didn't
know about this either, I just looked it up :

The security risk is that having allow_url_fopen also applies to
'include' and 'require'. For example in a situation where you'd have
register_globals and allow_url_fopen on, and such type of code :

include $somefile;

Then an attacker could run any code on your server calling the page
with 'somefile=http://example.com/evilscript'. This obviously an
extreme case, but more subtle attacks could be done on the same
principle.

I thought I'd point out that Cake is quite safe in this regards - while
it does use 'include' with variables (obviously, since it loads the
files associated with models/etc.) it does so in a safe way by checking
if the file is truly a file with file_exists first (url_fopen does not
apply to file_exists). For instance in loadModel :

if (file_exists($path . $name . '.php')) {
 require($path . $name . '.php');
 // .
}

But you never know how code evolves over time - and since it's a risk
it is best to have allow_url_fopen off.

Sorry for the bad advice :(
Anselm


--~--~-~--~~~---~--~~
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: Looking for downloable doc

2006-12-21 Thread Mariano Iglesias


Cool! Just signed up. Thanks for the tip!

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Daniel Hofstetter
Enviado el: Jueves, 21 de Diciembre de 2006 07:45 a.m.
Para: Cake PHP
Asunto: Re: Looking for downloable doc

There exists a group for Spanish speaking people:
http://groups.google.com/group/CakePHP-es


--~--~-~--~~~---~--~~
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: Looking for downloable doc

2006-12-21 Thread Daniel Hofstetter


There exists a group for Spanish speaking people:
http://groups.google.com/group/CakePHP-es

--
Daniel Hofstetter
http://cakebaker.42dh.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: Looking for downloable doc

2006-12-21 Thread Mariano Iglesias


The bakery is completely in English, so is this Google Group. I don't think
I encountered any Spanish speaking forum/group/whatever supporting CakePHP,
maybe this could be a good time to start? :)

I haven't started anything yet because for example the other day I
discovered that on this group there was *only one* fellow argentinian, so it
didn't seem to have cranked the Spanish speaking community yet. With a
little more time I'm sure it will.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!

De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de ReynierPM
Enviado el: Miércoles, 20 de Diciembre de 2006 07:06 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: Looking for downloable doc

Yeah!!I As you said before I speak Spanish but I don't know where find
documentation or better who here in this group talk Spanish and can help me.
Also I speak and write a little English so this is not a difficult for me. 


Can you tell me if exists something in the Bakery wrote in Spanish?


--~--~-~--~~~---~--~~
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 goes crazy when zend.ze1_compatibility_mode is On

2006-12-21 Thread Mariano Iglesias


But you didn't tell us the solution ;)

For what I can see is that you forgot to add the className field on one of
your relations, or probably misspelled it (such as classname instead of
className)

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de sawa
Enviado el: Miércoles, 20 de Diciembre de 2006 10:46 p.m.
Para: Cake PHP
Asunto: CakePHP goes crazy when zend.ze1_compatibility_mode is On

I spent couple of hours banging my head against the wall :) until I
managed to locate the problem...hope someone will find this usefull


--~--~-~--~~~---~--~~
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: Finding out if an action is called through AJAX, or direct access

2006-12-21 Thread Mariano Iglesias


Yes, that tells you if you are in an Ajax call or not. But
RequestHandler->setAjax($controller) was what I was looking for because it
automatically sets the default layout or ajax layout depending on isAjax()
state.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 


BAKE ON!


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Ryan
Enviado el: Miércoles, 20 de Diciembre de 2006 07:18 p.m.
Para: Cake PHP
Asunto: Re: Finding out if an action is called through AJAX, or direct
access

Isn't this what RequestHandler->isAjax() is for?


--~--~-~--~~~---~--~~
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: does cake not join tables when using hasMany?

2006-12-21 Thread AD7six


On Dec 21, 3:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

first off, it seems like the page would probably run faster if it was
just one query instead of 30 or 40.

but the other reason is to filter results or get variables from the
other model. for instance, if Forrest has many Trees and i query
Forrest wanting to only return Trees that are Brown, how is it possible
to check if Trees.Brown from the query on Forrest if it is not joined?

*v


To find all forests that contain a brown tree, you can achieve that by
using the search and cheating
http://groups-beta.google.com/group/cake-php/tree/browse_frm/thread/f23b1825050ad543/0e1deb52d028b5d5?rnum=1&_done=%2Fgroup%2Fcake-php%2Fbrowse_frm%2Fthread%2Ff23b1825050ad543%2F%3F#doc_e793267f42fa77fd

To find all brown trees for a forest, you would define that in the
association definition (e.g. by using bindModel and defining a
condition).

To do both, find only forrests that have a brown tree, and list all
brown trees by forrest, you would do both.

HTH,

AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake search (at the time of writing) erroneously reports less/no
results for the google group.
The wiki may contain incorrect info - read at your own risk (it's
mainly user submitted) :) You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
here:http://irc.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
-~--~~~~--~~--~--~---