SOLVED: removing the ? at the end of the controller solved the
problem. Weird.
On Nov 27, 7:30 pm, ava avon...@gmx.net wrote:
@euromark
how is the test case set up? Well, I call it several times by clicking
on the link in the view. I don't know if this answers your
question...
Anyway, I
Hi
I'm struggling with sessions in cakephp 2.0.3.
In this testcase the counter should be incremented with each click on
the link. The counter always remains 1.
// CONTROLLER
?php
class Test01sController extends AppController {
public $components = array('Session');
function
you can simplify the condition to
if ($scounter = $this-Session-read('scounter')) {}
but besides that
how is the test case set up?
because it is possible that it resets itself after each run
therefore the session would always be emptied afterwards...
On 27 Nov., 11:38, ava avon...@gmx.net
@euromark
how is the test case set up? Well, I call it several times by clicking
on the link in the view. I don't know if this answers your
question...
Anyway, I tried to get a Session ID, but this doesn't return a value:
function testsession() {
if ($scounter =