Re: FindAll and Recursive

2008-01-08 Thread [EMAIL PROTECTED]
I show my real application. Model A: Class Informazione . var $belongsTo = array('InformazioneTipo' = ); var $hasAndBelongsToMany = array('InformazioneCampo' = ); In model A I change the fields

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

2008-01-08 Thread Martin Schapendonk
On 1/7/08, beetlejuice [EMAIL PROTECTED] wrote: the data i wrote into the session when user successfully logged in are no longer available in the next page. do you have an idea ? CAKE_SECURITY set to high also means that Cake checks the referer and drops the session if it believes it is

Re: finAll with recursive associated models

2008-01-08 Thread seb
francky06l wrote: You can use the fields option in the relation declaration (you can also use bindModel prior to your findAll), or use the Bindable behavior from Mariano in the Bakery. hth Thanks Franck, I will investigate this way ! --~--~-~--~~~---~--~~

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

2008-01-08 Thread Davide
Martin Schapendonk wrote: CAKE_SECURITY set to high also means that Cake checks the referer and drops the session if it believes it is being tampered with. I have the same problem but from 1.1.18 to 1.1.19. In 1.1.18 everything works out well, in 1.1.19 not. In the authentication procedure I

Re: Formhelper error

2008-01-08 Thread ProFire
Just an update the the problem I'm encountering: I have quite a number tables in my database. The only time I'm encountering this error (So far) is when I use the formhelper on this specific table called accounts. I have other tables like tasks and I have used formhelper with it. No such error

Re: Error when trying to bake any Controller

2008-01-08 Thread Er Galvão Abbott
Three useful aditional informations: 1) I use strict error reporting with my php, so I get these messages when bake starts: Strict Standards: Redefining already defined constructor for class Bake in /home/galvao/webroot/php-counter/code/cake/scripts/bake.php on line 200 Strict Standards:

Re: Can't Get Associations to Work

2008-01-08 Thread grigri
Unfortunately I don't know of any resources which go into depth with associations (and comparing to complex real-world relationships and not just Post-Tags, etc) Depends on what you mean by resources. Tutorials, no, not really. But specific examples? Look through the cake tests, or download

Parameter recursive not used in funtion Model::find?

2008-01-08 Thread J. Eckert
Hi there, In the newest release of Cake 1.2 (pre-beta) the 4th parameter of the funtion Model::find ($recursive) doesn't seem to work anymore. Is this a bug or a feature? Doesn't make any sense for me, cause it's in the signature and no warning is generated. Recursive find's only work if you

Re: othAuth looses session - upgrading to new 1.2.0.6311 (2008)

2008-01-08 Thread hoerbuchhoerer
solved similar issue with using database sessions, carefully search for session_start() in vendor files, remove them all. hoerer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: Pagination doesn't workwith firefox

2008-01-08 Thread mcphisto
Well I've just seen that it works if in the controller i have var $components = array('Pagination'); but it doesn't if i include the requesthandler why? var $components = array('RequestHandler','Pagination'); On 8 Gen, 12:45, mcphisto [EMAIL PROTECTED] wrote: Why the pagination helper

Pagination doesn't workwith firefox

2008-01-08 Thread mcphisto
Why the pagination helper works with IE7 and not with firefox? Did someone of you experienced this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Problem with theme's

2008-01-08 Thread Mech7
I have a login function in app_controler, where i redirect the user to the login form when it is not logged in.. $this-redirect('/users/login'); Only it can't find the theme: Error: The view for UsersController::login() was not found. Error: Confirm you have created the file:

Re: Parameter recursive not used in funtion Model::find?

2008-01-08 Thread dizz
Take a look here http://api.cakephp.org/1.2/class_model.html#e60758f27fa8486a063b8cc424bad741 In the example you can see that you set the recursive level in the conditions array Eg: find('all', array( 'conditions' = array('name' = 'mariano.iglesias'), 'fields' = array('name', 'email'), 'order'

Re: Integration between product in .NET and product in Cake PHP

2008-01-08 Thread Dr. Tarique Sani
Depends on what you want to integrate - you can develop RESTful web services into a CakePHP app very easily which your .NET application can then consume HTH Tarique On Jan 8, 2008 6:14 PM, Lakshmi S [EMAIL PROTECTED] wrote: Hi, We have a portal built around the Cake PHP framework using

Re: Pagination doesn't workwith firefox

2008-01-08 Thread Aevum Decessus
Interesting, I got it to work just fine. The biggest difference I can see in code, is you put Pagination in the components array, while I called it directly, which is how it is done in this tutorial (http:// bakery.cakephp.org/articles/view/basic-pagination-overview-3). Here's my code btw.

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,

Integration between product in .NET and product in Cake PHP

2008-01-08 Thread Lakshmi S
Hi, We have a portal built around the Cake PHP framework using PHP. We also have a product which uses .NET. We need to integrate the two products. Would anyone be able to guide / help /support as to how we could go about this? Any help in this regard would be appreciated. Thanks in advance.

Re: Change layouts depending on conditions?

2008-01-08 Thread Aevum Decessus
Thanks for the advice, it works now. The only change that I had to make is to make it beforeFilter(), instead of afterFilter() in order to make it work now. On Jan 7, 9:01 pm, Robby Anderson [EMAIL PROTECTED] wrote: I think it should be pretty simple. In your app_controller, you could probably

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

2008-01-08 Thread Davide
Martin Schapendonk wrote: On 1/8/08, Davide 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? Yes, I did. I just

Re: upgrading procedure?

2008-01-08 Thread Baz
No worries man. On Jan 7, 2008 10:56 PM, Gwoo [EMAIL PROTECTED] wrote: Baz, I admit I was too quick to respond after seeing the response by cakeKicks. I misinterpreted what you said and I must be a little over sensitive to the issue. We try extremely hard, not only to produce an easy to

Re: Formhelper error

2008-01-08 Thread Chris Hartjes
On Jan 6, 2008 10:10 PM, ProFire [EMAIL PROTECTED] wrote: In my view, this is how I use my form: echo $form-input(Account.username, array()); Why are you passing an empty array as the second parameter? It's not needed. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from

Re: Parameter recursive not used in funtion Model::find?

2008-01-08 Thread J. Eckert
Thanks, i haven't seen the change in the documentation. But the old notation also works according to the documentation... Ok, i'll write a ticket on that issue. Thanks dizz! On 8 Jan., 13:55, dizz [EMAIL PROTECTED] wrote: Take a look

Re: How to set action to the another controller

2008-01-08 Thread miikka
I'm bit confused how to implement this. For example: Lets say I'm logged in as User1. Username is stored into the cookie. I would like to reroute /my/profile as /users/profile/User1. How can I use cookie data for the route? In other words I would like to create a dynamic route. btw. is this

Re: How to set action to the another controller

2008-01-08 Thread Adam Royle
Could do something like this: // routes.php Router::connect('/my/profile', array('controller' = 'users', 'action' = 'cookieProfile')); // UsersController function cookieProfile(){ $username = $this-Cookie-read('username'); if ($username){

Paginate obtained array of another controller

2008-01-08 Thread dandreta
Hi! I have 2 tables: projects and persons. In my ProjectsController I have a function that shows in the view a list of all the persons of the database. For it I have this: $this - set ('persons', $this - requestAction ('/persons/getpersons ')); And in PersonsController: Function getpersons ()

Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
Normally I don't post questions to the list, just snarky responses. I will expect no less in return. :) I'm working on an admin area for my simulation baseball league site. I have a Game model that contains games. Now, I've used the views created by bake and need to do some funky pagination

Re: Need some help with advanced pagination

2008-01-08 Thread rtconner
If nothing else you can manually write some queries and implement them by overwriting the pageinate and paginateCount methods in the model. I can't reallly think of a better way to do this at the moment. On Jan 8, 9:55 am, Chris Hartjes [EMAIL PROTECTED] wrote: Normally I don't post questions

Re: Error message

2008-01-08 Thread Siebren Bakker
what exactly do you mean by display 404 error? 404 is reserved for someone trying to access something that does not exist. You can edit your 404 error page in /app/view/errors/error404.thtml(1.1) or error404.ctp(1.2). if you just want a way to call the 404 error page from within a controller,

Re: Paginate obtained array of another controller

2008-01-08 Thread Siebren Bakker
Ok, this is actually fairly simple. In the controller, you need to declare the paginator variable with this: var $paginate = array('limit' = 10, 'page' = 1); this tells the controller that you want to use the paginate helper, with a default page-length of 10 values (change at will). then you

Error message

2008-01-08 Thread dezpo
What is the simplest sollution to display 404 page error? --~--~-~--~~~---~--~~ 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

Re: Pagination doesn't workwith firefox

2008-01-08 Thread mcphisto
yes, maybe the 1.2 is different. The problem is that I've 13 controllers and the same for the views...I would try to not repeat anytime it. On 8 Gen, 14:11, Aevum Decessus [EMAIL PROTECTED] wrote: Interesting, I got it to work just fine. The biggest difference I can see in code, is you put

Re: Error message

2008-01-08 Thread Dr. Tarique Sani
If you want to display 404 instead of missing models/views/controllers just set the debug level to 0 HTH Tarique On Jan 8, 2008 8:20 PM, dezpo [EMAIL PROTECTED] wrote: What is the simplest sollution to display 404 page error? --

Re: Need some help with advanced pagination

2008-01-08 Thread Robby Anderson
I don't know how sophisticated you plan for your sim to be, but the inferred series method can fall down if you use a schedule generator that creates a more real-world schedule where series can be spread over two weeks, or where there are make up games (that could get wrapped into a series if it

Problem with import in test fixtures?

2008-01-08 Thread Robby Anderson
I'm having a difficult time setting up a test fixture to import from another table or model. It silently dies, and I've isolated it to where it dies. In the cake_test_fixture.php file, when a model is created to import from (line 69 or 75 in the beta 6311 version), the model instantiation bit

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 12:31 PM, Robby Anderson [EMAIL PROTECTED] wrote: I don't know how sophisticated you plan for your sim to be, but the inferred series method can fall down if you use a schedule generator that creates a more real-world schedule where series can be spread over two weeks, or

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
Well, without much thinking I would say that your series are given by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then pagination is quite straight forward (I will try to write some code sample, if you wish). If you use a row per serie, then adding an ajax call triggered by click on the

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 1:29 PM, francky06l [EMAIL PROTECTED] wrote: Hi Chris, I am not sure to get what you want to do .. Do you want to show all series Meaning all games following each other or (what I undestood), having a 2 parts screen when above displays all series (basically all weeks), (you

Re: Need some help with advanced pagination

2008-01-08 Thread Robby Anderson
Baseball data is fun stuff. :) If thats all you want, can't you make a method in the Game model that does a custom query, then use that as your pagination data? Something like this (very rough): function getSeriesData ( $params ) { $seriesQuery = ' select distinct week,

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 1:41 PM, francky06l [EMAIL PROTECTED] wrote: Well, without much thinking I would say that your series are given by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then pagination is quite straight forward (I will try to write some code sample, if you wish). If you use a

Environment settings

2008-01-08 Thread Alfredo
Hi, I need to handle multiple environments (dev, qa, production...) and for each I need a set of values, diffrent api keys, base urls resource locations etc. Is there a way to define an array for each environment and have an global environment_config array that can be accessed from

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
Hi Chris, I am not sure to get what you want to do .. Do you want to show all series Meaning all games following each other or (what I undestood), having a 2 parts screen when above displays all series (basically all weeks), (you can paginate them) and then a second part that will show (with

Re: Environment settings

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 1:39 PM, Alfredo [EMAIL PROTECTED] wrote: Hi, I need to handle multiple environments (dev, qa, production...) and for each I need a set of values, diffrent api keys, base urls resource locations etc. Is there a way to define an array for each environment and have an global

Re: Problem with import in test fixtures?

2008-01-08 Thread Robby Anderson
Found it. At some point it appears the testing framework loads my app_controller - which has requiresSecure() in my its beforeFilter(), which was calling my blackhole callback, which was redirecting to a main page - but since there was already output (from my testing framework), it couldn't

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 2:06 PM, francky06l [EMAIL PROTECTED] wrote: I suppose your model is Game, and your action isscore: function score() { $pageparam = array('controller' = 'Games', 'action' = $this-action); $this-paginate['Game'] =

Re: form validation

2008-01-08 Thread Robby Anderson
Well, francky had it right. I just riffed on that. :) I think it should be as simple as added your Survey model the $uses property in the controller declaration. var $uses = array('Questions','Survey'); Then use it in the controller as necessary: $this-Survey-doSomething();

Re: Environment settings

2008-01-08 Thread rtconner
Yeah if anyone find's a great way to do this .. lemme know. For me, I just toss some if statements into my config that recongnize the url and pick a db config based on it. Not the best idea.. I know. I think *best* case scenario is to not commit the database config file. And have deploy scripts

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
I suppose your model is Game, and your action isscore: function score() { $pageparam = array('controller' = 'Games', 'action' = $this-action); $this-paginate['Game'] = array('fields' = array('DISTINCT week'),

Re: form validation

2008-01-08 Thread chrisdNH
Robby, you are exactly right. :-) I needed to step back and look at how I designed the controllers. I've combined them - I now have the save() functionality in the Questions controller. But now I'm trying to save to the Surveys table from the Questions controller. Can I use var $useTable =

Re: Change layouts depending on conditions?

2008-01-08 Thread francky06l
Being picky, logical place (to me) is beforeRender() :) On Jan 8, 2:24 pm, Aevum Decessus [EMAIL PROTECTED] wrote: Thanks for the advice, it works now. The only change that I had to make is to make it beforeFilter(), instead of afterFilter() in order to make it work now. On Jan 7, 9:01 pm,

Re: form validation

2008-01-08 Thread francky06l
I do not know if I was right, also if I am right saying that a survey is basically questions .. So maybe a only one model and one controller could handle a survey ? On Jan 8, 8:19 pm, Robby Anderson [EMAIL PROTECTED] wrote: Well, francky had it right. I just riffed on that. :) I think it

Re: Environment settings

2008-01-08 Thread Langdon Stevenson
Personally I use an Ant build task (through Eclipse) to deploy my applications to dev, test, and production. It keeps the deployment specific info out of the code and all in one place. It also means that I can easily add a new target or change a target with little effort. Ant is pretty

Re: Paginate obtained array of another controller

2008-01-08 Thread francky06l
Siebren solution will for sure work if getperson() is called with a pagination link, but looking at first post it seems coming through requestAction. Because it's a part of projectController (probably for a view displaying the project and the persons attached to it), it seems the solution is to

Re: Problem with import in test fixtures?

2008-01-08 Thread Robby Anderson
Well, it looks like I have another problem now with import now. I keep getting a missing table error. For some reason the code is prepended 'test_suite' to my source model or table when its trying to import it, so I'm getting Error: Database table test_suite_usr for model User was not found. -

Re: Problem with import in test fixtures?

2008-01-08 Thread Robby Anderson
Here is my code. I followed the Bakery instructions to a T: user_test_fixture.php (in tests\fixtures) class UserTestFixture extends CakeTestFixture { var $name = 'UserTest'; var $import = 'User'; } user.test.php (in tests\cases\models): App::import('Model', array('User')); class

Re: upgrading procedure?

2008-01-08 Thread Gwoo
Robby, Good explanation and advice. Another option is use the bootstrap.php. In there, you can point to your model/view/controller directories which could be located anywhere in your file system. This would all you to separate them out completely from the main app directory. When you need to

Re: Problem with import in test fixtures?

2008-01-08 Thread Gwoo
Robby, Come to IRC, its much more fun than having to send 4 messages in 2hrs with no response. #cakephp, irc.freenode.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

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

2008-01-08 Thread beetlejuice
hello all, FYI : i'm using cakephp 1.1.19.6305 and was about to commit suicide because of session handling. some actions from a controller without model were doing great with session, others from another controller (with model) couldn't handle session (passing vars from one to another). i

Session being dropped

2008-01-08 Thread Beno
The session are sometimes dropped i change the security level from high to medium it helps but sometime it happens that the session are always droped until thes cake session cookie is deleted or expired, also the session are dropped after redirect cake version 1.1.19.x also in cake version

Re: Problem with import in test fixtures?

2008-01-08 Thread Robby Anderson
Woo hoo! Got it to work. For anyone interested, I believe it had to do with the custom table in my Model declaration (var $useTable). To solve my issue, I added two lines to my Test Model declaration: class UserTest extends User { var $name = 'UserTest'; var $useDbConfig =

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

2008-01-08 Thread [EMAIL PROTECTED]
While I haven't come across this specific problem yet, I have had session problems with 1.1 and if you search the forum you'll find several other people that have as well. If you turn down your security to medium or low in /app/config/core.php it should help with this. Also, 1.2 seems to be a lot

Re: Advantage of using cakephp?

2008-01-08 Thread [EMAIL PROTECTED]
Seriously, any editor is pretty fine to develop it. Just be comfortable with the editor you are using. VIM FTW! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: upgrading procedure?

2008-01-08 Thread majna
It would be nice to have dir structure like this: /app /controllers /models /views /webroot/ sometimes it is hard to backup only source etc. On Jan 8, 10:50 pm, Gwoo [EMAIL PROTECTED] wrote: Robby, Good explanation and advice. Another option is use the bootstrap.php. In

Re: Session being dropped

2008-01-08 Thread [EMAIL PROTECTED]
This sounds exactly like what I was seeing a href=http:// groups.google.com/group/cake-php/browse_thread/thread/a693d39c621591de/ 73c0121fc3f02306?lnk=gstq=dorks#73c0121fc3f02306here/a. Short answer, there's a bug in CakePHP that causes this to happen. The problem is fixed in 1.2 so you can go

Re: Can't Get Associations to Work

2008-01-08 Thread [EMAIL PROTECTED]
it looks like you have the right idea, but you're leaving out a lot of info in your associations here is an example of what you need: class Customer extends AppModel { var $name = 'Customer'; var $hasMany= array( 'Employee' = array(

Re: linking two tables to another table

2008-01-08 Thread [EMAIL PROTECTED]
I'm assuming you're baking this project, make sure that your subject table includes a foreign key titled person_id. Then when you bake, the associations should be created automatically On Jan 7, 10:16 pm, jvandal [EMAIL PROTECTED] wrote: Hi, I have a person table. I have a event table and a

Apache crashes and redirect doesn't work.

2008-01-08 Thread [EMAIL PROTECTED]
Hi, I have xampp installed and cake 1.2. But somehow my Apache server keeps crashing. Even on scaffold sites. $this-redirect(...) is also not working. I get the following message: Warning: Cannot modify header information - headers already sent by (output started at [path to my controller]) ...

Re: upgrading procedure?

2008-01-08 Thread Gwoo
you could easily do that too. --~--~-~--~~~---~--~~ 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

Re: Postgresql and the Cake core tests

2008-01-08 Thread twinkletoes
Ok, thanks, looking forward to see it implemented :-) On Jan 8, 7:38 am, nate [EMAIL PROTECTED] wrote: I'm currently working on the schema generation for Postgres, which was heretofore non-existent.  Once that's fully implemented, this will be a non-issue, and your tests should run fine. On

cakephp 1.2 Translations

2008-01-08 Thread [EMAIL PROTECTED]
Iam using the translation behaviour in cakephp, the translations work fine but I would like to know how to set my default language. What I mean is I have a Model Page and I did my translations on the i18n table, when I change the language to english it translates the content but when I try to set

Re: upgrading procedure?

2008-01-08 Thread Adam Royle
This is how I setup my sites... all you need to do is edit two lines in /webroot/index.php Here is an example of what I replace them with... //define('ROOT', dirname(dirname(dirname(__FILE__; define('ROOT', dirname(dirname(__FILE__))); //define('APP_DIR',

Auth component and testAction()

2008-01-08 Thread Robby Anderson
Interesting find tonight while playing with the test suite. If you use testAction() and have the Auth component loading (in the controller or in your App Controller), and don't explicitly Auth-allow() the action set in testAction(), then testAction() will fail silenty as it redirects to the

New to Cake, questions about a document building website

2008-01-08 Thread [EMAIL PROTECTED]
Hi folks, I'm fairly experienced with PHP and Mysql but just started learning about Cakephp tonight. I'm interested in building a (simple, at least at first) web page that: 1. Asks the user several questions, contains checkboxes, etc (using ajax forms) 2. based on their answer criteria, builds a

Re: Apache crashes and redirect doesn't work.

2008-01-08 Thread francky06l
The crashes can be due to Zend optimizer. Comment the lines relative to Zend optimizer (if any) in php.ini amd give a try. Concerning the UTF-8, make sure you save your file without BOM hth On Jan 9, 12:24 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have xampp installed and cake 1.2.

How could i display this array on view?

2008-01-08 Thread Louie Miranda
http://bin.cakephp.org/view/1034462467 How could i display the Orderlists20 array on view? print_r(); -- result Array ( [Catalog] = Array ( [id] = 1154 [timestamp] = 2008-01-08 23:22:15 [date_created] = 2008-01-08 23:22:15

How to implement Export to CSV link in cake-php

2008-01-08 Thread bhushan A
Hi all, Can anybody help me how to write code for Export to CSV link? Or there is any provision in cake php for that.? please reply me on [EMAIL PROTECTED] bhushan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: How to implement Export to CSV link in cake-php

2008-01-08 Thread Adam Royle
http://bakery.cakephp.org/articles/view/csv-helper-php5 latest version of class is here: http://ifunk.net/cakephp/helpers/csv.php.txt On Jan 9, 4:32 pm, bhushan A [EMAIL PROTECTED] wrote: Hi all, Can anybody help me how to write code for Export to CSV link? Or there is any provision in

Re: How could i display this array on view?

2008-01-08 Thread Louie Miranda
Working... ?php //print_r($catalog['Orderlists20']); ? ?php foreach($catalog['Orderlists20'] as $catOrderlists): ? I should use $catalog, since catalog is set on my controller. $this-set('catalog', $this-Catalog-read()); On Jan 9, 2008 2:27 PM, Louie Miranda [EMAIL PROTECTED] wrote:

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