Non-static method Pages::view() cannot be called statically |
Hello,
I'm developing a site and used the example provided in the documentation here: http://www.codeigniter.com/user_guide/tu...pages.html to be able to have one controller for all my static pages. It works fine on my localhost but when I push online this is what happens: Code: Severity: Runtime Notice After searching online some people say adding 'static' to PHP Code: public static function view($page = 'home'){ Any ideas? Thank you |
Messages In This Thread |
Non-static method Pages::view() cannot be called statically - by keld - 08-31-2016, 11:31 PM
RE: Non-static method Pages::view() cannot be called statically - by orionstar - 08-31-2016, 11:43 PM
RE: Non-static method Pages::view() cannot be called statically - by keld - 09-01-2016, 10:13 AM
RE: Non-static method Pages::view() cannot be called statically - by keld - 09-01-2016, 10:29 AM
RE: Non-static method Pages::view() cannot be called statically - by InsiteFX - 09-01-2016, 11:40 AM
RE: Non-static method Pages::view() cannot be called statically - by orionstar - 09-01-2016, 01:27 PM
RE: Non-static method Pages::view() cannot be called statically - by keld - 09-01-2016, 01:50 PM
|