You have a typo in your php code, projrct.basic should be
project.basic, maybe that's the problem.
On 5 Nov., 08:51, Raul <[EMAIL PROTECTED]> wrote:
> Javascript error......
>
> I have included my js files that resides in webroot/js folder in the
> default layout (default.thtml) as
>
> <?php echo $javascript->link('projrct.basic'); ?>
>
> The name of my javascript file is project.basic.js
>
> Then I found the error message like-
>
> Notice: Undefined variable: javascript in H:\www\webroot\cake\app\views
> \layouts\default.thtml on line 14
>
> Fatal error: Call to a member function link() on a non-object in H:\www
> \webroot\cake\app\views\layouts\default.thtml on line 14
>
> Then I search cakephp googole groups for solution and finally got the
> answer as to create app_Controller.php under my app folder and declare
> all the needed helper in that file.
>
> I have coded this file as-
>
> class AppController extends Controller {
>
> var $helpers = array('Html','Form','Javascript');
> var $components = array('Session');
> var $othAuthRestrictions = "*";
>
> }
>
> But still I have found the same error message...
>
> Can anybody guide me through the rest...!!!!!!
>
> It will be a great help...!!!!
>
> Regards
> Raul.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---