Sunday, December 30, 2012

Re: Not able to view anything on the page

From the folder structure it appears you're using version 1.3. If you're new to Cake you should download the 2.2.x version.

On Sat, Dec 29, 2012 at 7:20 PM, Harish Geeth <harish.upad@gmail.com> wrote:
Hi,

I am new to cakePHP and downloaded the framework and started playing with it. I am using NetBeans to edit PHP files. I am able to cinfigure the CakePHP as expected. I get successful messages when I try to hit the webserver. But for some reason when I try to run the application after adding Model and Controller, I don't see the results as exected.


 
Folder structure is 


CONTROLLER

<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of blog_controller
 *
 * @author harishupadhyayula
 */
class BlogsController extends AppController {
    
    var $name = 'Blog';
    var $uses = array('Blog');
    
    
    var $scaffold;
}

?>

MODEL

<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of blog
 *
 * @author harishupadhyayula
 */
class Blog extends AppModel {
    var $name = 'Blog';
}

?>
I modified my dabase.php files as well. I am not sure where it's going wrong and I tried all day to figure this out but i had not luck.

Any help is appreciated.


--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: