Skip to content
Advertisement

Tag: codeigniter-3

Default CodeIgniter controller not working or is it my htaccess?

I’m using CodeIgniter 3.1.13 and configured my htaccess file to remove “index.php” but when I try to go to a webpage it doesn’t work unless I put the default controller in the URL. Any advice? Going to the following URLs work fine… https://www.example.com https://www.example.com/index.php https://www.example.com/welcome https://www.example.com/welcome/page/test But the following URL does not work… https://www.example.com/page/test How do I get this URL

how to create multi array in foreach CI without loop all

I have a problem from foreach to array why is everything loop? example output json i want. example output from my code this my code and this my CI_Controller how to loop only in “list :” line only? Answer Don’t encode in every loop iteration, create your array in the format you want and then encode it to json. In

Advertisement