Bump your debug up to 2 in core.php. I suspect the 404 you're seeing
is due to debug being at 0. There's likely an error in there
somewhere.

On Fri, Apr 24, 2009 at 8:19 AM, forrestgump <vikhya...@gmail.com> wrote:
>
> hey guys,
>  I ran into a problem with the model and table naming conventions....
>
> I have the following:
>
> 1)model: department.php :-
> <?php
> class Department extends AppModel
> {
>
>  var $displayField = 'department';
>      var $useTable = false;
> }
> ?>
>
> 2)contoller: deparments_conrtoller.php :-
> <?php
> class DepartmentsController extends AppController {
>   function index()
>   {
>       $name = 'Department';
>   }
> }
> ?>
>
> 3)View folder: departments and index.php:-
>  TEST!!!
>
> here is the problem when i view the page (appname)/deparments i get
> TEST!!! as expected.....i created a table called "departments" with
> fields id,department....and i commented the line var $useTable =
> false; in deparment model.....now i get an error which says:
>
> Not Found
>
> Error: The requested address '/departments' was not found on this
> server.
>
> Can someone tell me what iam doing wrong im guessing it is in my
> naming conventions...can someone correct me?
> will appreciate any help.
>
> Regards,
> Forrestgump
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to