Hi Esconsult1,

Only guessing ;)

The reason you are getting an error saing that "adword/index" doesn't
exist, is because you have specified that the name of your controller
to be "adword". This isn't following the conventions (nothing wrong
with that in principle). If you have:

/app/controllers/adword*s*_controller.php
   class adword*s*Controller ...
      var $name "Adword*s*";
      var $uses "Adword";
      ... etc.

/app/views/adword*s*/index.thtml

when you access the URL /adwords/index (after removing the stars only
after noting where the plurals are), you won't get an error referring
to /views/adword.

check http://wiki.cakephp.org/#cake_conventions for more info.

Cheers,

AD7six
NOTE: I don't think it's a good idea to change the variable $name to be
anything other than the correctly capitalized text of the controller
name. In fact I'd go as far as to say it's a very bad idea. Using your
own e.g. MyWierdController -> $name = "MyWierd", the main purpose for
that variable seems to be to get around PHP4 not being able to cope
with capitalization of class names. To change the 'default' model used
that would be the var $uses. More of that on the wiki too ;)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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