Forget about this post, fellas.

On Apr 15, 3:36 am, Uriel Juliatti <uriel.juliattiva...@gmail.com>
wrote:
> 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_worlde
> 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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to