T
T
Turik-us2014-10-27 22:57:15
CakePHP
Turik-us, 2014-10-27 22:57:15

How to count cookies in a model, CakePHP?

How to count cookie inside model?
doing so

$cookie = new CookieComponent();
$cookie->name = 'klastr';
$cookie->path = '/';
$org = $cookie->read('Organization');

errors:
992fe66f8f.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2014-10-28
@mannaro

1) When creating a CookieComponent, the first argument must be the ComponentCollection instance .
2) Just information, not an error, but: collection variable not found in file ... on line 172.
3) see 1, Component only .
4) see 2, on line 177

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question