AuthComponent logs out users randomly?

2009-08-01 Thread Marcel
he site loads). This is really annoying :( Security.level is set to "high", but it also happens at "low". I'm not using any ACL stuff. Maybe someone has any tip? Marcel --~--~-~--~~~---~--~~ You received this message because you are

Re: empty pages on prod server

2009-06-23 Thread Marcel
I'm also having this sometimes and I couldn't figure it out. Are you using Auth Component and or Security Component? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: transactions + redirect doesn't work!

2009-06-22 Thread Marcel
Mateo San Román wrote: > Thank you for you quick answer. > Any way to do that operation in a standard way? Depending on what you like to do put the SQL in a model. I think/hope that cake does not make new connections for each model method call ;) --~--~-~--~~~---~--

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Marcel
Steve wrote: > Well, when I activate this line in core.php: > > Configure::write('Cache.disable', true); > > Everything works like expected.. > > But then you have no caching at all... See: https://trac.cakephp.org/ticket/6034 --~--~-~--~~~---~--~~ You receive

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Marcel
Looks like that this is also not working within nocache, like the FormHelper... :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Re: CakePHP XSS protection?

2009-06-17 Thread Marcel
ur data, which will convert any html tags to their > entities so they will no longer be interpreted by the browser as html. > > Cheers, > Adam Thanks! Should this also be used while saving data? Or only in the views? Marcel --~--~-~--~~~---~--~

CakePHP XSS protection?

2009-06-17 Thread Marcel
's saved as it is. So the alert box is shown when e.g. I just do a findAll() and print it out on a table. Is there an easy way to solve this issue? Do I have to handle this in beforeSave? Or can it be done in $validate? Marcel --~--~-~--~~~---~--~~ You receive

Auth Component, white page when cookies disabled

2009-06-09 Thread Marcel
Hi, When I disable Cookies I get a white page after logging into my website (using Auth Component). Is there a way view an error page instead of just a white page? Marcel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Value from record

2009-04-12 Thread Marcel
ntroller gets the user info by: > $this->set('users', $this->paginate()); > > Thanks, > > Dave Why HABTM? Shouldn't it be sth like: User hasOne State, State belongsTo User? It should be enough to just have a state_id at your user table. Marcel --~--~--

Re: Auth: become a user

2009-04-12 Thread Marcel
relations and stuff. bally.z...@gmail.com wrote: > Log in? What does "become a User" mean? > > Is Admin extended from User? If not, you can always make > AdminsController::uses = array('Admin', 'User') and you can do all the > CRUD you want. > > O

Auth: become a user

2009-04-12 Thread Marcel
Hi, I've got a basic Authentication with the Auth-Component. The Auth Model is called 'user'. I'd like to implement an admin-area where an admin can become an user. How can this easily be done? Cheers Marcel --~--~-~--~~~---~--~~ You r

Re: send POST with redirect()

2009-03-12 Thread Marcel
;redirect("http://someurl";); at http://someurl there then should be set $_POST['foo'] Marcel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

send POST with redirect()

2009-03-12 Thread Marcel
Hi, I need to send post variables to a website but I'd like to to this without a form the user sees. The user should just click on a link and I'll do the redirect and like to pass through the POST information. Is this somehow possible? Chee

Re: What do you develop in (ide, text editor, etc.)?

2009-03-01 Thread Marcel
re than a small file explorer and tabs? ;) ). cheers Marcel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Howto secure a form / posted data from tampering?

2008-04-08 Thread Marcel
Hello The problem is that a model has some fields that the user may never edit. I don't show them in the /edit view so they don't get posted (by default). But manualy adding some of those private fields will result in illegal save. I've noticed the secure method in the api of the FormHelper to ge

efficient allow / deny check for pages

2008-03-31 Thread Marcel
Hello! I have a model named Menu which surprisingly stores menuitems for my websites (using tree behavior). There are also models voor Users and Groups. The menu creates the Aco's and the User and Group models create the corresponding Aro's. What I want is to get all menuitems that a user has ac

Re: ACO::setParent adds an empty record

2008-03-28 Thread Marcel
t;Aco"]["parent_id"] = $otherAco["Aco"]["id"]; $this->Menu->Aco->save($thisAco); On 28 mrt, 12:21, Marcel <[EMAIL PROTECTED]> wrote: > Helllo! > > I can't get setParent on an aco to work using the console: > > Menu: > id | t

ACO::setParent adds an empty record

2008-03-28 Thread Marcel
Helllo! I can't get setParent on an aco to work using the console: Menu: id | title 1 | websites 2 |mysite.nl 3 | admin 5 | news 4 | www Aco: id | parent_id | model | foreign_key 17 | null | Menu | 2 18 | 17 | Menu | 3 19 | 17 | Menu |

Re: Hide php code in /app from FTP

2008-03-25 Thread Marcel
le to specify the access rights on a file system > basis. I use it my self and it is very useful =D > > On Mar 25, 10:58 am, Marcel <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I was wondering what the best way would be for hiding the code in / > > app? > &

Hide php code in /app from FTP

2008-03-25 Thread Marcel
Hello, I was wondering what the best way would be for hiding the code in / app? The situation: My company makes websites with a CMS behind it. Now customers often ask if they could get access to the FTP account so they can add other folders there so they are availble for there customers online.

Re: Application Design Issue

2008-03-10 Thread Marcel
Have a look at this, it did help me to get rid of all the almost- simular controller files: http://groups.google.com/group/cake-php/browse_thread/thread/7638b690ae0545ff On 10 mrt, 15:57, sleepy1038 <[EMAIL PROTECTED]> wrote: > I think I may try implementing some logic in AppController. I will l

Re: Creating a generic controller

2008-03-10 Thread Marcel
;id = $id; > if ($this->{$this->modelClass}->save($this->data)) { > // blablabla as normal > } > } > else { > $this->data = $this->{$this->modelClass}->findById($id); > } > } > > } > > So calling /ne

Creating a generic controller

2008-03-10 Thread Marcel
Hello Is there a way to create a generic crud controller shared by some models? But there's a catch: I don't know before hand what the models will be. What I would like to have is something like this: /news => dispatch to generic_controller.php /news/edit/1 => dispatch to generic_controller.php

Re: MVC Architecture: model <--> controller <--> view

2008-03-10 Thread Marcel
; > Model<->View connection, even so it looks like that. As you can see by > > > the URL (first param) it calls the "news"controllerand the "view" > > > action - not any specific model > > > > HTH > > > > On Mon, Mar 3, 2

MVC Architecture: model <--> controller <--> view

2008-03-03 Thread Marcel
Hi! I've been doing some research about MVC implementations in different frameworks. Now in allmost every book I have on my desk it says something like 'the view in turn, asks the model for some data to display it'. In cake I have noticed (if I'm correct) the controller is asking data from the mo