Welcome Guest, Not a member yet? Register   Sign In
AjaxFw (CJAX) For CodeIgnater 5.0 Stable
#71

[eluser]dnishe[/eluser]
pls i get this error

Strict Standards: Non-static method plugin::initiatePlugins() should not be called statically, assuming $this from incompatible context in C:\Program Files\EasyPHP 2.0b1\www\wetindey\cjax\core\classes\core.class.php on line 660

and when my php ini is set to E_ALL & ~E_STRICT for error reporting
i get a black page,

but if i set my php ini to E_ALL ^ E_STRICT i still get the same strict standards error
#72

[eluser]Ajaxboy[/eluser]
Hello dnishe,

What version of php is installed on the server?
#73

[eluser]dnishe[/eluser]
i have PHP 5.4.0 installed
#74

[eluser]Ajaxboy[/eluser]
That's why, you need php 5.2 or php 5.3, php.5.4 still not supported sorry, that is in the agenda though.
#75

[eluser]mmmx[/eluser]
Default values in controller method

Hi,
it seems that if I put a controller in the response folder,
methods of the controller don't recognize default values for their parameters anymore.

For example:
Code:
function group($id=8){}
inside this , if i don't pass the $id, the controller can't get 8.

Any idea?

thanks
#76

[eluser]Ajaxboy[/eluser]
What version of Cjax are you using?
#77

[eluser]mmmx[/eluser]
[quote author="Ajaxboy" date="1354505191"]What version of Cjax are you using?[/quote]
v. 5.20stable and ci 2.12
#78

[eluser]Ajaxboy[/eluser]
be sure to get the latest 5.3 (is stable also), then let me know if you continue to have this issue. Also make sure you are not passing them variables in the url, (if you pass an empty string or 0 still counts)
#79

[eluser]mmmx[/eluser]
[quote author="Ajaxboy" date="1354543972"]be sure to get the latest 5.3 (is stable also), then let me know if you continue to have this issue. Also make sure you are not passing them variables in the url, (if you pass an empty string or 0 still counts)[/quote]

Updated and still get the issue
I also checked with isset() and it isn't...

Code:
class Parmetro extends CI_Controller
{
function __construct()
{
  parent::__construct();
}
function index()
{

        
}
function group($id=8)
{
  echo "id=$id <br />";
  if(!isset($id)) echo "id not set";
}
}

see also the screenshot.

What ese should I check?
#80

[eluser]Ajaxboy[/eluser]
Ummm, let me look a little dipper into the matter then I will have a formulated answer.




Theme © iAndrew 2016 - Forum software by © MyBB