Re: Dealing with Image Uploads

2012-12-30 Thread Dave Maharaj
That is my current approach.
The image is added from the news / product add form. I suppose on the edit
page I could show all related images with option to delete or add more.
Also a js add input to add more file inputs so they can upload multiple
images as needed could be an option.

On Sun, Dec 30, 2012 at 6:50 PM, Sven Pype  wrote:

> My solution alows me to have a form that creates the record andere
> directly attach the picture to it. Thats how it works with me.
>
> I ad a word to the dictionary and in the same form I can select and upload
> a image for the word to illustrate it.
>
> Not sure if this is what you're looking for.
>
> Advantage+ schreef:
>
>
> I am using Miles Johnson's Plugin for the uploads which works great now
> that I have it working. 
>
> Problem is this client wants to upload images for products which might may
> many alternate images but from a user stand point it seems wrong to create
> the product record, then go to Image Manager to upload photos. Same with
> news section. Images for news and other places thruout the site.
>
> ** **
>
> Just need a solution and hoping to find some ideas or suggestions on how
> to handle that.
>
> ** **
>
> Thanks all and happy new years to all J
>
> ** **
>
> Dave
>
> ** **
>
> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On
> Behalf Of *SvenP
> *Sent:* Sunday, December 30, 2012 10:37 AM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: Dealing with Image Uploads
>
> ** **
>
> Hi,
>
> ** **
>
> I have this in one of my apps: if I remember correctly I used:
> http://github.com/josegonzalez/upload/zipball/master
>
> ** **
>
> It's well explained in the readme section. You can set different
> thumbnailsizes:
>
> ** **
>
> Code in the model:
>
> ** **
>
> public $actsAs = array(
>
> 'Upload.Upload' => array(
>
> 'foto'=> array(
>
> 'pathMethod' => 'flat',
>
> 'path' => '{ROOT}webroot{DS}files{DS}',
>
> 'thumbnailSizes' => array(
>
> 'xvga' => '1024x768',
>
> 'vga' => '640x480',
>
> 'thumb' => '80x80'
>
> )),
>
> 'audio1'=> array(
>
> 'pathMethod' => 'flat',
>
> 'path' => '{ROOT}webroot{DS}files{DS}'
>
> ),
>
> 'audio2'=> array(
>
> 'pathMethod' => 'flat',
>
> 'path' => '{ROOT}webroot{DS}files{DS}' 
>
> ),
> ),
> ); 
>
>
> On Friday, December 28, 2012 6:44:38 AM UTC+1, advantage+ wrote:
>
> I need to figure out the best way from the backed the admin can upload
> images, the tricky part is the site has all different kinds of images
> (small product thumbs, large version, they want to be able to upload images
> into the jquery slider on the home page, images for a new sections,
> featured product on index page to name a few of the different sizes)
>
>  
>
> And there is no way to know if they are even going to upload the right
> dimensions for each type of image.
>
>  
>
> What is the best way to do this? I cannot seem to think of anything having
> a table for each_image how it relates to that page, that seems like the
> opposite of what should be done.
>
>  
>
> Any idea would be great.
>
>  
>
> Thanks, Dave
>
> --
> 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




RE: Dealing with Image Uploads

2012-12-30 Thread Sven Pype
My solution alows me to have a form that creates the record andere directly 
attach the picture to it. Thats how it works with me.

I ad a word to the dictionary and in the same form I can select and upload a 
image for the word to illustrate it.

Not sure if this is what you're looking for.

Advantage+ schreef:

>
>
>I am using Miles Johnson's Plugin for the uploads which works great now that I 
>have it working. 
>
>Problem is this client wants to upload images for products which might may 
>many alternate images but from a user stand point it seems wrong to create the 
>product record, then go to Image Manager to upload photos. Same with news 
>section. Images for news and other places thruout the site.
>
> 
>
>Just need a solution and hoping to find some ideas or suggestions on how to 
>handle that.
>
> 
>
>Thanks all and happy new years to all J
>
> 
>
>Dave
>
> 
>
>From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf 
>Of SvenP
>Sent: Sunday, December 30, 2012 10:37 AM
>To: cake-php@googlegroups.com
>Subject: Re: Dealing with Image Uploads
>
> 
>
>Hi,
>
> 
>
>I have this in one of my apps: if I remember correctly I used: 
>http://github.com/josegonzalez/upload/zipball/master
>
> 
>
>It's well explained in the readme section. You can set different 
>thumbnailsizes:
>
> 
>
>Code in the model:
>
> 
>
>public $actsAs = array(
>
>        'Upload.Upload' => array(
>
>            'foto'=> array(
>
>            'pathMethod' => 'flat',
>
>        'path' => '{ROOT}webroot{DS}files{DS}',
>
>            'thumbnailSizes' => array(
>
>                    'xvga' => '1024x768',
>
>                    'vga' => '640x480',
>
>                    'thumb' => '80x80'
>
>                )),
>
>                'audio1'=> array(
>
>            'pathMethod' => 'flat',
>
>        'path' => '{ROOT}webroot{DS}files{DS}'
>
>                ),
>
>                'audio2'=> array(
>
>            'pathMethod' => 'flat',
>
>        'path' => '{ROOT}webroot{DS}files{DS}'     
>
>                ),
>            ),
>    ); 
>
>
>On Friday, December 28, 2012 6:44:38 AM UTC+1, advantage+ wrote:
>
>I need to figure out the best way from the backed the admin can upload images, 
>the tricky part is the site has all different kinds of images (small product 
>thumbs, large version, they want to be able to upload images into the jquery 
>slider on the home page, images for a new sections, featured product on index 
>page to name a few of the different sizes)
>
> 
>
>And there is no way to know if they are even going to upload the right 
>dimensions for each type of image.
>
> 
>
>What is the best way to do this? I cannot seem to think of anything having a 
>table for each_image how it relates to that page, that seems like the opposite 
>of what should be done.
>
> 
>
>Any idea would be great.
>
> 
>
>Thanks, Dave
>
>-- 
>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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




RE: Dealing with Image Uploads

2012-12-30 Thread Advantage+
I am using Miles Johnson's Plugin for the uploads which works great now that
I have it working. 

Problem is this client wants to upload images for products which might may
many alternate images but from a user stand point it seems wrong to create
the product record, then go to Image Manager to upload photos. Same with
news section. Images for news and other places thruout the site.

 

Just need a solution and hoping to find some ideas or suggestions on how to
handle that.

 

Thanks all and happy new years to all J

 

Dave

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of SvenP
Sent: Sunday, December 30, 2012 10:37 AM
To: cake-php@googlegroups.com
Subject: Re: Dealing with Image Uploads

 

Hi,

 

I have this in one of my apps: if I remember correctly I used:
http://github.com/josegonzalez/upload/zipball/master

 

It's well explained in the readme section. You can set different
thumbnailsizes:

 

Code in the model:

 

public $actsAs = array(

'Upload.Upload' => array(

'foto'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}',

'thumbnailSizes' => array(

'xvga' => '1024x768',

'vga' => '640x480',

'thumb' => '80x80'

)),

'audio1'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}'

),

'audio2'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}' 

),
),
); 


On Friday, December 28, 2012 6:44:38 AM UTC+1, advantage+ wrote:

I need to figure out the best way from the backed the admin can upload
images, the tricky part is the site has all different kinds of images (small
product thumbs, large version, they want to be able to upload images into
the jquery slider on the home page, images for a new sections, featured
product on index page to name a few of the different sizes)

 

And there is no way to know if they are even going to upload the right
dimensions for each type of image.

 

What is the best way to do this? I cannot seem to think of anything having a
table for each_image how it relates to that page, that seems like the
opposite of what should be done.

 

Any idea would be great.

 

Thanks, Dave

-- 
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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: I dont understand extend view

2012-12-30 Thread cPage


Le dimanche 30 décembre 2012 13:46:35 UTC-5, cPage a écrit :
>
> The example : 
>
> // app/View/Common/view.ctp
> fetch('title'); ?>
> fetch('content'); ?>
>
> 
> Related actions
> 
> fetch('sidebar'); ?>
> 
> 
>
> // app/View/Posts/view.ctp
> $this->extend('/Common/view');
>
> $this->assign('title', $post);
>
> $this->start('sidebar');
> ?>
> 
>  echo $this->Html->link('edit', array(
> 'action' => 'edit',
> $post['Post']['id']
> )); ?>
> 
> end(); ?>
>
> // The remaining content will be available as the 'content' block
> // in the parent view.
> 
> Didn't work ?? I get : 
>

Blocks can only contain strings.
*Error: *An Internal Error Has Occurred. 

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CAKEPHP 2.1.x on Pagodabox | foreach multiple items for each slide (bootstrap carousel)

2012-12-30 Thread SvenP
Yes,

Each ad relates to a sponsor... works perfect.

array(
(int) 0 => array(
'Ad' => array(
'id' => '2',
'sponsor_id' => '0',
'title' => '...',
'body' => '...',
'link' => 'wwwcom'
),
'Sponsor' => array(
'id' => '8',
'name' => ...,
'contact_first_name' => ...,
'contact_name' => ...,
'contact_tel' => ...,
'contact_email' => ...
)
),


On Sunday, December 30, 2012 7:20:54 PM UTC+1, cricket wrote:
>
> die(debug($ads)); 
>
> Are you certain of the array structure? 
>
> On Sat, Dec 29, 2012 at 5:39 PM, SvenP > 
> wrote: 
> > Hi, 
> > 
> > I'm looking for a way to show multiple 'Ads' / slide with a foreach loop 
> > from the db. ( each client has ads tied to them.) 
> > 
> > My code now works great but only shows one ad / slide. 
> > 
> > Thanks for your time! 
> > 
> > Sven 
> > 
> > Code: 
> > ___ 
> > 
> >  
> >  $ad): 
> > if($indexValue == 0){?> 
> >  
> >  > $ad['Ad']['title']?> 
> >  
> >  $ad['Ad']['body']?> > } else { ?> 
> >  
> >  > $ad['Ad']['title']?> 
> >  
> >  
> >
> > 
> > -- 
> > 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...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> > cake-php+u...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




I dont understand extend view

2012-12-30 Thread cPage
The example : 

// app/View/Common/view.ctp
fetch('title'); ?>
fetch('content'); ?>


Related actions

fetch('sidebar'); ?>



// app/View/Posts/view.ctp
$this->extend('/Common/view');

$this->assign('title', $post);

$this->start('sidebar');
?>

Html->link('edit', array(
'action' => 'edit',
$post['Post']['id']
)); ?>

end(); ?>

// The remaining content will be available as the 'content' block
// in the parent view.
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Not able to view anything on the page

2012-12-30 Thread lowpass
>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  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*
>
> 
> /*
>  * 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*
>
> 
> /*
>  * 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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CAKEPHP 2.1.x on Pagodabox | foreach multiple items for each slide (bootstrap carousel)

2012-12-30 Thread lowpass
die(debug($ads));

Are you certain of the array structure?

On Sat, Dec 29, 2012 at 5:39 PM, SvenP  wrote:
> Hi,
>
> I'm looking for a way to show multiple 'Ads' / slide with a foreach loop
> from the db. ( each client has ads tied to them.)
>
> My code now works great but only shows one ad / slide.
>
> Thanks for your time!
>
> Sven
>
> Code:
> ___
>
> 
>  $ad):
> if($indexValue == 0){?>
> 
>  $ad['Ad']['title']?>
> 
>  } else { ?>
> 
>  $ad['Ad']['title']?>
> 
> 
>   
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Submit separably triggered form parts at once

2012-12-30 Thread lowpass
On Sat, Dec 29, 2012 at 5:44 PM, Yousg27  wrote:
>
> The problem is that when I trigger several of the hidden parts I can submit
> them all to the data base at once.

You can, or cannot?

> each of them was triggered at a different
> time and it has its own save button.

When you load the new form elements, don't wrap them in their own form
tags. Just add the elements themselves.

If the elements you're adding are always the same -- that is, they do
not depend on what has already been filled in by the user -- you could
just load them elsewhere on the page and hide them, then move them
inside the form and reveal them. Then you won't need to use AJAX.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Dealing with Image Uploads

2012-12-30 Thread SvenP
Hi,

I have this in one of my apps: if I remember correctly I 
used: http://github.com/josegonzalez/upload/zipball/master

It's well explained in the readme section. You can set different 
thumbnailsizes:

Code in the model:

public $actsAs = array(

'Upload.Upload' => array(

'foto'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}',

'thumbnailSizes' => array(

'xvga' => '1024x768',

'vga' => '640x480',

'thumb' => '80x80'

)),

'audio1'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}'

),

'audio2'=> array(

'pathMethod' => 'flat',

'path' => '{ROOT}webroot{DS}files{DS}' 

),
),
); 

On Friday, December 28, 2012 6:44:38 AM UTC+1, advantage+ wrote:
>
> I need to figure out the best way from the backed the admin can upload 
> images, the tricky part is the site has all different kinds of images 
> (small product thumbs, large version, they want to be able to upload images 
> into the jquery slider on the home page, images for a new sections, 
> featured product on index page to name a few of the different sizes)
>
>  
>
> And there is no way to know if they are even going to upload the right 
> dimensions for each type of image.
>
>  
>
> What is the best way to do this? I cannot seem to think of anything having 
> a table for each_image how it relates to that page, that seems like the 
> opposite of what should be done.
>
>  
>
> Any idea would be great.
>
>  
>
> Thanks, Dave
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Missing Controller Error

2012-12-30 Thread Harish Geeth
Hi,

Did you find out what the problem is ? I am running into same issue. COuld 
you please provide details if you know what the issue is.

Thank you

On Thursday, May 31, 2012 10:13:09 PM UTC-4, Kid Noire wrote:
>
> I've just installed CakePHP and trying to get myself through 
> Andrewperk's blog tutorial but I get this error  after the second 
> video... 
>
> Missing Controller 
> Error: PostsController could not be found. 
> Error: Create the class PostsController below in file: app/Controller/ 
> PostsController.php 
>  class PostsController extends AppController { 
>
> } 
>
> I've tried to Google my way out of this one but don't have the 
> technical expertise to comprehend the suggestions I find.  I'm 
> assuming my routes are a bit f'd up so if anyone could help me I would 
> be greatly appreciative. 
>
>
>
> Sincerely, 
>
> A Noob 
>
>
>  
>
> BTW I'm using XAMPP on a Mac 
>
> Thanks! 
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Not able to view anything on the page

2012-12-30 Thread SvenP
If you want /blog as your default (index) page (http://localhost) you can 
set it in config/routes.php.

-> Router::connect('/', array('controller' => 'blogs', 'action' => 'index'
));

On Sunday, December 30, 2012 1:20:13 AM UTC+1, Harish Geeth 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*
>
> 
> /*
>  * 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*
>
> 
> /*
>  * 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.