Re: Cannot access empty property in View.php on line 854

2013-06-13 Thread lowpass
$this->Form (uppercase F)


On Wed, Jun 12, 2013 at 11:19 PM, alfredo davila <
davilaassadalfr...@gmail.com> wrote:

> ok, this is my View call add.ctp
>
> Create an Account
>  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
>  class User extends AppModel{
>  var $name = 'User';
> }
> ?>
>
>  and my Controller
>
>  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+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-13 Thread alfredo davila
OK, now it works, ty!  im new in cakephp sorry :S

El miércoles, 12 de junio de 2013 22:42:04 UTC-5, rchavik escribió:
>
> On Wed, 12 Jun 2013 20:19:12 -0700, alfredo davila wrote: 
>
> > ok, this is my View call add.ctp 
> > 
> > Create an Account 
> > $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(); 
>
> What is $this->$form ? 
>
> Typically, it would be $this->Form->method() 
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-13 Thread Rachman Chavik
On Wed, 12 Jun 2013 20:19:12 -0700, alfredo davila wrote:

> ok, this is my View call add.ctp
> 
> Create an Account
> $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();

What is $this->$form ?

Typically, it would be $this->Form->method()

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-13 Thread Vitor Pacheco
$this->$form should be $this->Form



2013/6/13 Gaurav Matta 

> Try if(!(empty()))
> On 13-Jun-2013 8:49 AM, "alfredo davila" 
> wrote:
>
>> ok, this is my View call add.ctp
>>
>> Create an Account
>> > 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
>> > class User extends AppModel{
>>  var $name = 'User';
>> }
>> ?>
>>
>>  and my Controller
>>
>> > 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: vitor-...@hotmail.com*
*GTalk: vitorpc...@gmail.com**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-12 Thread Gaurav Matta
Try if(!(empty()))
On 13-Jun-2013 8:49 AM, "alfredo davila" 
wrote:

> ok, this is my View call add.ctp
>
> Create an Account
>  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
>  class User extends AppModel{
>  var $name = 'User';
> }
> ?>
>
>  and my Controller
>
>  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+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-12 Thread alfredo davila
 my version  2.3.5

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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-12 Thread alfredo davila
ok, this is my View call add.ctp

Create an Account
$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 


 and my Controller

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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cannot access empty property in View.php on line 854

2013-06-11 Thread lowpass
Not without:

- your Cake version
- some context
- some code



On Mon, Jun 10, 2013 at 7:20 PM, alfredo davila <
davilaassadalfr...@gmail.com> wrote:

> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Cannot access empty property in View.php on line 854

2013-06-10 Thread alfredo davila
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.