P.s. Please try cake bake and learned the code first using your database
Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT
powered by Sinyal Kuat INDOSAT
From: spradhan@solutionstreet.com
Sender: cake-php@googlegroups.com
Date: Wed, 8 May 2013 09:55:22 -0700 (PDT)
To: <cake-php@googlegroups.com>
ReplyTo: cake-php@googlegroups.com
Subject: Unable to run application using scaffolding technique
I am really new to the php and cake php.I try to implement the scaffolding technique but get some error.
Below is my code :
Models:
C:\wamp\www\cakephp-2_3_4\app\Model\Question.php
<?php
class Question extends AppModel {
public $hasMany=array('QuestionResponse' => array('dependent' => true));
}
?>
C:\wamp\www\cakephp-2_3_4\app\Model\QuestionRespons.php
<?php
class QuestionResponse extends AppModel {
public $belongsTo='Question'
}
?>
Controller:
C:\wamp\www\cakephp-2_3_4\app\Controller\TrainingController.php
<?php
class TrainingController extends AppController {
var $scaffold;
}
?>
I had already create the database and also do url rewriting as mention in cakephp website.
But problem is when i try to access page using this below url :
http://localhost:8080/cakephp-2_3_4/training
The page is blank and get Http 404 error of page not found.
So can anybody suggest me what I am missing here.
FYI:I am using apache server, mysql and cake php 2.3.4 version
Thanks
Sabin
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment