Cookies

2010-08-24 Thread voocake
Hey,

i have a big problem with cookies.

i set

$this->Cookie->name = 'cookiename';
$this->Cookie->time = '9600';
$this->Cookie->path = '/';
$this->Cookie->domain = '.domain.com';
$this->Cookie->secure = false;
$this->Cookie->key = 'sdfsdfsd';

$this->Cookie->write('User.name','Mike');
$this->Cookie->write('User.role', 'tester');
$this->Cookie->write('User.income', '2');

debug($this->Cookie->read('User.role'));

in the before filter in the controller. Everything is fine.
But when i read the cookie in the same controller within an method i
don't get 'Mike' or 'tester'. Instead i get strange symbols like
"I� #3 ". everytime i hit F5- refresh, the symbols change. With the
cookieview addon for firefox i can see that the cookie value don't
change. It only happens when i encrypt the cookies!

Any idea? Please help me!

Thank you, greetings mike!


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


missing controller on redirect

2010-03-09 Thread voocake
hey,

i have this problem:

I check if if the request comes from a proxy, if it's so i add the
Services to the app base, because the proxy is www.xyz.com/services/ourservice

if (isset($_SERVER['HTTP__ID'])) {
Configure::write('App.base', '/Services/');
}

everything works smoothly, except when a controller calls a redirect
function! in this case i get an error message that the Services
Controller was not found and i should create it.

Any idead how to fix this problem? i'm really stuck here!

Thanks for your help & time.
Greetings
Mike

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Proxy and link helper

2010-03-04 Thread voocake
Hey Walther,

The Searchengine rankings are not the problem, because proxy is only
reachable for a limited customer base.

i made some progress defining the a function in the bootstrap.php:

if (isset($_SERVER['PROXY_ID'])) {
Configure::write('App.base', '/xyz/');
 ...
} else {

}

everything works fine now, except a redirect is called. then i get an
error message that the controller xyz is not defined!

any ideas?

On 4 Mrz., 07:38, Walther  wrote:
> Bad bad bad idea.
>
> You will destroy your search engine rankings because the search
> engines will see identical sites/content at two different locations.
> Rather set your partners website to do a permanent redirect (301 I
> think?) to your actually address.
>
> On Mar 3, 1:48 pm, voocake  wrote:
>
> > some additional comment:
>
> > the link helper works, but he links towww.yyy.com/controller/action/
> > and not towww.yyy.com/xyz/contoller/action
>
> > thx for your help!
> > mike

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Proxy and link helper

2010-03-03 Thread voocake
some additional comment:

the link helper works, but he links to www.yyy.com/controller/action/
and not to www.yyy.com/xyz/contoller/action

thx for your help!
mike

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Proxy and link helper

2010-03-02 Thread voocake
Hello

we have our own website, eg www.xyz.com.

now we have a partner who routes our site trough his proxy
"www.yyy.com/xyz/"

the problem is that because of the "/xyz/" no link, css helper,...
works. I know when the user comes through the proxy because of the
header information

Is there a easy way to add the "/xyz/" to all links, forms,
helpers,?

Thx for your help!

Greetings!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Help with cakephp conform sql query

2009-04-24 Thread voocake

Hello,

I have nice SQL query which makes most of the work for me, but i have
no plan how to convert it to a cakephp conform condition array. I'm
aware of the possibility to make a custom query, but i'm trying to
avoid this.

May someone can help me with this?

Here is the statement:

SELECT DATE_FORMAT(created, '%d.%m.%Y') AS sdate, COUNT(savedtime) AS
saved , COUNT(encashedtime) AS encashed FROM users_books WHERE
voucher_id IN (8, 124, 120)
AND created <= NOW()
AND DATE_SUB(NOW(), INTERVAL 30 DAY)
GROUP BY sdate
ORDER BY sdate


Thx
voocake

--~--~-~--~~~---~--~~
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 group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---