Welcome Guest, Not a member yet? Register   Sign In
CI syntax debugging
#6

[eluser]xwero[/eluser]
gRoberts that is the same only your way is easier to read.

Are you sure the output of
Code:
$this->config->item("sCurrentMode")
is books? I find it strange you use a config value to determine which array you need to get.

have you checked the output of
Code:
$this->config->item(’arModeSortType["books"]’)
If you get the right array you can try
Code:
$current = 'books';
$this->config->item(’arModeSortType['.$current.']’)

if that works and sCurrentMode outputs books you can try
Code:
$current = $this->config->item("sCurrentMode");
$this->config->item(’arModeSortType['.$current.']’)


Messages In This Thread
CI syntax debugging - by El Forum - 03-25-2008, 07:38 AM
CI syntax debugging - by El Forum - 03-25-2008, 07:41 AM
CI syntax debugging - by El Forum - 03-25-2008, 07:42 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:04 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:21 AM
CI syntax debugging - by El Forum - 03-25-2008, 09:37 AM
CI syntax debugging - by El Forum - 03-25-2008, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB