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,
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 controller
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
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
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
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
Thank you Miles, this is what I want.
On Dec 6, 8:11 pm, Ma'moon phpir...@gmail.com 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, Dec 6, 2010 at 7:58 AM, pang y...@tagroup.se wrote
caching engine, can you provide a case for this usage?
On Mon, Dec 6, 2010 at 7:58 AM, pang y...@tagroup.se wrote:
Ok,now I know opcode is enabled automatically when apc is on.
I guess why cakephp has a apc section is because: apc also provide
the ability to cache variables, so if we
...@gmail.com 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, 2010 at 3:07 PM, pang y...@tagroup.se wrote:
Thank you for your answer. I know
it
running, the other caching engines need to be configured in core.php, AFAIK!
On Mon, Dec 6, 2010 at 5:51 AM, pang y...@tagroup.se wrote:
you mean I don't even have to enable apc in core config file ??
On Dec 3, 7:32 pm, Miles J mileswjohn...@gmail.com wrote:
Install APC and memcache
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
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 y...@tagroup.se wrote:
CakePHP offer both APC and Memcached cache engine for cache purpose,
but each of them has different preferred usage,
I am wondering
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
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