cake-php
[Arriba] [Todas las Listas]

Re: No puede acceder propiedad vacía en Vista.php En línea 854

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: No puede acceder propiedad vacía en Vista.php En línea 854
From: Gaurav Matta <gauravgroups86@xxxxxxxxx>
Date: Thu, 13 Jun 2013 09:12:37 +0530
Delivery-date: Wed, 12 Jun 2013 23:42:50 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=OR/QmYV9+UTAASvLeExqyjGh+SC8sbLyiFI0qrL+6ZE=; b=K1JbRh/mHmFDK+iuM2QANrKwiv0c8azraHM1eS40vsgC8TSSCiwedjmKdkmi+Ltlc6 gJ1AvAsEJm671Cmxd+QVhz1+7BZO1BnZZVVdMiysp++PgpBA3PiY2iOVp4QCzAxC61mn eC9vO/nGcAOS0j0LpWeUaSXMaZLX3nvGHmzLOU/cFyHa080e/EOYyIrjDw2w0iEavIp6 CeBC3TjV5beTZx+5pjZRLdRoEUiENL2oW6ooJxmn2y2HurLxwnOfMgmpcfIxhl5AAXu3 tJWhJiVspq4W3XRaRhJszhbhqf+Xae0Xd+rS68QJq6MfNR8tDr+rOfOg6sqYWcOUHPfq yUrQ==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=OR/QmYV9+UTAASvLeExqyjGh+SC8sbLyiFI0qrL+6ZE=; b=ovNwHfudjP4A/i5ohbPrKpjr4/gkB/KgHyzYpMyae10afQ4jofJrRpWIRdc4SOOMPu ki/wQvGmGcUmLyl3GXS8n4RwxMdksWlK8Wzh2s/OM7iQkKfmu8gPSwEGF/WmRhel7xT0 yyZVUrTTQgcmHQ3A4ikPhon3taX34p3vBxa5THZINsMo2/ScOYZ5ZUgIAcXQImUc5V3b s4Cfl4ymFVc/YE8FHEJL9vE5vuN1mRaRl07aWDcQCgPiC42uc9+gGjpV4uSWQgvVx/7x RX1HhmPGBiHdQRv0c8Z/dghTfkEFhkYNdR501AUBN/ZRuWxDRBSlmFFggaZ8H6I2E5Ca AzKg==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <6770eac7-74ba-4f66-bd22-19ae01fbebdd@googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php?hl=en>
List-help: <http://groups.google.com/support/?hl=en>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post?hl=en>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
References: <15360faa-601e-4ddb-83d8-aa2e65630479@googlegroups.com> <6770eac7-74ba-4f66-bd22-19ae01fbebdd@googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
Probar si(!(Vacío()))
En 13-*Jun-2013 8:49 AM, "*alfredo *davila" <davilaassadalfredo@xxxxxxxxx>
escribió:

> *ok, esto es mi llamada de Vista añade.*ctp
>
> <*h2>Crea una Cuenta</*h2>
> <?*php
> Repite $esto->$forma->crear('Usuario', variedad('acción' => 'añade'));
>   eco $esto->$forma->entrada('*username');
>   eco $esto->$forma->entrada('contraseña', variedad('tipo' => 'contraseña'));
>   eco $esto->$forma->entrada('la contraseña_confirma', variedad('tipo' =>
> 'contraseña'));
>   eco $esto->$forma->entregar();
>   eco $esto->$forma->fin();
> ?>
>
> Mi Modelo
> <?*php
> Usuario de clase extiende *AppModel
>  #unknown{^*var $nombre = 'Usuario';
> }
> ?>
>
>  Y mi Controlador
>
> <?*php
> Clase *UsersController extiende *AppController
>
> #unknown{^*var $nombre = 'Usuarios';
> # necesitado puesto que 'registro'
> *var $*helpers = variedad('*Html', 'Forma');
>
> índice de función pública(){
> }
>  la función añade()
>         #cnj (!Vacío($esto->dato))
>             #cnj ($esto->dato['Usuario']['contraseña'] ==
> $esto->*Auth->contraseña($esto->dato['Usuario']['la contraseña_confirma']))
>         $#prn->Usuario->crear();
>         si($esto->Usuario->salvar($esto->dato))
>           $#prn->*Auth->*login($esto->dato);
>           $esto->redirigir(variedad('acción' => 'índice'));
>         }
> }
> }
>     }
> }
> ?>
>
> *El *lunes, 10 *de *junio *de 2013 18:20:21 *UTC-5, *alfredo *davila *escribió:
>>
>> puedo´*t la parón que trata este problema en mi *cakephp :*S lo pienso´*s
>> problema del Modelo o la Vista.
>> Puede cualquiera me ayuda? :*S
>>
>  --
> Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
> nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP
>
> ---
> Recibiste este mensaje porque eres *subscribed al *Google Grupos
> "*CakePHP" grupo.
> A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un
> *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
> A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
> Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php?*hl=*en.
> Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.
>
>
>

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php?*hl=*en.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


Try if(!(empty()))
On 13-Jun-2013 8:49 AM, "alfredo davila" <davilaassadalfredo@xxxxxxxxx>
wrote:

> ok, this is my View call add.ctp
>
> <h2>Create an Account</h2>
> <?php
> echo $this->$form->create('User', array('action' => 'add'));
>   echo $this->$form->input('username');
>   echo $this->$form->input('password', array('type' => 'password'));
>   echo $this->$form->input('password_confirm', array('type' =>
> 'password'));
>   echo $this->$form->submit();
>   echo $this->$form->end();
> ?>
>
> my Model
> <?php
> class User extends AppModel{
>  var $name = 'User';
> }
> ?>
>
>  and my Controller
>
> <?php
> class UsersController extends AppController{
>
> var $name = 'Users';
> # needed for 'register'
> var $helpers = array('Html', 'Form');
>
> public function index(){
> }
>  function add() {
>         if (!empty($this->data)) {
>             if ($this->data['User']['password'] ==
> $this->Auth->password($this->data['User']['password_confirm'])){
>         $this->User->create();
>         if($this->User->save($this->data)){
>           $this->Auth->login($this->data);
>           $this->redirect(array('action' => 'index'));
>         }
> }
> }
>     }
> }
> ?>
>
> El lunes, 10 de junio de 2013 18:20:21 UTC-5, alfredo davila escribió:
>>
>> I can´t stop dealing with this problem in my cakephp :S I think it´s
>> problem of the Model or the View.
>> Can anyone help me? :S
>>
>  --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
> To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>