[eluser]Avatar[/eluser]
another bug, not sure about this one so much, please see code below followed by error:
Code:
<?php
class Test extends Module
{
function Test()
{
parent::Module();
$this->init();
}
function init()
{
echo $this->uri->segment(2);
}
}
above works, whereas below doesn't. Notice the underscore:
Code:
<?php
class Test extends Module
{
function Test()
{
parent::Module();
$this->_init();
}
function _init()
{
echo $this->uri->segment(2);
}
}
this gives me that uri error from before, error is below:
Code:
Message: Undefined property: Test::$uri
Filename: controllers/test.php
Line Number: 14
Fatal error: Call to a member function segment() on a non-object
your welcome wire and thank you. I mean alot, alot alot.