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
Tag: codeigniter-3
why my sessiosn are not working in codeigniter 3?
I am using codeigniter-3 for developing the web part, i am using sessions for maintaining the user data once the user login if i click on any page or button the page is redirect to the login page. i have two projects of codeigniter-3 if i launch the project-1 in browser and login with credentials it’s navigating to the another
Get the ancestral data from database dynamically
I would like to get the ancestral or child data when I pass the value in a function. This is my data from MySQL table. If I pass the value of Document2 in my function i want to get the ancestral data, for example, if I pass Document2 it will get the Book2 then the Book2 will get the Document1
How to add a confirm dialog box using SweetAlert2 in CodeIgniter 3?
I’m learning CodeIgniter 3 and I want to add a confirm dialog before deleting a row in the database table. I’ve made the delete function but couldn’t figure out how to add a confirm dialog box using SweetAlert2. code in view code in controller code in model Answer Here is a simple integration, try and let me know
Fatal Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) on line 3
I am getting this error in codeigniter 3. I had tried most of the things but none of them worked. Answer Increase memory_limit in your php.ini file. If this is not resolving the issues: 2) Add this line ini_set(‘memory_limit’, ‘-1’); before the line where you get the error
required attribute not working in form in codeigniter php
i have a shopping website in codeigniter, where have a product details page, in which user should select the color and size which is mandotory before adding to cart, so i did the following code: however, the required attriubute is not working, user is able to click the add to cart button, can anyone please tell me how to fix
Multiple Foreach Loop Codeigniter
I want to display data in different sections, but error when I run. Controller View Answer $tamu array variable get replaced $tamu string in first foreach so dont’t do that working code is as below:
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
PayUbiz success url not called if using 3rd party apps
I have integrated PayUbiz payment gateway in one of my clients website. It works fine if customer pays using Cards or Net Banking, but when any customer tries to pay the amount using 3rd party apps eg: Google Pay, I am unable to capture the payment success callback from PayU (The payment is made successfully and also gets updated on
I’m having a problem with codeigniter pagination
When I create pagination without category it works, but with the category, it works with wrong data. With category pagination, it should show the data of a single category. But unfortunately, it shows mixed category data. These things work fine on the Index function….. In my index controller… and my model for the index is … It works perfectly. But