Friday, April 15, 2011

Re: Cake não exibe minha view.

Do you have debug on?

app/config/core.php:
Configure::write('debug', 2);

2011/4/15 Uriel Juliatti <uriel.juliattivalle@gmail.com>:
> Fala pessoal, beleza?
>
> Estou iniciando com o Cake e estou passando por dificuldades.
>
> Instalei, tudo ocorre perfeitamente, mas na hora que construo meu
> primeiro teste com MVC ele dá erro.
>
> Eu estou fazendo isso: http://localhost/cake/posts/hello_world e
> retorna um erro:
>
> "Not Found
>
> The requested URL /cake/posts/hello_world was not found on this
> server."
>
> Aqui está a minha estrutura:
>
> Model post.php:
>
> <?php
>  class Post extends AppModel
>  {
>        var $name = "Post";
>  }
> ?>
>
> post_controller.php:
>
> <?php
>  class PostsController extends AppController
>  {
>          var $name = "Posts";
>          // Ação que corresponde a view hello_world.ctp
>
>          function hello_world()
>          {
>
>          }
>  }
> ?>
>
> View posts/hello_world.ctp:
>
> <h2>Hello world!</h2>
>
>
> Eu desconfio que seja algo no core.php, pois a primeira vez que
> instalei o cake, a index.php não estava renderizando o CSS, portanto
> troquei uma linha no core.php assim:
>
> Configure::write('App.baseUrl', env('SCRIPT_NAME'));
>
> Não sei porque não consigo exibir as views, alguém já teve esse
> problema?
>
> Abraço à todos!
>
> Att,
>
> Uriel.
>
> --
> 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
> cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate