Welcome Guest, Not a member yet? Register   Sign In
Non-static method Pages::view() cannot be called statically
#1

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

Message: Non-static method Pages::view() cannot be called statically

Filename: core/CodeIgniter.php

Line Number: 419

Backtrace:

File: /others/site/dev/index.php
Line: 315
Function: require_once

After searching online some people say adding 'static' to
PHP Code:
public static function view($page 'home'){ 
might fixed but it didn't.

Any ideas? Thank you
Reply


Messages In This Thread
Non-static method Pages::view() cannot be called statically - by keld - 08-31-2016, 11:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB