I followed the tutorial and defined $test config array in
database.php, set test database to xxx_test
if I don't create this database xxx_test in my mysql database, it
looks like test suite will read data from $default configuration to
build up fixture;
if I create xxx_test database in mysql, str
Hi,
I met a very odd problem, I create a new controller which request user
session to access. the session name is called "User".
When I have ?> at the end of the controller file, I can't read session
data, $this->Session->read('User') is empty,
But when I delete the trail signs ?> in the contro
As title,
in development mode, I set security level to medium, it works fine.
But when I deploy to live server , which sets security level to high,
then session is expired very soon even user is active on the site, (a
few minutes), I even set a long timeout for session like below, but it
still ha
I have a Model User, and another Model Friend. in the Friend Model, I
have 2 foreign keys user_id and friend_id, both points to the same
User Model. in this design, all the operations on Friend Model
doesn't work, find, delete.
The error is like this:
SQL Error: 1066: Not unique table/alias:
when I try to write session by using $this->Session->write('User',
$someone['User']);
php report this error: PHP Fatal error: Allowed memory size of 67108864
bytes exhausted when writing session.
but it only happens for some users, not all.
How could be the reason, I am pretty annoyed by th
When doing unit test using SimpleTest, there is a story that:
In the action function, we check if the call is made by ajax call by
utilizing RequestHandler, if the request is not ajax call, exit
function directly.
In this case, how could we test this function with SimpleTest? in
other word, how c
es" using APC or any
> other caching engine, can you provide a case for this usage?
>
>
>
>
>
>
>
> On Mon, Dec 6, 2010 at 7:58 AM, pang wrote:
> > Ok,now I know opcode is enabled automatically when apc is on.
>
> > I guess why cakephp has a apc s
Thank you Miles, this is what I want.
On Dec 6, 8:11 pm, "Ma'moon" wrote:
> I am curious as on why you would need to "cache variables" using APC or any
> other caching engine, can you provide a case for this usage?
>
>
>
>
>
>
>
> On Mon,
lly need any code changes to have it
> running, the other caching engines need to be configured in core.php, AFAIK!
>
>
>
>
>
>
>
> On Mon, Dec 6, 2010 at 5:51 AM, pang wrote:
> > you mean I don't even have to enable apc in core config file ??
>
> > On D
04 am, "Ma'moon" wrote:
>
>
>
>
>
>
>
> > All configuration items that you need to edit takes place in "core.php",
> > right there you will have the ability to enable, disable, and/or configure
> > your caching engines/levels
>
> > On Fri, Dec 3,
look here to configure the desired
> cache engines that you would like to use in your CakePHP
> applicationhttp://book.cakephp.org/view/156/Caching
>
>
>
>
>
>
>
> On Fri, Dec 3, 2010 at 12:16 PM, pang wrote:
> > CakePHP offer both APC and Memcached cache engine
CakePHP offer both APC and Memcached cache engine for cache purpose,
but each of them has different preferred usage,
I am wondering is it possible to config Cake to work with both of
them? and how can It be achieved?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
I met a strange problem while using gmail as SMTP server.
What I want to do is to send bulk email with my domain email
serv...@tagroup.se,
I used cakephp Email component to handle this , I followed exact
configuration as mentioned in links below (CakePHP official tutorial
site), but the email can
I follow the configuration in the cakhphp tutorial
http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP,
to set smtp options like follows:
/* SMTP Options */
$this->Email->smtpOptions = array(
'port'=>'465',
'timeout'=>'30',
'host' => 'ssl://smtp.gmail.com',
14 matches
Mail list logo