Quantcast

Undefined property help :(

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Undefined property help :(

Kani-3
i have a problem with add action help me.

i used

> cake bake all

http://localhost/loan/AjiltanBrts looks Ok

http://localhost/loan/AjiltanBrts/add

Notice (8): Undefined property: AjiltanBrt::$BankSalLav [APP
\controllers\ajiltan_brts_controller.php, line 30]

Fatal error: Call to a member function find() on a non-object in C:
\xampp\htdocs\loan\app\controllers\ajiltan_brts_controller.php on line
30

i not added code.

Please help me

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Undefined property help :(

Dave-35
what is on line 30

On Sat, Nov 28, 2009 at 11:25 PM, kani <[hidden email]> wrote:
i have a problem with add action help me.

i used

> cake bake all

http://localhost/loan/AjiltanBrts looks Ok

http://localhost/loan/AjiltanBrts/add

Notice (8): Undefined property: AjiltanBrt::$BankSalLav [APP
\controllers\ajiltan_brts_controller.php, line 30]

Fatal error: Call to a member function find() on a non-object in C:
\xampp\htdocs\loan\app\controllers\ajiltan_brts_controller.php on line
30

i not added code.

Please help me

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Undefined property help :(

Kani-3
Sorry my english is not good :)

i solved but there is another problem only this module is ok other
model has relationship problem foreighn key field is show but not as
list box.
i am confused :(

i think line 30 is not reason maybe reason is relationship

line 30 $bankSalLavs = $this->AjiltanBrt->BankSalLav->find('list');

following code generated by shell  > cake bake all
class AjiltanBrt extends AppModel {

        var $name = 'AjiltanBrt';

        );
        var $belongsTo = array(
                'BankSalLav' => array(             //BankSalLav was BankSalLavs i
removed 's'  Is it cakephp issue?
                        'className' => 'BankSalLav',       //BankSalLav was BankSalLavs i
removed 's'
                        'foreignKey' => 'bank_sal_lavs_id',
                        'conditions' => '',
                        'fields' => '',
                        'order' => ''
                ),
                'AjiltanTrlLav' => array(
                        'className' => 'AjiltanTrlLav',
                        'foreignKey' => 'ajiltan_trl_lavs_id',
                        'conditions' => '',
                        'fields' => '',
                        'order' => ''
                )
        );
}

i removed  "s" from all model relationship class name but only
AjiltanBrt model is ok other models have not list box.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Undefined property help :(

Kani-3
Tnx i solved i recreated all MVC and again removed all "s" from class
name.


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Loading...