Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Non-static method Pages::view() cannot be called statically
Post: RE: Non-static method Pages::view() cannot be call...

Sorry for all the trouble I updated my server to the latest version of PHP (5.6.24) available on my shared host and all the errors magically disappeared. I realized with horror that I was on PHP 5.2 (...
10,346 Views
6 Replies
09-01-2016, 01:50 PM
keld
    Thread: Non-static method Pages::view() cannot be called statically
Post: RE: Non-static method Pages::view() cannot be call...

This is what my code looks like PHP Code: -- class Pages extends CI_Controller {      public function view($page = 'home'){        if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))    ...
10,346 Views
6 Replies
09-01-2016, 10:29 AM
keld
    Thread: Non-static method Pages::view() cannot be called statically
Post: RE: Non-static method Pages::view() cannot be call...

orionstar Wrote: (08-31-2016, 11:43 PM) -- You can't use static for action functions! Static is a php keyword it's not related with static pages... Without the "static" word, exactly what is the err...
10,346 Views
6 Replies
09-01-2016, 10:13 AM
keld
    Thread: Non-static method Pages::view() cannot be called statically
Post: Non-static method Pages::view() cannot be called s...

Hello, I'm developing a site and used the example provided in the documentation here: http://www.codeigniter.com/user_guide/tutorial/static_pages.html (http://www.codeigniter.com/user_guide/tutori...
10,346 Views
6 Replies
08-31-2016, 11:31 PM
keld
    Thread: Adding standalone blog
Post: RE: Adding standalone blog

Thanks, using PHP Code: -- -- worked but now I have another problem. The blog config file contains this PHP Code: -- if ($installed!='yes') { $connBl = mysqli_connect($CONFIG["hostname"], ...
6,811 Views
3 Replies
06-10-2015, 02:09 PM
keld
    Thread: Adding standalone blog
Post: Adding standalone blog

Hi guys, I have this site built with CI. Standard folder structure. css, img, js folders outside the application folder. I'm replacing one of the page with a standalone simple blog (http://simpleblo...
6,811 Views
3 Replies
06-07-2015, 05:04 PM
keld

Theme © iAndrew 2016 - Forum software by © MyBB