We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

$DSP issue

Development and Programming

EpicSoft's avatar
EpicSoft
64 posts
16 years ago
EpicSoft's avatar EpicSoft

$DSP->foobar works fine in my mcp..php but in my mod..*php i get

Fatal error: Call to a member function input_select_header() on a non-object in C:\live_websites\foobar…

My globals match on both functions and classes so i don’t under stand why it would fail in once place and not the other. Any ideas?

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

The Display class is only loaded in the control panel.

       
EpicSoft's avatar
EpicSoft
64 posts
16 years ago
EpicSoft's avatar EpicSoft

As soon as i got out of the door at work I asked my self if that was the case. Thank you for confirming it.

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

No problem. You could of course instantiate the class and utilize it, but just keep in mind that that’s not intended, so it would only be useful to you for methods that return values. And typically module front end tags should not be outputting their own markup, but parsing variables within markup that’s specified in the template, so that the user retains full control over all output.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.