this is because of some filename coventions...model class is UrlComentario
and model filename is url_comentario.php


class filename is url_comentarios_controller.php and classname is
UrlComentariosController


url is in your case: maybesubdirectory/url_comentarios/index

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



2011/6/14 Rodrigo Alviani <[email protected]>

> My Model:
> urlComentario.php
> <?php
> class UrlComentario extends AppModel
> {
>        var $name = 'UrlComentario';
>        var $useTable = 'url_comentario';
>        var $primaryKey = 'id_comentario';
> }
> ?>
>
> My Controller:
> urlComentarios_controller.php
> <?php
> class UrlComentariosController extends AppController {
>        var $name = 'UrlComentarios';
>        var $belongsTo =  array("Urls");
>
>        function index() {
>                $this->set('UrlComentarios',
> $this->UrlComentarios->find('all'));
>        }
> }
> ?>
>
> And when I access my_app/urlComentario the following error occurs:
> ===================================================
> Missing Controller
>
> Error: UrlComentarioController could not be found.
>
> Error: Create the class UrlComentarioController below in file: app/
> controllers/url_comentario_controller.php
>
> <?php
> class UrlComentarioController extends AppController {
>
>        var $name = 'UrlComentario';
> }
> ?>
> ===================================================
>
> And if I build this controller suggested (even with this filename) the
> error that occurs is as follows:
> ===================================================
> Missing Database Table
>
> Error: Database table url_comentarios for model UrlComentario was not
> found.
> ===================================================
>
> I even using the $useTable correct.
>
> Can anyone help?
>
> --
> 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