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: lowpass <zijn.digital@xxxxxxxxx>
Date: Thu, 13 Jun 2013 20:40:59 -0400
Delivery-date: Thu, 13 Jun 2013 20:41:53 -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=WinEHwaV6gOOflrrQbx2g/VyXJWxCuVikkoLuxEbQ4o=; b=SCYFpxSRSKvivcElN1xmZn7uSV2lDFYbXlNyPTbl8sJP2ImbgB16oQ5AtjHqBh3ART HqL/riXXPHJ52rd4RghcAB87221cNOzgh/SiTHPQ7GTKmsO2nJlIoC/DmLBEg80EIlXh kUtq4ahLUr7I2/xdTH3NP+IklebYP5hiG+UK2WpHA23lD6jF1jK7+kjw1mjVldxP0khD 2UCU005Cb+ABYzs+qBbXTHyvsAWYD0KN+QWgy7ebKJQ311ZEioFv98QTEa4QpJn4x0A2 uR+mYc+cAW1G+/A8zRNZD1COtHV+CaJPchvOuGUYz1cHM8gE7ipyi/nMMnjZFdJwT0o2 kNYA==
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=WinEHwaV6gOOflrrQbx2g/VyXJWxCuVikkoLuxEbQ4o=; b=MBU9tLl51+k+Ce5nEULKDDwvj2zr+Y83ICrfIw7ETzYY9MBeZ6vzUOgVLTNVAZiTlR FM1LB3YIbsncOXBxjgPbq9rwPGo8dMfGLoLoqX9by9hryg1KZWsccnZRrbAm0ET8243E EUN/7XeT8BKwUWFMCE6bt5C5Awg+pGRS3J27MTvZ9uQEJkCvtcRwikFsfifAUjEayNpA kjYO06/Sq7Jcj9A9rDaw55auK/gPd01BV7ygXT08GK9wC2HERa6dP/JkP6+PV0m9I8rm NG+M9T6k77qjmDAgcD8SEcT7ZfB8HztbbIYwwrn9lO2HAB0HQXcKZNZujqpfaaB2CWrn B41w==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <6770eac7-74ba-4f66-bd22-19ae01fbebdd@googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <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
$Esto->Forma (*uppercase F)


En *Wed, *Jun 12, 2013 en 11:19 PM, *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.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


$this->Form (uppercase F)


On Wed, Jun 12, 2013 at 11:19 PM, 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.
For more options, visit https://groups.google.com/groups/opt_out.


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