Foro: CakePHP

Topic: Error en el ejemplo del taller de cake php


Error en el ejemplo del taller de cake php cibat wrote:
Que tal.
   He seguido taller de cake php, y según yo, hago todo tal cual como se dijo, tengo mi directorio root de apache en /var/www/cake/app/webroot , y si entro a http://localhost me sale:
El clásico mensaje que aparece cuando queremos entrar a una página que no existe.
Lo que aún no entiendo, es como genera o redirige cake php esa petición, ya que en el directorio app/webroot/ no hay ningún directorio "news" al que se refiere la url (http://127.0.0.1/news/listing).
   He seguido taller de cake php, y según yo, hago todo tal cual como se dijo, tengo mi directorio root de apache en /var/www/cake/app/webroot , y si entro a http://localhost me sale:
"Your database configuration file is present.
Cake is able to connect to the database."
He creado los archivos:
app/controllers/news_controller.php
app/models/news.php
app/views/news/listing.thtml
Pero al momento de querer entrar a:
http://127.0.0.1/news/listing
 Me aparece: The requested URL /news/listing was not found on this server.El clásico mensaje que aparece cuando queremos entrar a una página que no existe.
Lo que aún no entiendo, es como genera o redirige cake php esa petición, ya que en el directorio app/webroot/ no hay ningún directorio "news" al que se refiere la url (http://127.0.0.1/news/listing).
Gracias por la ayuda y saludos!
2007-07-13 11:04:31-05
mod_rewrite aarkerio wrote:
Creo que el problema es que no has cargado el módulo mod_rewrite de apache2:
$sudo a2enmod rewrite
$sudo /etc/init.d/apache2 force-reload
Este es un archivo de configuración para CakePHP:
http://www.mononeurona.org/files/scripts/karamelo.site.txt
fijate en las secciones:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all "mod_rewrite is a module for Apache which allows you to rewrite and manipulate URLs which are sent to your webserver. It has many uses from the simple to the complex. Here we'll introduce the basics of enabling and using the module."
Cheers!
$sudo a2enmod rewrite
$sudo /etc/init.d/apache2 force-reload
Este es un archivo de configuración para CakePHP:
http://www.mononeurona.org/files/scripts/karamelo.site.txt
fijate en las secciones:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all "mod_rewrite is a module for Apache which allows you to rewrite and manipulate URLs which are sent to your webserver. It has many uses from the simple to the complex. Here we'll introduce the basics of enabling and using the module."
Cheers!
2007-07-14 20:35:31-05











