Have you tried creating a "tasks" folder under your view directory and put your index.ctp file in there??
On Sep 23, 10:30 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > Do you get an error message when you try to open that in your browser? > Did you check your log files for any errors? > > On Sep 23, 1:31 pm, akhilesh <[EMAIL PROTECTED]> wrote: > > >http://localhost/myfirstcake/ > > this is my cake folder name > > ------------------------------------------ > > > i have set in httpd.conf both > > > Apache mod_rewrite module is switched on > > AllowOverride is set to all > > > temp dir is writable > > --------------------------------------------- > > table sturucture is > > > CREATE TABLE tasks ( > > id int(10) unsigned NOT NULL auto_increment, > > title varchar(255) NOT NULL, > > done tinyint(1) default NULL, > > created datetime default NULL, > > modified datetime default NULL, > > PRIMARY KEY (id) > > ); > > > database.php.default. Rename to database.php > > > my database configuration file is present and Cake is able to connect > > to the database > > --------------------------------------------- > > > my cake module file is CakeTooDoo/app/models/task.php, write the > > following code: > > > <?php > > class Task extends AppModel { > > var $name = 'Task';} > > > ?> > > --------------------------------------------- > > > Controller file is CakeTooDoo/app/controllers/tasks_controller.php, > > with the following code: > > > <?php > > class TasksController extends AppController { > > var $name = 'Tasks'; > > function index() { > > $this->set('tasks', $this->Task->find('all'));} > > } > > > ?> > > > --------------------------------------------- > > > CakeTooDoo/app/views/index.ctp > > > <h2>Tasks</h2> > > <?php if(empty($tasks)): ?> > > There are no tasks in this list > > <?php else: ?> > > <table> > > <tr> > > <th>Title</th> > > <th>Status</th> > > <th>Created</th> > > <th>Modified</th> > > <th>Actions</th> > > </tr> > > <?php foreach ($tasks as $task): ?> > > <tr> > > <td> > > <?php echo $task['Task']['title'] ?> > > </td> > > <td> > > <?php > > if($task['Task']['done']) echo "Done"; > > else echo "Pending"; > > ?> > > </td> > > <td> > > <?php echo $task['Task']['created'] ?> > > </td> > > <td> > > <?php echo $task['Task']['modified'] ?> > > </td> > > <td> > > <!-- actions on tasks will be added later --> > > </td> > > </tr> > > <?php endforeach; ?> > > </table> > > <?php endif; ?> > > > --------------------------------------------- > > > i am trying to run with this link but it is not > > runhttp://localhost/CakeTooDoo/tasks/index > > > i am new for this frame work > > can any one tell me what is the problem in this cake application --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---