473,492 Members | 4,301 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Defined class becomes undefined

[PHP]
class OptionsView extends PaginationView {

/**
* Constructor
*
* @access public
*/
function OptionsView() {} // CONSTRUCTOR

}
[/PHP]

This class exists in the same script as both the parent class
PaginationView and its child class AlbumOptionsView.. both
AlbumOptionsView and PaginationView seem to exist with no problem,
however, if I do this:

[PHP]
class AlbumOptionsView extends OptionsView {
//
}
[/PHP]

I get this error:


Fatal error: Class albumoptionsview: Cannot inherit from undefined
class optionsview in /catalog/include/classes.inc.php on line 105
Could someone shed some light onto this? How can a class be undefined
in the same instance as its parent and child?

Phil
Jul 17 '05 #1
1 1802
You have got

class OptionsView extends PaginationView {

but where is class PaginationView defined?

You must define a class before you can extend it.

--
Tony Marston

http://www.tonymarston.net

"Phil Powell" <so*****@erols.com> wrote in message
news:1c**************************@posting.google.c om...
[PHP]
class OptionsView extends PaginationView {

/**
* Constructor
*
* @access public
*/
function OptionsView() {} // CONSTRUCTOR

}
[/PHP]

This class exists in the same script as both the parent class
PaginationView and its child class AlbumOptionsView.. both
AlbumOptionsView and PaginationView seem to exist with no problem,
however, if I do this:

[PHP]
class AlbumOptionsView extends OptionsView {
//
}
[/PHP]

I get this error:

>
Fatal error: Class albumoptionsview: Cannot inherit from undefined
class optionsview in /catalog/include/classes.inc.php on line 105

Could someone shed some light onto this? How can a class be undefined
in the same instance as its parent and child?

Phil

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
1575
by: DaKoadMunky | last post by:
I was recently reading an article about sequence points that used the canonical i = i++; as an illustration of modifying a variable multiple times between sequence points. Curiously the...
6
3596
by: LRW | last post by:
I have a Javascript that makes a tablerow visible ot invisible, that works fine in InternetExplorer, but in Mozilla it's unresponsive and I get the following Javascript Console error: Error:...
19
2552
by: E. Robert Tisdale | last post by:
In the context of the comp.lang.c newsgroup, the term "undefined behavior" actually refers to behavior not defined by the ANSI/ISO C 9 standard. Specifically, it is *not* true that "anything can...
17
2418
by: Steve R. Hastings | last post by:
I have been studying Python recently, and I read a comment on one web page that said something like "the people using Python for heavy math really wish they could define their own operators". The...
1
1133
by: tshad | last post by:
I actually have 2 questions: 1) I am getting an error "Type 'TempClass1' is not defined" Why? Here is my DLL, where I have 3 classes defined outside of my Web Class: AuthHeader,...
31
3108
by: dragoncoder | last post by:
Consider the code class A { private: int a; }; int main(void) { A x; int* ptr = (int*)&x;
3
1866
by: taps128 | last post by:
I've been reading the namespace specification for the 5.3 relaese, and I can't stop thinking that they have complicated the thing unecessary. Here is what I mean. So far if you call a function...
8
2333
by: Floortje | last post by:
Hi i have been struggeling with this question for quite some time now. I have some helper classes that handle images (upload an image, create thumbnails and show a imagelist), links (add link,...
16
3404
by: John Doe | last post by:
Hi, I wrote a small class to enumerate available networks on a smartphone : class CNetwork { public: CNetwork() {}; CNetwork(CString& netName, GUID netguid): _netname(netName),...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.