Welcome Guest, Not a member yet? Register   Sign In
Static variable not showing
#2

[eluser]Narkboy[/eluser]
Ok, couple of points:

- I'm not seeing an explict load model call in the controller; auto-loaded?

- In about.php you insert_keywords using a direct call rather than a CI call ($this->Seo_model->insert_keywords("foo)). Try to use the same calling method throughout.

- You declared all the Seo_model methods as static, which is useful if you're not creating an instance of the class, but you are. When you call the model CI instances the class as $this->Seo_model. I think that this is the reason you're getting patchy results, but I'm guessing. I avoid static with CI - private is always useful though!

/B


Messages In This Thread
Static variable not showing - by El Forum - 05-26-2010, 04:20 AM
Static variable not showing - by El Forum - 05-26-2010, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB