codeigniter Questions

6

Solved

In Codeigniter 2.1.2 I want to create base controller and then extends from this controller. It does not work and I have no idea why and I'm pretty desperate now. In \application\core\MY_Base_Cont...
Ascension asked 25/1, 2014 at 14:31

3

How can I implement an ACL library? What is the best way for using ACL for user roles? In standard PHP, I'd write code like this: if (userTypeId == 'Admin') { hello Admin } else if (userTypeId ==...
Hekking asked 18/1, 2014 at 15:24

12

Solved

I understand this a popular issue, and I have read all the similar questions here on Stack Overflow and other sites (including the datatables website). To clarify, I am using PHP Codeigniter Mat...
Ingemar asked 15/12, 2015 at 10:57

2

Solved

I am trying to use one session data for all of my subdomains. I have created a subdomain in cpanel like this : *.mydomain.in and my *.mydomain.in uses the same path as my mydomain.in example: my...
Gittern asked 23/3, 2014 at 8:42

2

Solved

I am building a Web App along with API for Android using CI4. For the Web App, I have a filter to check whether the user already logged in with some exceptions, one of them is to ignore the filter ...
Dimaggio asked 16/3, 2022 at 11:4

6

Solved

In Codeigniter, How could we stop the execution after load a view? I have tried this function index() { $this->load->view('myView'); die(); //do not execute next code } but it resulti...
Warila asked 26/6, 2013 at 10:6

10

Solved

I'm trying to figure out how I can use the is_unique rule from the Codeigniter form validation library in the following situation. I'm trying to submit a edit user form and have the rule: $this-&...
Diatropism asked 3/12, 2012 at 21:56

10

Solved

I want to load a controller from a function in another controller because the library I integrated to my project I don't want to load it to the controller because I want to keep it clean and relate...
Hooky asked 4/1, 2013 at 22:17

4

Solved

For starters, the Codeigniter documentation on update_batch does not exist. kenjis was kind enough to provide some documentation and submit it to the repository. Hopefully they pull it soon. Does...
Ovi asked 15/9, 2011 at 5:5

5

Solved

Fellow coders, using codeigniter 1.7.3 can I load a model from the code of another model? I have read many posts theoretical and practical but none gave a final answer. I have a model that has a ...
Talkingto asked 7/1, 2011 at 19:9

6

Solved

I have two sites using Codeigniter. Today I have updated sites to Codeigniter 3.1.7 (from 3.1.6). After that at one of this sites email validation had broken, valid_email validation rule doesn't wo...
Screwed asked 6/2, 2018 at 9:12

5

Solved

i want to get only not null values count in that array , if i use count() or sizeof it will get the null indexes also . in my case i have an array like this Array ( [0] => ) the count is 1...
Undertaker asked 6/10, 2011 at 9:40

7

Solved

I am using MPDF library to convert HTML to PDF. Here is my code. $HTML = '{HTML CONTENT GOES HERE}'; //HTML STRING $MPDF->WriteHTML($html); // Converting $MPDF->Output('preview.pdf','F');...
China asked 10/11, 2012 at 6:41

7

I'm using codeigniter for my app what my problem is session is expiring even though user is active on the site. These are the session settings.. i'm using DB session $config['sess_cookie_name'] ...
Whelm asked 28/7, 2011 at 9:44

3

Solved

$config = array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.gmail.com', 'smtp_port' => '465', 'smtp_user' => "[email protected]", 'smtp_pass' => "xxxxxxx", // change...
Dorolice asked 5/7, 2016 at 12:45

2

Solved

I am using codeigniter and have a registration form that captures basic info such as email, username, and password. I will also have a Terms of use checkbox that will need to be checked in order to...
Predicate asked 11/6, 2015 at 18:7

9

Solved

I am trying to get 'id' from URL in order to delete that specific selected product. I have used $this->uri->segment(3) but its not getting any value from URL. Although i can see the 'product_...
Maltha asked 17/1, 2014 at 7:23

3

Solved

I was using CodeIgniter 3.0.0 with PHP 5.6. Yesterday I updated to PHP 7 and started getting following error:- Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an...
Fleabitten asked 2/5, 2016 at 12:43

6

Solved

Is it possible to extend user's session expiration time in CI. What I want to do is, by default every user's session cookie lasts for example 1 day, but every time user visits the site his session ...
Vocative asked 8/4, 2010 at 20:17

12

Solved

In my web application using codeigniter. I am trying to use base_url() function but it shows empty results. I have also used autoload helper through autoload file, but then too it doesn't seem to w...
Circumnavigate asked 23/6, 2011 at 4:36

3

I need to remove index.php from site_url() return value I don't want search engines cache my URLs contain index.php. I removed index.php from url by setting .htaccess file but still not working. Fo...
Bifacial asked 28/3, 2015 at 23:53

6

Solved

When date.timezone in php.ini is commented out, it gives me: A PHP Error was encountered Severity: Warning Message: main(): It is not safe to rely on the system's timezone settings. You ...
Nica asked 3/2, 2011 at 5:23

2

I am creating a web application on Codeigniter 3.2 which works with the Facebook Graph API. In order to make GET & POST HTTP requests, I need a curl library for Codeigniter. I have found Guzzle...
Waal asked 13/10, 2016 at 16:11

11

Solved

I had uploaded my website to server and then I tried to access, but the code igniter returns me that error that I don't find any answer. Why is this happening? My config database is set like:...
Lysis asked 28/4, 2015 at 19:22

4

I am using BOTH Guzzle and Codeigniter 3.0 for the first time. Also I admit I am using php namespace for the first time. I am trying to make a very simple get request using Guzzle according to the...
Tantalous asked 31/3, 2015 at 18:42

© 2022 - 2024 — McMap. All rights reserved.