4:13 PM
To: Cake PHP
Subject: Re: Installation Problem -- Need Help!!![Scanned]
Yes, the file is in the cake/app/controllers/ dir.
Here is the code for the posts_controller.php:
class PostsController extends AppController
{
var $name = 'Posts';
function index()
{
$t
Yes, the file is in the cake/app/controllers/ dir.
Here is the code for the posts_controller.php:
class PostsController extends AppController
{
var $name = 'Posts';
function index()
{
$this->set('posts', $this->Post->findAll());
}
function view($id = null)
{
I could be wrong, but it sounds like cake is having trouble finding
your posts_controller.php. I'm assuming that it's in cake/app/
controllers/posts_controller.php? The class should be class
PostsController extends AppController.
Is that what you have? It might help if you could put your code
It's the default structure that comes directly out of the cake box. I
never changed it.
Is it what you need?
Thanks a lot!
On Mar 7, 1:40 pm, "hydra12" <[EMAIL PROTECTED]> wrote:
> What is your current directory structure? That would help in
> diagnosing your problem.
>
> On Mar 7, 12:06 pm, "So
What is your current directory structure? That would help in
diagnosing your problem.
On Mar 7, 12:06 pm, "Somewhere" <[EMAIL PROTECTED]> wrote:
> Yes, thank you for the reply! I have succesfully installed Cake now.
> I followed the online example of Blog and created the DB and the code.
> But w
Yes, thank you for the reply! I have succesfully installed Cake now.
I followed the online example of Blog and created the DB and the code.
But when I tried to connect to it, I got this fatal error:
Fatal error: Class 'PostsController' not found in /usr/local/apache2/
htdocs/cake/cake/dispatcher.
You are going to have to read the installation instructions again all
the way through as well as the manual on www.cakephp.org
On Mar 7, 7:46 am, "Somewhere" <[EMAIL PROTECTED]> wrote:
> Thank you, guys, for your help!
> I just changed it to the dev installation and it works as it is.
> But when
Thank you, guys, for your help!
I just changed it to the dev installation and it works as it is.
But when I opened the default page in a browser, it said:
"Your database configuration file is not present."
Do you know what it refers to?
Thanks a lot!
S.
On Mar 6, 8:51 pm, "hydra12" <[EMAIL PRO
I don't know what your setup is like, but I explained to someone else
how I do my alternative setup here:
http://groups.google.com/group/cake-php/browse_thread/thread/8f96dbb2bc3a9557/bd341672e9029bd8#bd341672e9029bd8
I have a cake folder and an app folder inside my server's document
root (htdocs
I uploaded my bootstrap and core.php to the files section of this
group:
http://groups.google.com/group/cake-php/files?hl=en
The only thing I have changed in core.php was the DEBUG and the
CAKE_SESSION_SAVE' parts.
Change define('CAKE_SESSION_SAVE', 'database'); to
define('CAKE_SESSION_SAVE', 'p
I just installed the CakePHP on the Apache 2.0 with PHP 5. I used the
Alternative installation on the CakePHP manual.
However, when I tried to connect to the default page on a web browser,
I got this error message:
"Warning: require(config/core.php) [function.require]: failed to open
stream: No s
11 matches
Mail list logo