Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Fatal error: Using $this when not in object context
Old 12-23-2009, 02:52 AM Fatal error: Using $this when not in object context
Junior Talker

Posts: 2
Trades: 0
I got the above error and i am using php5.

The following is the code that have error:
<?php
$data['hide_menu'] = true;
$data['scripts'] = array('prototype', 'scriptaculous', 'validation', 'control.modal', 'scripts');
$this->load->view('include/header', $data);
?>

Can anyone help? Thanks.

Regards,
Yin
addisonlai is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-23-2009, 06:11 AM Re: Fatal error: Using $this when not in object context
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Remove $this. It can only be used inside of class methods.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Fatal error: Using $this when not in object context
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09563 seconds with 12 queries