Conclucion: Solo me falto activar en el apache rewrite_modulo, espero a alguien le sirba. y gracias por el interes de todos ustedes.
2011/5/18 Luis Saavedra Linares <saavedra...@gmail.com> > una vez mas te pido disculpas, en un ejemplo de google vi que utilizaban > controller y no AppController , y hice el cambio, esto sucedio hoy recien, > ya lo puse como estaba y ya me muestra resultados, soy nuevo en esto yo > programno a pulso php, y no se nada de framework, agradesco mucho tu interes > y de verdad el hecho que me respondas me dio aliento para segir insistiendo, > muchas gracias por tu interes espero en otra ocaciòn, me des una mano en > algùna consulta, mil gracias una vez mas. > > > 2011/5/18 Luis Saavedra Linares <saavedra...@gmail.com> > >> Disculpa hace un momento en tanto intentar intentar me equivoque y estaba >> apuntando a >> http://localhost/cakephp1_3/tests >> y creo que me salia ese error. >> >> >> >> >> Pero esta es la direccion que debo ingresar segun el demo de cake >> >> http://localhost/cakephp1_3/posts >> y este es el mensaje que me lanza >> >> >> *Notice* (8): Undefined property: View::$Session >> [*CORE\cake\libs\view\layouts\default.ctp*, line *43*] >> Code | Context >> >> <div id="content"> <?php echo $this->Session->flash(); ?> >> >> $___viewFn = >> "D:\wamp\www\cakephp1_3\cake\libs\view\layouts\default.ctp" >> $___dataForView = array( >> "posts" => array( >> array(), >> array(), >> array() >> ), >> "content_for_layout" => "<!-- File: /app/views/posts/index.ctp --> >> >> <h1>Blog posts</h1> >> <table> >> <tr> >> <th>Id</th> >> <th>Title</th> >> <th>Created</th> >> </tr> >> >> <!-- Here is where we loop through our $posts array, printing out post >> info --> >> >> <tr> >> <td>1</td> >> <td> >> <a href="/cakephp1_3/posts/view/1">The title</a> >> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> <tr> >> <td>2</td> >> <td> >> <a href="/cakephp1_3/posts/view/2">A title once >> again</a> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> <tr> >> <td>3</td> >> <td> >> <a href="/cakephp1_3/posts/view/3">Title strikes >> back</a> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> >> </table>", >> "scripts_for_layout" => "", >> "title_for_layout" => "Posts", >> "form" => FormHelper >> FormHelper::$helpers = array >> FormHelper::$fieldset = array >> FormHelper::$__options = array >> FormHelper::$fields = array >> FormHelper::$requestType = NULL >> FormHelper::$defaultModel = NULL >> FormHelper::$_inputDefaults = array >> FormHelper::$base = "/cakephp1_3" >> FormHelper::$webroot = "/cakephp1_3/" >> FormHelper::$theme = NULL >> FormHelper::$here = "/cakephp1_3/posts" >> FormHelper::$params = array >> FormHelper::$action = "index" >> FormHelper::$plugin = NULL >> FormHelper::$data = NULL >> FormHelper::$namedArgs = NULL >> FormHelper::$argSeparator = NULL >> FormHelper::$validationErrors = NULL >> FormHelper::$tags = array >> FormHelper::$__tainted = NULL >> FormHelper::$__cleaned = NULL >> FormHelper::$Html = HtmlHelper object, >> "html" => HtmlHelper >> HtmlHelper::$tags = array >> HtmlHelper::$_crumbs = array >> HtmlHelper::$__includedScripts = array >> HtmlHelper::$_scriptBlockOptions = array >> HtmlHelper::$__docTypes = array >> HtmlHelper::$helpers = NULL >> HtmlHelper::$base = "/cakephp1_3" >> HtmlHelper::$webroot = "/cakephp1_3/" >> HtmlHelper::$theme = NULL >> HtmlHelper::$here = "/cakephp1_3/posts" >> HtmlHelper::$params = array >> HtmlHelper::$action = "index" >> HtmlHelper::$plugin = NULL >> HtmlHelper::$data = NULL >> HtmlHelper::$namedArgs = NULL >> HtmlHelper::$argSeparator = NULL >> HtmlHelper::$validationErrors = NULL >> HtmlHelper::$__tainted = NULL >> HtmlHelper::$__cleaned = NULL >> ) >> $loadHelpers = false >> $cached = true >> $loadedHelpers = array() >> $posts = array( >> array( >> "Post" => array() >> ), >> array( >> "Post" => array() >> ), >> array( >> "Post" => array() >> ) >> ) >> $content_for_layout = "<!-- File: /app/views/posts/index.ctp --> >> >> <h1>Blog posts</h1> >> <table> >> <tr> >> <th>Id</th> >> <th>Title</th> >> <th>Created</th> >> </tr> >> >> <!-- Here is where we loop through our $posts array, printing out post >> info --> >> >> <tr> >> <td>1</td> >> <td> >> <a href="/cakephp1_3/posts/view/1">The title</a> >> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> <tr> >> <td>2</td> >> <td> >> <a href="/cakephp1_3/posts/view/2">A title once >> again</a> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> <tr> >> <td>3</td> >> <td> >> <a href="/cakephp1_3/posts/view/3">Title strikes >> back</a> </td> >> <td>2011-04-23 22:11:07</td> >> </tr> >> >> </table>" >> $scripts_for_layout = "" >> $title_for_layout = "Posts" >> $form = FormHelper >> FormHelper::$helpers = array >> FormHelper::$fieldset = array >> FormHelper::$__options = array >> FormHelper::$fields = array >> FormHelper::$requestType = NULL >> FormHelper::$defaultModel = NULL >> FormHelper::$_inputDefaults = array >> FormHelper::$base = "/cakephp1_3" >> FormHelper::$webroot = "/cakephp1_3/" >> FormHelper::$theme = NULL >> FormHelper::$here = "/cakephp1_3/posts" >> FormHelper::$params = array >> FormHelper::$action = "index" >> FormHelper::$plugin = NULL >> FormHelper::$data = NULL >> FormHelper::$namedArgs = NULL >> FormHelper::$argSeparator = NULL >> FormHelper::$validationErrors = NULL >> FormHelper::$tags = array >> FormHelper::$__tainted = NULL >> FormHelper::$__cleaned = NULL >> FormHelper::$Html = HtmlHelper object >> $html = HtmlHelper >> HtmlHelper::$tags = array >> HtmlHelper::$_crumbs = array >> HtmlHelper::$__includedScripts = array >> HtmlHelper::$_scriptBlockOptions = array >> HtmlHelper::$__docTypes = array >> HtmlHelper::$helpers = NULL >> HtmlHelper::$base = "/cakephp1_3" >> HtmlHelper::$webroot = "/cakephp1_3/" >> HtmlHelper::$theme = NULL >> HtmlHelper::$here = "/cakephp1_3/posts" >> HtmlHelper::$params = array >> HtmlHelper::$action = "index" >> HtmlHelper::$plugin = NULL >> HtmlHelper::$data = NULL >> HtmlHelper::$namedArgs = NULL >> HtmlHelper::$argSeparator = NULL >> HtmlHelper::$validationErrors = NULL >> HtmlHelper::$__tainted = NULL >> HtmlHelper::$__cleaned = NULL >> >> include - CORE\cake\libs\view\layouts\default.ctp, line 43 >> View::_render() - CORE\cake\libs\view\view.php, line 731 >> View::renderLayout() - CORE\cake\libs\view\view.php, line 489 >> View::render() - CORE\cake\libs\view\view.php, line 435 >> Controller::render() - CORE\cake\libs\controller\controller.php, line 909 >> Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207 >> Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171 >> [main] - APP\webroot\index.php, line 83 >> >> >> *Fatal error*: Call to a member function flash() on a non-object in * >> D:\wamp\www\cakephp1_3\cake\libs\view\layouts\default.ctp* on line *43* >> >> >> >> >> 2011/5/18 Leonardo Hidalgo Piña <leohida...@gmail.com> >> >>> a q url estas tratando de ingresar? >>> >>> El 18-05-2011, a las 12:36, Luis Saavedra Linares <saavedra...@gmail.com> >>> escribió: >>> >>> Active el el Apache el rewrite_module( ya que esto dice en la >>> instacion) >>> y ahora me sale este error. >>> >>> *Error: **TestsController* could not be found. >>> >>> *Error: *Create the class *TestsController* below in file: >>> app\controllers\tests_controller.php >>> >>> <?php >>> class TestsController extends AppController { >>> >>> var $name = 'Tests'; >>> } >>> ?> >>> >>> >>> 2011/5/18 Leonardo Hidalgo Piña <leohida...@gmail.com> >>> >>>> Revisa con firebug la ruta donde esta buscando los css. >>>> >>>> El 18-05-2011, a las 11:42, Desarrollo Apliaciones Web >>>> <saavedra...@gmail.com> escribió: >>>> >>>> > Borre los temporales, y nada >>>> > >>>> > On 18 mayo, 10:11, Victor Enrique Vasquez Zelada <vito2...@gmail.com> >>>> > wrote: >>>> >> xseaka borra los temporales de cake, en la carpeta tmp. >>>> >> >>>> >> El 18 de mayo de 2011 10:09, Desarrollo Apliaciones Web < >>>> >> saavedra...@gmail.com> escribió: >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >>> Esto es lo que tengo en htaccess >>>> >>> <IfModule mod_rewrite.c> >>>> >>> RewriteEngine on >>>> >>> RewriteRule ^$ webroot/ [L] >>>> >>> RewriteRule (.*) webroot/$1 [L] >>>> >>> </IfModule> >>>> >> >>>> >>> On 16 mayo, 09:29, Leonardo Hidalgo Piña <leohida...@gmail.com> >>>> wrote: >>>> >>>> Cuando instalaste cakephp te fijaste de copiar también los >>>> .htaccess? >>>> >> >>>> >>>> Puedes enviarnos un print del error que te aparece? >>>> >> >>>> >>>> Saludos. >>>> >> >>>> >>>> El 16 de mayo de 2011 09:52, Desarrollo Apliaciones Web < >>>> >>>> saavedra...@gmail.com> escribió: >>>> >> >>>> >>>>> Buen día. >>>> >> >>>> >>>>> Podrían darme una mano con esto intento cargar el ejemplo y no me >>>> >>>>> carga nada sale 404 no encontrado, Quiero empezar a probar este >>>> >>>>> framework. >>>> >> >>>> >>>>> Detallo lo que tengo para que tengan una mejor idea >>>> >> >>>> >>>>> Tengo instalado el WampServer >>>> >>>>> D:\wamp\www\cakephp1_3 >>>> >>>>> ahí tengo las carpetas app, cake, pluing, etc >>>> >> >>>> >>>>> y dentro de app >>>> >> >>>> >>>>> D:\wamp\www\cakephp1_3\app\controllers\posts_controller.php >>>> >>>>> <?php >>>> >>>>> class PostsController extends AppController { >>>> >>>>> var $helpers = array('Html', 'Form'); >>>> >>>>> var $name = 'Posts'; >>>> >>>>> function index() { >>>> >>>>> $this->set('posts', $this->Post->find('all')); >>>> >>>>> } >>>> >>>>> function view($id = null) { >>>> >>>>> $this->Post->id = $id; >>>> >>>>> $this->set('post', $this->Post->read()); >>>> >>>>> } >>>> >>>>> } >>>> >>>>> ?> >>>> >> >>>> >>>>> D:\wamp\www\cakephp1_3\app\models\post.php >>>> >> >>>> >>>>> <?php >>>> >>>>> class Post extends AppModel { >>>> >>>>> var $name = 'Post'; >>>> >>>>> } >>>> >>>>> ?> >>>> >> >>>> >>>>> D:\wamp\www\cakephp1_3\app\views\index.ctp >>>> >> >>>> >>>>> <!-- File: /app/views/posts/index.ctp --> >>>> >>>>> <h1>Blog posts</h1> >>>> >>>>> <table> >>>> >>>>> <tr> >>>> >>>>> <th>Id</th> >>>> >>>>> <th>Title</th> >>>> >>>>> <th>Created</th> >>>> >>>>> </tr> >>>> >>>>> <!-- Here is where we loop through our $posts array, printing out >>>> >>>>> post info --> >>>> >>>>> <?php foreach ($posts as $post): ?> >>>> >>>>> <tr> >>>> >>>>> <td><?php echo $post['Post']['id']; ?></td> >>>> >>>>> <td> >>>> >>>>> <?php echo $this->Html->link($post['Post']['title'], >>>> >>>>> array('controller' => 'posts', 'action' => 'view', $post['Post'] >>>> >>>>> ['id'])); ?> >>>> >>>>> </td> >>>> >>>>> <td><?php echo $post['Post']['created']; ?></td> >>>> >>>>> </tr> >>>> >>>>> <?php endforeach; ?> >>>> >>>>> </table> >>>> >> >>>> >>>>> -- >>>> >>>>> Has recibido este mensaje porque estás suscrito al grupo >>>> "CakePHP-es" >>>> >>> de >>>> >>>>> Grupos de Google. >>>> >>>>> Para publicar una entrada en este grupo, envía un correo >>>> electrónico a >>>> >>>>> cakephp-es@googlegroups.com. >>>> >>>>> Para anular tu suscripción a este grupo, envía un correo >>>> electrónico a >>>> >>>>> cakephp-es+unsubscr...@googlegroups.com >>>> >>>>> Para tener acceso a más opciones, visita el grupo en >>>> >>>>> http://groups.google.com/group/cakephp-es?hl=es. >>>> >> >>>> >>>> -- >>>> >>>> Leonardo Hidalgo Piña >>>> >>>> Desarrollador Webhttp://braindeveloper.me >>>> >> >>>> >>>> MSN: leohida...@gmail.com >>>> >>>> Celular: (+56) (99) 632 5603 >>>> >>>> Skype: r0cket82 >>>> >>>> Twitter: rocket82- Ocultar texto de la cita - >>>> >> >>>> >>>> - Mostrar texto de la cita - >>>> >> >>>> >>> -- >>>> >>> Has recibido este mensaje porque estás suscrito al grupo >>>> "CakePHP-es" de >>>> >>> Grupos de Google. >>>> >>> Para publicar una entrada en este grupo, envía un correo electrónico >>>> a >>>> >>> cakephp-es@googlegroups.com. >>>> >>> Para anular tu suscripción a este grupo, envía un correo electrónico >>>> a >>>> >>> cakephp-es+unsubscr...@googlegroups.com >>>> >>> Para tener acceso a más opciones, visita el grupo en >>>> >>> http://groups.google.com/group/cakephp-es?hl=es. >>>> >> >>>> >> -- >>>> >> Victor Enrique Vásquez Zelada >>>> >> Ingeniero de Sistemas >>>> >> Cel.: 976979393 / RPM: #068143 >>>> >> CIP: 109897 >>>> >> Cajamarca - Peru- Ocultar texto de la cita - >>>> >> >>>> >> - Mostrar texto de la cita - >>>> > >>>> > -- >>>> > Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" >>>> de Grupos de Google. >>>> > Para publicar una entrada en este grupo, envía un correo electrónico a >>>> cakephp-es@googlegroups.com. >>>> > Para anular tu suscripción a este grupo, envía un correo electrónico a >>>> cakephp-es+unsubscr...@googlegroups.com >>>> > Para tener acceso a más opciones, visita el grupo en >>>> http://groups.google.com/group/cakephp-es?hl=es. >>>> > >>>> >>>> -- >>>> Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" >>>> de Grupos de Google. >>>> Para publicar una entrada en este grupo, envía un correo electrónico a >>>> cakephp-es@googlegroups.com. >>>> Para anular tu suscripción a este grupo, envía un correo electrónico a >>>> cakephp-es+unsubscr...@googlegroups.com >>>> Para tener acceso a más opciones, visita el grupo en >>>> http://groups.google.com/group/cakephp-es?hl=es. >>>> >>>> >>> >>> >>> -- >>> -- >>> Un saludo >>> Atentamente >>> Luis Saavedra Linares >>> >>> Profesión: Programador >>> >>> >>> Lenguajes Programación >>> ====================================== >>> |PHP| |ASP| |C++| |Visual Basic| >>> ====================================== >>> >>> Base Datos >>> ==================================== >>> |SQL| |Access| |Mysql| >>> ==================================== >>> >>> Presto servicios referente al area de Informatica. >>> >>> ---------------------------------------------------------- >>> NOTA: SI quieres que te preste mis servicios Informataticos. >>> Enviar el mail ASUNTO: SERVICIO DE PROGRAMACION >>> ---------------------------------------------------------- >>> Tef: 00511 - 531-55-05 >>> Cel: 00511 - 985-769-563 Lima-Perú >>> >>> Cuenta Skype: saavedraphp >>> >>> ************************************************ >>> Frase: >>> Dar ejemplo no es la principal manera de influir sobre los demás; es la >>> única manera. >>> >>> Albert Einstein >>> ************************************************ >>> >>> -- >>> Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de >>> Grupos de Google. >>> Para publicar una entrada en este grupo, envía un correo electrónico a >>> cakephp-es@googlegroups.com. >>> Para anular tu suscripción a este grupo, envía un correo electrónico a >>> cakephp-es+unsubscr...@googlegroups.com >>> Para tener acceso a más opciones, visita el grupo en >>> http://groups.google.com/group/cakephp-es?hl=es. >>> >>> -- >>> Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de >>> Grupos de Google. >>> Para publicar una entrada en este grupo, envía un correo electrónico a >>> cakephp-es@googlegroups.com. >>> Para anular tu suscripción a este grupo, envía un correo electrónico a >>> cakephp-es+unsubscr...@googlegroups.com >>> Para tener acceso a más opciones, visita el grupo en >>> http://groups.google.com/group/cakephp-es?hl=es. >>> >> >> >> >> -- >> -- >> Un saludo >> Atentamente >> Luis Saavedra Linares >> >> Profesión: Programador >> >> >> Lenguajes Programación >> ====================================== >> |PHP| |ASP| |C++| |Visual Basic| >> ====================================== >> >> Base Datos >> ==================================== >> |SQL| |Access| |Mysql| >> ==================================== >> >> Presto servicios referente al area de Informatica. >> >> ---------------------------------------------------------- >> NOTA: SI quieres que te preste mis servicios Informataticos. >> Enviar el mail ASUNTO: SERVICIO DE PROGRAMACION >> ---------------------------------------------------------- >> Tef: 00511 - 531-55-05 >> Cel: 00511 - 985-769-563 Lima-Perú >> >> Cuenta Skype: saavedraphp >> >> ************************************************ >> Frase: >> Dar ejemplo no es la principal manera de influir sobre los demás; es la >> única manera. >> >> Albert Einstein >> ************************************************ >> > > > > -- > -- > Un saludo > Atentamente > Luis Saavedra Linares > > Profesión: Programador > > > Lenguajes Programación > ====================================== > |PHP| |ASP| |C++| |Visual Basic| > ====================================== > > Base Datos > ==================================== > |SQL| |Access| |Mysql| > ==================================== > > Presto servicios referente al area de Informatica. > > ---------------------------------------------------------- > NOTA: SI quieres que te preste mis servicios Informataticos. > Enviar el mail ASUNTO: SERVICIO DE PROGRAMACION > ---------------------------------------------------------- > Tef: 00511 - 531-55-05 > Cel: 00511 - 985-769-563 Lima-Perú > > Cuenta Skype: saavedraphp > > ************************************************ > Frase: > Dar ejemplo no es la principal manera de influir sobre los demás; es la > única manera. > > Albert Einstein > ************************************************ > -- -- Un saludo Atentamente Luis Saavedra Linares Profesión: Programador Lenguajes Programación ====================================== |PHP| |ASP| |C++| |Visual Basic| ====================================== Base Datos ==================================== |SQL| |Access| |Mysql| ==================================== Presto servicios referente al area de Informatica. ---------------------------------------------------------- NOTA: SI quieres que te preste mis servicios Informataticos. Enviar el mail ASUNTO: SERVICIO DE PROGRAMACION ---------------------------------------------------------- Tef: 00511 - 531-55-05 Cel: 00511 - 985-769-563 Lima-Perú Cuenta Skype: saavedraphp ************************************************ Frase: Dar ejemplo no es la principal manera de influir sobre los demás; es la única manera. Albert Einstein ************************************************ -- Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de Grupos de Google. Para publicar una entrada en este grupo, envía un correo electrónico a cakephp-es@googlegroups.com. Para anular tu suscripción a este grupo, envía un correo electrónico a cakephp-es+unsubscr...@googlegroups.com Para tener acceso a más opciones, visita el grupo en http://groups.google.com/group/cakephp-es?hl=es.