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

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

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

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

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

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:

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

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

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

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

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

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

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]

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

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

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

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

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

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

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

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

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

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

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

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

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?

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

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

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

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

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

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

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

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: ?php print_r($_SESSION); ? and i get : Array ( [Config] = Array ( [rand] = 1301800827 [time] = 1166721008 [userAgent] = 5775c78b808060a9b312c8682121643e

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

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

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: ?php class User extends AppModel { var $name = 'User'; var $hasOne = array('Group' = array('className'= 'Group',

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

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

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

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

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

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).

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 :

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

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.

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

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

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

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

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

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

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

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