Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Martin Schapendonk
it is being tampered with. A setup with a reverse proxy might trigger that behavior. Do you have a reverse proxy in front of your 'real' webserver? Try if lowering CAKE_SECURITY to medium solves the problem, although I'm not quite sure what other security implications that might have. Martin -- Martin

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Martin Schapendonk
On 1/8/08, Davide [EMAIL PROTECTED] wrote: I've also tried with security HIGH, MEDIUM and LOW but none of them works. When I get back to 1.1.18 everything is ok. This may be trivial, but the setting is case sensitive. Did you try high, medium and low as well? Martin -- Martin Schapendonk

Re: session doesn't work if model file begins with blank line ?!

2008-01-08 Thread Martin Schapendonk
On 1/8/08, beetlejuice [EMAIL PROTECTED] wrote: must be because of some text output before header could be send ? Yes, you must have seen that error. ANY whitespace outside php-tags in models/controllers (and most other Cake-files) can and usually will ruin your session. Martin -- Martin

Re: Composite Primary Keys

2007-11-09 Thread Martin Schapendonk
there was an additional step apply any optimizations for the technical implementation. Adding a surrogate primary key to each table belongs to that category, if you want to use Cake. I guess your design needs that little bit of extra Cake-tweaking. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: CakePHP 1.2 and Oracle throwing errors

2007-11-08 Thread Martin Schapendonk
there are some technical difficulties as well. Your best bet is to use table/model names that do not conflict with Oracle reserved words. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: findall on 3 models chained with belongsto

2007-11-05 Thread Martin Schapendonk
, then make it faster. You can always revert to a custom finder query if you happen to experience problems with the amount of queries. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: 1.2, AuthComponent: Call to a member function isAuthorized() on a non-object

2007-11-02 Thread Martin Schapendonk
On 10/30/07, a.php.programmer [EMAIL PROTECTED] wrote: $this-auth-authorize = 'controller'; I already had that, the error still appears. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

1.2, AuthComponent: Call to a member function isAuthorized() on a non-object

2007-10-29 Thread Martin Schapendonk
this error. I tried adding an isAuthorized() function to every single controller as well, but the error is still the same. Any help is greatly appreciated. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: Programming with controllers

2007-10-17 Thread Martin Schapendonk
(SomeAction in SomeController). If LoginAction would set a flash message, it is perfectly possible for SomeView to show it (in fact, *any* view could render a flash message, irregardless of the controller/action that set it). Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: Oracle connectivity with CakePHP

2007-10-16 Thread Martin Schapendonk
', 'database' = 'hostname:port/serviceName', 'prefix' = '' ); } Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: about cakephp 1.2 development

2007-10-02 Thread Martin Schapendonk
. You might decide that running a nightly build is an acceptable risk to you. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: CakePHP 1.2, Auth-component and reverse proxies

2007-09-27 Thread Martin Schapendonk
2007/9/26, Martin Schapendonk [EMAIL PROTECTED]: Anyone knows what could be happening here? Let's answer my own email (at least partially). It is related to the CAKE_SECURITY setting. Changing this setting from high to medium 'solved' the problem. The documentation states: CakePHP session IDs

Re: CakePHP 1.2, Auth-component and reverse proxies

2007-09-27 Thread Martin Schapendonk
2007/9/27, Martin Schapendonk [EMAIL PROTECTED]: It is related to the CAKE_SECURITY setting. Changing this setting from high to medium 'solved' the problem. In the group archive I read CAKE_SECURITY set to high also checks the referer, which would explain why it doesn't work with a reverse

CakePHP 1.2, Auth-component and reverse proxies

2007-09-26 Thread Martin Schapendonk
get a redirect to the login succesful page (value of $this-Auth-loginRedirect) - ... and immediately another redirect to the login page again - Login page is rendered Anyone knows what could be happening here? Martin -- Martin Schapendonk, [EMAIL PROTECTED

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

2007-09-20 Thread Martin Schapendonk
couldn't find any reference to $options['values']. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php

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

2007-09-20 Thread Martin Schapendonk
-input('ade_id', array('options'=$audiences)); Are you using a nightly build? Did anything change between 5427alpha and today? Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

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

2007-09-20 Thread Martin Schapendonk
' = __('label', true), 'values' = $values)); and that works just fine. Used it all over the place. So, I wonder who is right here... I give up. 'values' doesn't work for me, 'options' does. pr($audiences) shows me a nice key=value array. Martin -- Martin Schapendonk, [EMAIL PROTECTED

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

2007-09-20 Thread Martin Schapendonk
- options works, values doesn't. I'm using Oracle as database, although I hope that should not matter. I'll send you a small proof-of-concept (directly, not through the list) that shows what code is working for me. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED

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

2007-09-19 Thread Martin Schapendonk
me in the right direction. It was array('options'=$audiences) instead of values, but I found it. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group

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

2007-09-18 Thread Martin Schapendonk
with audiences is available to the view in variable $audiences. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: override dbo

2007-08-31 Thread Martin Schapendonk
(it is most obvious with any example that has a User-model). Is that on your todo-list as well? Are there any other unresolved issues that I might be able to help with? Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: Why can't AddModule statement can't be added to htpd.conf????????

2007-08-30 Thread Martin Schapendonk
2007/8/29, SIXS [EMAIL PROTECTED]: Hi, When I add the AddModule statement to httpd.conf and I restart the server it doesn't restart successfully. Any ideas? Check your errorlog or run 'apachectl configtest'. Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: override dbo

2007-08-28 Thread Martin Schapendonk
2007/8/28, Adwin Wijaya [EMAIL PROTECTED]: After using a dbo_odbc for a day .. i decided not to use it ... it is unstable for me .. and many bugs found in there :( i also cannot use cake for my project :( Have you tried the native dbo_oracle.php? Martin -- Martin Schapendonk, [EMAIL

Re: Efficiency of database driven sessions

2007-08-15 Thread Martin Schapendonk
be a problem for any decent database. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Calling stored procedures

2007-07-19 Thread Martin Schapendonk
Hi, What would be a nice way to call stored procedures and capture their output/return value from CakePHP? Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Silly HTTPS quesiton...

2007-04-20 Thread Martin Schapendonk
forms to a URL that's being redirected. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: cakePHP and Version control Poll

2007-03-09 Thread Martin Schapendonk
configuration files in app - consider an extra configuration option) will be merged in as well (of course, I'm extra cautious with any merge that changes something in app/). Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: New Cake FAQ

2007-03-09 Thread Martin Schapendonk
and layouts to track down any browser incompatibilities in the rendered HTML. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: apache virtual host set up, mirror cake route to another domain

2007-02-27 Thread Martin Schapendonk
VirtualHost than to try to integrate the redirect and the cake site on 1 virtual host. This VirtualHost config just contains a Redirect: Redirect / http://www.domain.com/blog/ Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You

Re: apache virtual host set up, mirror cake route to another domain

2007-02-27 Thread Martin Schapendonk
that the first time, but I think you should check %{HTTP_HOST} instead of %{HTTP_REFERER}. RewriteCond %{HTTP_HOST} ^(www.)?blogdomain.com$ [NC] RewriteRule (.*) http://www.domain.com/blog/$1 [R=301,L] Martin -- Martin Schapendonk, [EMAIL PROTECTED

Recursive model

2007-02-26 Thread Martin Schapendonk
the SQL query contains the alias 'Study' twice. Am I doing something wrong, or should I report a ticket? Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Share a sequence between two tables

2007-02-26 Thread Martin Schapendonk
. You don't mention it, but I assume you use Oracle based on the fact you mention sequences. You also don't mention the Cake version and the database driver you use. The dbo_oracle.php in Cake 1.2 seems OK. Did you try to use that one? Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: Share a sequence between two tables

2007-02-26 Thread Martin Schapendonk
2007/2/26, Martin Schapendonk [EMAIL PROTECTED]: 2007/2/26, Gonçalo Marrafa [EMAIL PROTECTED]: Hi have two tables in my database that get their id's from the same sequence. The problem is that when i try to insert records in either of them cake tries to get the record's id by selecting

Re: CakePHP version numbering and SVN revision numbers

2007-01-24 Thread Martin Schapendonk
for not finding the version numbering scheme myself... Right now, I see many changes being applied to branches/1.2.x.x. When will those changes be applied to the trunk? Or is it better to use branches/1.2.x.x instead of trunk/1.2.x.x for dev versions? Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: CakePHP version numbering and SVN revision numbers

2007-01-23 Thread Martin Schapendonk
if this is always the case? For any given release, can I checkout that particular revision of the trunk and expect it to be identical to the release? Thanks, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

CakePHP version numbering and SVN revision numbers

2007-01-21 Thread Martin Schapendonk
Hi all, CakePHP releases include the SVN revision number in their name (e.g. 1.1.12.4205). Does this also mean If you checkout the trunk as of revision 4205, you get the same files as CakePHP release 1.1.12? Thanks, Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: CakePHP 1.1.11.4064, thawed and redelivered better than before.

2007-01-12 Thread Martin Schapendonk
wants a model with the same name as the controller. for example I've a Welcome controller that do not have any model but uses an Article model. what's going wrong here? thanks -- Martin Schapendonk, [EMAIL PROTECTED

Re: CakePHP 1.1.11.4064, thawed and redelivered better than before.

2007-01-12 Thread Martin Schapendonk
://www.fg-webdesign.de Martin Schapendonk wrote: Felix and the rest, I have tried your suggestion to create a vendor branch. I have a directory with cake setup as svn:externals, however, if I try to copy and commit it, I get the following error: [EMAIL PROTECTED]:~/findem/vendor/cakephp$ svn

Re: Can CakePHP do this? - Two

2007-01-04 Thread Martin Schapendonk
) { echo Header: . $result[title]; foreach($result[things] as $thing) { echo $thing; } } Not quite sure what you are trying to accomplish, however. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Can CakePHP do this? - Two

2007-01-04 Thread Martin Schapendonk
(or a combination of both). Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: CakePHP Roadmap

2006-12-06 Thread Martin Schapendonk
situation where you actually want an entire table to be locked. Maybe only for specific maintenance issues, but not in production code on a live web server. Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Planning on CakePHP future versions

2006-10-25 Thread Martin Schapendonk
2006/10/25, Dr. Tarique Sani [EMAIL PROTECTED]: I am now curious as to where we did not play by the rules in the above two cases :) I suppose you should have filed a ticket in Trac (http://trac.cakephp.org/). Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: URL's

2006-10-15 Thread Martin Schapendonk
a trailing / in order to expand the alias. That is, if you use Alias /icons/ /usr/local/apache/icons/ then the url /icons will not be aliased. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Mutually exclusive associations

2006-10-13 Thread Martin Schapendonk
addresses to be separate tuples in the addresses relation. Suppose your business grows and gets too big for your home. You want to update your companies address, but not your home address. That's not possible if both tuples point to the same address tuple. Regards, Martin -- Martin Schapendonk

Re: Mutually exclusive associations

2006-10-12 Thread Martin Schapendonk
in CakePHP. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Mutually exclusive associations

2006-10-06 Thread Martin Schapendonk
, organization_id filled -- type = organization). Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php

Mutually exclusive associations

2006-10-05 Thread Martin Schapendonk
Hi all, Is there a way to tell Cake that any model A belongsTo model B OR model C, but NOT to B and C at the same time? (consider an Address which can only belong to a Person or an Organization). Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: Mutually exclusive associations

2006-10-05 Thread Martin Schapendonk
DRY, because those models are going to be very, very similar. Another idea: maybe I could implement this in a validation? Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Autocomplete: show name, return id

2006-10-03 Thread Martin Schapendonk
shameless Bump. /shameless -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Autocomplete: show name, return id

2006-10-02 Thread Martin Schapendonk
Hi all, Imagine a table with two columns, id and name (for the sake of simplicity). I would like to make an autocomplete-field, which allows the user to pick a name, but include the value of id if the form is submitted. Is this possible? Martin -- Martin Schapendonk, [EMAIL PROTECTED

Re: More Fuel for the What Is A Model Debate

2006-09-27 Thread Martin Schapendonk
... -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: Is this the correct use of Models?

2006-09-27 Thread Martin Schapendonk
idea to me to do it like this from a performance point of view. A findAll() fetches all rows from the database, while a count(*) in the database returns only one row with the count. Any recommendations from someone with more knowledge of the CakePHP core? -- Martin Schapendonk, [EMAIL PROTECTED

Re: Should I always define all associations?

2006-09-19 Thread Martin Schapendonk
;-) Associations are not only useful in case of retrieval - but think of what would/should happen to a particular User's Posts if you happen to delete that User. Imho, the best thing to do would be to model all associations and use $recursive where appropriate. -- Martin Schapendonk, [EMAIL

Re: Need a Genius for this one!

2006-09-18 Thread Martin Schapendonk
. And then you'll be your own genius :-) -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: Problem with Sql statements

2006-09-17 Thread Martin Schapendonk
and abort, depending on the result. The code to manually check for db errors is regularly posted here, search for nate and getdatasource and you should be fine. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: renderElement et son $params

2006-09-17 Thread Martin Schapendonk
On 9/17/06, bicephale [EMAIL PROTECTED] wrote: snip I suspect you'll have more success if you post in English. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Displaying full name in (almost) every view

2006-09-14 Thread Martin Schapendonk
Thanks for all your suggestions. I will definitely look into othAuth. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: Messaging service

2006-09-13 Thread Martin Schapendonk
the timeout. -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Displaying full name in (almost) every view

2006-09-13 Thread Martin Schapendonk
to add a beforeRender to the app_controller which makes the User-model available to every view. Would that be the best/right thing to do? Thanks, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Leverage Cake For File Downloads

2006-09-07 Thread Martin Schapendonk
On 9/6/06, Brandon [EMAIL PROTECTED] wrote: Cake to perform this renaming? For instance, if a user goes to /audio/download/1, their download dialogue will read something like artist-title.mp3. Google for the Content-Disposition header, that should get you going. -- Martin Schapendonk

Re: Noob: tablename singular ...y and plural ...ies ?

2006-09-06 Thread Martin Schapendonk
and amaze yourself. Plus, you can always customize pluralization for anything the normal Inflector does not handle very well in app/config/inflections.php. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: Route problem. How to ignore the action name?

2006-09-06 Thread Martin Schapendonk
'). Then, for each action 'wijzig' (irrespective of the controller), the 'edit' action would be called and I wouldn't have to define a custom route for each and every controller. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You

Re: OT: svn and new files

2006-09-06 Thread Martin Schapendonk
copy should take care of anything beneath it that isn't under version control yet. Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Further Authorization Fun

2006-08-31 Thread Martin Schapendonk
slow Why the subquery? select p.permission , up.type from permissions p , usergroups_permissions up , users_usergroups uu where p.id = up.permission_id and up.usergroup_id = uu.usergroup_id and uu.user_id = ? Regards, Martin -- Martin Schapendonk, [EMAIL PROTECTED