6 answers
2 votes
What do you think of my Validation tool?
I got frustrated with long complicated validation rules in my models, and the limited functionality of Bake's validation generation, so I made my own tool. If I get enough support I will clean it up, make it pretty, and probably get it its own...
5 answers
0 votes
Fatal error: Class 'DATABASE_CONFIG' not found
Hi,
I've downloaded cake 1.2.6, installed it and then I've started baking. but then the database configuration cannot be configured. I had this problem a few times. at the end cames always the message
Fatal error: Class 'DATABASE_CONFIG' not found...
4 answers
0 votes
Get user id inside a model
I'm moving some of my find code inside models.
Previously in my controller I had
$this->Book->Review->find('first', array(
'conditions' => array(
'Review.book_id' => $id,
'Review.user_id' => $this->Auth->user('id')
)
));
so in my Review...
4 answers
0 votes
find if data is new (and not for update)
How can I find if the data inserted for a model is a new record and not an updated record?
I want something like that
function beforesave()
{
if (isnew)
$this->data[model][field]=$some
}
4 answers
0 votes
setFlash not working
Hi, I'm having a problem with the setFlash. I have this piece of code included in my layout...
<?php
if ($session->check('Message.flash')) {
$session->flash();
}
?>
However none of my messages are showing up, any ideas?
4 answers
0 votes
how to create simple admin panel in cakephp
hello guys i have been trying to create a simple admin panel without acl
just auth and cake admin router..
been trying to google and find the solution however none really supports what i want
something like /login and admin/products/add for basic...
4 answers
0 votes
Blank Page on Login
I'm not sure if this is a validation issue, redirect, or something else. If a user enters the wrong login data, then he/she is taken to a blank white page with no output regardless of debug level. I've been beating my head against the wall and...
4 answers
0 votes
Sessions Not Working
I just started using cakephp 1.3 for my latest application; however sessions don't seem to be working.
example:
$this->Session->write('myvar','abcdefghijklmnopqrstuvwxyz');
$myvar = $this->Session->read('myvar');
after executing this code $myvar...
3 answers
0 votes
How do you configure a cake app to run in a Subdir?
I just created a new cake app in a subdir in our company's web server.
My problem is I don't know how to configure the web app to run on a Subdir.
Can you please tell me how to do it?
3 answers
0 votes
How can i add additional conditions to the ON clause with Linkable?
I'm using the Linkable behavior (http://blog.rafaelbandeira3.com/2008/11/16/linkable-behavior-taking-it-easy-in-your-db/) to generate joined queries.
I have the following find operation:
$episodes =... 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.
