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
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
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
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
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
, 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
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
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
(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
',
'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
. 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
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
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
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
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
-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
' = __('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
- 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
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
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
(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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
://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
) {
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
(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
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
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
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
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
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
, 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
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
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
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
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
...
--
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
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
;-)
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
. 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
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
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
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
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
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
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
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
').
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
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
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
64 matches
Mail list logo