@euromark
http://book.cakephp.org/2.0/en/controllers.html#controller-attributes


The $name attribute *SHOULD* be set to the name of the controller. Usually
this is just the plural form of the primary model the controller uses. This
property is not required, but saves CakePHP from inflecting it:

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/7 euromark <[email protected]>

> @ersin:
> its 2.0
> so there should be no $name property at all
>
>
> On 7 Jan., 16:53, Ersin Demirtas <[email protected]> wrote:
> > Also check the variable $name = it should be $name = 'orders';
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Jan 7, 2012 at 3:01 PM, Tilen Majerle <[email protected]>
> wrote:
> > > show us your controller code
> >
> > > it should be
> >
> > > class OrdersController extends AppController {}
> > > --
> > > Lep pozdrav, Tilen Majerle
> > >http://majerle.eu
> >
> > > 2012/1/7 [email protected] <
> [email protected]>
> >
> > >> Dear all,
> >
> > >> I try to set up a CakePHP application along the Blog Tutorial
> > >> (http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html
> )
> >
> > >> I've created a model called Order in app/Model/Order.php and a
> Controller
> > >> called Orders in app/Controller/OrdersController.php but I allways
> get the
> > >> Error: "Error: OrdersController could not be found."
> >
> > >> What do I miss or messed up?
> >
> > >> Thanks in advanced,
> >
> > >> Christian Schulte
> >
> > >> --
> > >> Our newest site for the community: CakePHP Video Tutorials
> > >>http://tv.cakephp.org
> > >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > >> others with their CakePHP related questions.
> >
> > >> To unsubscribe from this group, send email to
> > >> [email protected] For more options, visit this
> group
> > >> athttp://groups.google.com/group/cake-php
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group at
> > >http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to