hi
i too was getting this error

did what AD7six mentioned

but then i got table dont exits Error in model

even table was in DB

with lots tries

i solved it by deleting/clearing cache of Models in "tmp"  folder

i hope this will work

but y CAKE wasnt detecting a DB change like new table??
something to search for



On Dec 31 2007, 5:52 pm, Maken <[EMAIL PROTECTED]> wrote:
> i m a novice in cakephp
> i make a model with the name of lead
>
> class Lead extends AppModel
> {
>     var $name = 'Lead';
>     var $useTable = 'leads';            /// changing to "abc" table works fine
>
> }
>
> and maken the controller like thaht
>
> class LeadsController extends AppController
> {
>     var $name = 'Leads';
>
>         var $uses = array("Lead");
>         var $helpers = array('html','javascript');
>
>         function index() {
>
>         }
>
> }
>
> add made a view file index.thtml to output some dummy info
>
> when i run the file the flowing erreor accor
>
> Notice: Undefined variable: javascript in pathtoinstalliaction  \app
> \views\layouts\default.thtml on line 9
>
> Fatal error: Call to a member function link() on a non-object in
> pathtoinstalliaction \app\views\layouts\default.thtml on line 9
>
> i put the some other table name in $useTable var  and it works fine
>
> but when i put leads in table name is gives me about error
>
> is this error is due to TABLE structure (which i think so)
> or something else
>
> what should i do ??/
>
> thanks in Advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to