0 answers
0 votes
CakePHP 2.0 Session->destroy() doesn't destroy data
Hey guys, in my controller, I have the following method:
login(){
$this->Session->write('role', 'admin');
}
logout(){
$this->Session->destroy();
}
Apparently, I can still read the session data, $this-Session-('role'), after destroying it....
2 answers
0 votes
Cake is NOT able to connect to database
i cannot for the life of me figure out how to solve this issue - my database.php file is - var $default = array(
'driver' = 'sqlite',
'persistent' = false,
'host' = 'lewis.priv.inet',
'login' = 'mylogin',
'password' = 'mypassword',
'database' =...
2 answers
0 votes
Database connection "Mysql" is missing
Hi.
I'm trying to create a model with the command line "cake bake model".
When I select the default configuration, I get this:
"Error: Database connection "Mysql" is missing, or could not be created".
Do you know what that can be ?
On my default...
1 answer
0 votes
Which version to use?
Anyone have thoughts on whether or not it's a good idea to go ahead and start using the most recent release of CAKE? I'm a developer new to php, and I'm wondering which version to use as I start learning about the framework. Thanks!
0 answers
0 votes
Dynamic front-end in cake
Hello, so I'm new and I wonder what is the best way to implement rich-media interfaces in cake. Lets say I have "request" table which is connected to another "request items" table through one-to-many relationship; this is a situation where i...
0 answers
0 votes
image link with hyper link
hi all
i need to show the image with hyper link, but my image is not in img folder,
my image path is webroot/files.
so how can i show the image path with hyper link.
thanks in advance
0 answers
0 votes
"Html->link" cause CPU spikes
Hi, the "Html-link" cause httpd.exe CPU spikes (9 - 20% of 1.6Ghz Core2Duo for a second) and takes atleast 20ms to process each time I use it. This is an issue both on 1.3 & 2.0. I found the time taken from webgrind.
Even on the sample baked blog...
1 answer
0 votes
Google Search and CakePHP error
I have submitted my website to search engines (Google, Bing and Yahoo) in the description I keep getting this error:
"Warning (2): Cannot modify header information - headers already sent by (output started at...
1 answer
0 votes
cakephp afterfind kills the total paginate count
I am using a containable paginate operation and afterFind() for removing empty arrays in my records BUT that makes a problem in pagination,
this is the after find function
function afterFind($results, $primary=false) {
if... 0 answers
0 votes
Form file Upload, accept no file or certain extensions
Hi,
I have a form with a couple of file upload fields, I would like to ether allow no file or restrict the file type if there is one to a image type of file, this:
var $validate = array(
'image' => array(
'imageRule-1' =>... How does CakePHP Questions work?
CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!
After you ask your question you just need to wait until you have got some answers and pick the correct answer.
Other users might help you by finding the right answer by voting and giving comments.







