controllerB/index,
here there was an extra redirect to /users/index that was using http and
not https (???) We don't know where this second redirect to users/index
comes from.
David
El jueves, 21 de noviembre de 2013 22:03:58 UTC+1, dtemes escribió:
>
>
> We have just installed a s
We have just installed a self signed ssl cert on the apache server and
doing some tests with our app running over https. The very first issue is
that after login we are being redirected to http, and not https, here are
some apache logs:
xxx.xxx.com:443 192.168.1.3 - - [21/Nov/2013:12:45:24 -0
As far as I know this is obtained from the user session, how are you
handling sessions?
El jueves, 5 de abril de 2012 17:00:49 UTC+2, Dan Moseley escribió:
>
> Hi,
> I have been experiencing extremely long run times for some calls to $this->
> Auth->user('id').
>
> Most requests spend 0 time in
Use bindNode in the user model to return it's group, there is information
about "group only acl" in the cake book.
I use roles instead of groups, so in my case it looks like:
function bindNode($user) {
return array('model' => 'Role', 'foreign_key' =>
$user['User']['role_id']);
a quick and dirty solution, add this 3 lines to the bake task in the model
to push the fields (line 746):
$data['useDbConfig'] = $name->useDbConfig;
$data['name'] = $name = $name->name;
} else {
$data['name'] = $name;
}
* $model=$this->_
Thanks Graham, I have already forked the repository under dtemes/
datasources.
On 20 nov, 03:38, Graham Weldon wrote:
> Hey,
>
> If its something that you want to contribute to cake, there is an official
> Datasources repository:
>
> http://github.com/cakephp/datasources
&g
I am working on a datasource for amazon SDB, and since it's a
schemaless database I have overriden the hasField methodi my models to
just return alway true, this is how my model looks like:
class User extends AppModel {
var $useDbConfig='sdb';
//var $recursive=-1;
var $Cons
Is that possible at all? maybe you can zip all selected files together
and let the user download just the zip file.
On 18 nov, 12:23, Lucas Simon Rodrigues Magalhaes
wrote:
> Hii,
>
> I have a doubt, how to download multiples files with cake. I have in
> my directory webroot/files, four files.
>
Thanks, I did not know Lorenzos implementation.
The sdb datasource is already able to do some basic CRUD operations
and finds. Development is going slow as I spend a lot of time looking
at other datasources code, and also at the core libs.
I will make it available via a git repository within a fe
I am looking into Amazon SimpleDB as a DB solution to migrate a
project to the cloud, and have not found any serious post about the
topic but a thread from 2008.
Most probably we will have to write a new datasource and are already
doing some research. Some of the questions we already have are how
gt; Instead of:
> $this->User->read(null, 1);
>
> By using Model::read() you're setting the data array at the same time
> as extracting your data.
>
> Extract fromhttp://book.cakephp.org/view/1029/read:
> "read() is a method used to set the current model data (Mod
$this->render('view');
}
This is the output:
For $user1:
Array
(
[User] => Array
(
[id] => 1
[username] => dtemes
[first_name] => x
[last_name] =>
[email] => ...@gmail.com
sion, sounds like your doing an extra call and putting that data
> into $this->data at some point.
>
> HTH, Paul.
>
> On Sep 27, 12:25 pm, dtemes wrote:
>
>
>
>
>
>
>
> > It's part of the same query, no after/beforeSave running.
>
> > Th
t; (beforeSave or afterSave) running which is doing this?
>
> HTH, Paul
>
> On Sep 25, 7:20 pm, dtemes wrote:> More information, If i
> don't provide a value for fields that have a
> > default value in the database, the fields are modified and they take
> > the datab
y has id
and password.
Submitting the form changes the user password, but the user model has
a enabled field, with a default value of 0. In the sql query I can see
that cake is doing an update of the password fields but also of the
enabled field.
Using cake 1.3.5
On 25 sep, 15:31, dtemes wrote
I ahev to related models, group and user, and I have a form to update
user data from the groups controller, previously to the User->Save i
read some information from the current user, the code is something
like:
$this->Group->User->read->($this->Auth->user('id'));
.
.
.
$this->Group->User->Save($t
Usually I change the routes and map / to the controller and action
that has the data I need to show in the home page.
On 24 sep, 17:22, Charles Blackwell
wrote:
> How can I display data on the home.ctp template? Do I use the set
> method on the pages controller?
--
Our newest site for the comm
This was my first approach to protect some media files for a project,
it worked well, but resource consumption was extremely high, and i
ended up with a different solution that works 10 times faster using
far less resources, it's based on the secure download module available
in lighttpd.
http://dt
Take a look at one solution I am using. All the heavy lifting is left
to Apache, it's more than 10x faster compared with my previous
solution using a controller to pass the file contents, and memory
usage also drops to almost nothing.
http://dtemes.blogspot.com/2011/05/secure-downloads-with-apach
Try changing the group of your files to the apache or www-data group
and set permissions based on the group, so that you don't have to
grant universal access to the files.
On 6 jul, 02:22, Matt Murphy wrote:
> Threat: So long as you don't have anything that uploads, you'll be OK.
> It's only a p
I was moving a cake app to a new server and got an include error
trying to load bootstrap.ini, looking for a solution I came across
some posts in the group, none helped, so just in case here I post my
solution.
In my case the problem was the open_basedir setting in my php.ini.
The error mesage is
Looks like a really big project to me, I am looking forward to read
more about your experience. I am also revamping an old and messy web
site, compared to yours, a very small one with about 30k unique visits/
month, but quite challenging anyway.
Regards
On 19 jun, 20:27, ibejohn818 wrote:
> I'm
It's a good practice to restrict the permissions of the file, so that
only the users who need access to it can read or write it, for
instance your apache user.
Even if regular users can not access what is behind your web server
it's not enough, seems that other responses assume you are the only
on
Usually I let the counter cache do this kind of things, my apps are
not so famous that I will run into problems due to high CPU ussage,
and nowadays disk space is really cheap. For instance I would create a
'votes' table and model, and store there datetime, user id, ip address
and other details of
I am doing something similar for A/B testing and also to present
different checkout pages to users depending on which country they come
from.
I have several views for the affected actions, named whatever-a.ctp,
whatever-b.ctp and in the controller put a call to $this-
render() at the end of
The classregistry way is the one I have seen as response to similar
questions.
In your example you are talking about races, so probably your Race
model has many cars and also has many spectators, in that case models
A and B are linked throug model C, so you could code something like:
$this->Car->
If you are using the Email component you can specify smtp options to
use a standard smtp account for sending.
On 21 ene, 17:23, WhyNotSmile wrote:
> A client has a site which is hosted on 1and1, and built with CakePHP.
> Emails from the site are being blocked by some providers, due to
> issues wi
I don't remember it by heart, but if you read a bit further the
documentation you will find the periodic updater that allows setting
up a timed interval to periodically update contents using the ajax
helper.
On 19 ene, 01:44, Kh3ops wrote:
> Hi everyone,
>
> I got a tricky thing to set-up.
>
> On
I try to avoid using the session id when integrating with other
systems, instead I use a model id and calculated hash, and then in the
controller that receives the notification verify that the hash is
valid and use the id to find the model.
for instance, if the user id is 123 then I go something l
you can also use curl to get the external page raw contents, but you
are going to have issues with formating and css, an iframe as proposed
by cricket is the easyest option I can think off.
A nicer solution would be rendering the external page into an image
and using that image. It can be scaled t
Agree, it looks more like you need to CHOWN
On 13 ene, 07:16, Amit Badkas wrote:
> Hi,
>
> The app/tmp directory should be recursively writable by the web server if
> PHP is installed as a module (for example, with Apache) otherwise (for
> example, with IIS) should be recursively writable by the
using bindNode does not have any effect on the aros table for me
neither (cake 1.3.6) and user registers are still created, but i have
realized that it has an impact in some of the acl lookup queries:
With bindNode:
SELECT `Aro`.`id`, `Aro`.`parent_id`, `Aro`.`model`,
`Aro`.`foreign_key`, `Aro`.`
Without looking at your code nor knowing more about your environment I
guess it will not be easy to help you.
Are you sure the code in your login action is being executed? (if
using auth check the autoRedirect variable)
On 12 dic, 16:37, Rishi wrote:
> Does anyone have any idea of what is going
It looks great, but isn't cakephp version 1.2.1 a bit outdated? I
would love to see a Windows and Linux version
On 10 dic, 18:36, cake-learner wrote:
> I was looking for something like this and share with you guys
>
> http://www.youtube.com/watch?v=JOOhSQqANQs
Check out the new CakePHP Questio
As an alternative to the webservice you can also use the apache api
version. The geoip_country version works quite well.
On 14 nov, 22:15, euromark wrote:
> for the country you can use
> RequestHandlerComponent::getClientIP()
> in combination with sth
> likehttp://planetcakephp.org/aggregator/i
just playing by ear here, but are you certain that your database field
is defined with the right type and length to hold the data you are
trying to put in?
David
On 13 nov, 03:35, laduree wrote:
> So, after trying everything I could think of, I baked a new project
> with as fewer code as possibl
Off topic - I am not really fond of selects, as you can only see the
selected option and you have to open it to see other possible
values.If the number of options per select is just 5 have you
considered using groups of radio buttons? If I understood you
correctly your form could be solved with 9 r
Thats another option, and by doing that you don't have to touch the
core code, I will take a look at it before upgrading to 1.3.5...
On 24 oct, 14:23, odd wrote:
> dtemes schrieb:
>
> > I tryed with a custom save handler, but then i moved to database
> > driver sessions,
I tryed with a custom save handler, but then i moved to database
driver sessions, so finally I decided to touch the cake core code
and set session.cookie_secure to 0, I am not really fond of this kind
of solutions and would prefer a way to set it up from a config file
without having to change the
Thanks for sharing!
check the link to the source code, it's not working for me. I have not
seen the code, but you mention that you have just copy and pasted the
fixtures code into your CakeWebTestCaseWithFixtures class. Instead of
doing that you can instantiate a CakeTestCase inside your class and
what backend are you using for your sessions? I had similar issues
while working with database stored sessions, but using cake or php
sessions works fine.
On 12 oct, 20:52, cricket wrote:
> On Tue, Oct 12, 2010 at 9:19 AM, 浪漫様 wrote:
> > no, i'm on HTTP only : )
> > and the sessions works fine,
Have you evaluated putting your app on the cloud? amazon EC2 would be
a good option if you want to start small and scale as needed
On 21 sep, 20:03, andres amaya diaz wrote:
> I am going to setup a dedicated server for a cakephp app, and i want
> to know any good tips about the configuration.
> -
Try disallowing access to index.php in your robots.txt file, and also
submit a sitemap to google with your seo friendly urls.
Regards
On 19 sep, 17:36, pastomano wrote:
> Hello,
>
> Using Google Webmaster tools I spotted something that causes another
> problem called duplicated content.
> With m
that is a big session size indeed. if you are using sessions to cache
some user data my suggestion would be to use a proper cache engine
like memcached or apc. File io is one of the bottlenecks that can make
scaling harder in the future but as many others say, scaling is
something to look at when y
I had some issues while deploying a site to a production server
becouse I also copied the cache files from the test server, if this is
the case for you you might try deleting the cache files from the app/
tmp/cache folder and subfolders or set debug to 1 or 2 for a while in
the production server.
I would not use cascade delete on sender_id, once a mail is in your
box it's yours and it can contain important information that should
not be "stolen" from you even if the user that sent it is not there
any more.
On 5 jul, 20:52, cricket wrote:
> On Mon, Jul 5, 2010 at 10:17 AM, duderion wrote:
bump, seems that nobody is having issues with sessions stored in
database?
On 18 jun, 09:44, dtemes wrote:
> More information about the issue, since the database session uses a
> model to handle the reading/writing I inserted some lines to log data
> in model.php beforeSave function. T
ought it could be a cahce issue, but with caching
disabled I get the same wrong results.
regards
On 18 jun, 00:10, dtemes wrote:
> I have a strange issue with sessions while using database to store
> them, in some cases the session data is not being updated after a
> $this->Session-&g
I have a strange issue with sessions while using database to store
them, in some cases the session data is not being updated after a
$this->Session->write.
I put some $this-log() calls in the cake_sessions.php library file and
the write function returns true but a mysql query shows the old value.
Depending on how precise your information should be you can add a
number_of_posts field to your users table and update the count
periodically, you can also keep the field updated with database
triggers, or create an action to run the update query from cakephp
admin pages on demand.
That's just ano
I think you have a typo:
var $actAs = array('Containable');
should be
var $actsAs = array('Containable');
you forgot the 's'
On 6 jun, 21:09, Christopher Hanson wrote:
> hey, i tried the following
>
>
> class Invoice extends AppModel
> {
>
> var $name = 'Invoice';
> var $actAs =
Hi All, I am testing cake 1.3 in a new application I am building and I
have a weird behaviour: No flash messages are shown in the login page.
I am using Auth and ACL, and the session component and helpers are
already in my app_controller.
Seems like a new session is created everytime the user hits
52 matches
Mail list logo