Quantcast
Channel: CodeIgniter Forums - All Forums
Browsing all 14114 articles
Browse latest View live

problem with single quote in input field

Hello, I have this value in database : test'test When I try to display the text in a field I get this in the input field : test'test If I display my variable in the html flux i get : test'test width no...

View Article


Image may be NSFW.
Clik here to view.

Codeigniter errors?

I am following this tutorial here: tutorial, here is the github for tutorial: github for tutorial I have attached a screen shot of errors i am getting , i am new to codeigniter and i am trying to...

View Article


Is there a way to pass every variable in a controller action, to the view...

Is there a way to pass every variable in a controller action, to the view automatical So instead of  PHP Code: <?phpclass News extends CI_Controller {        public function index()        {...

View Article

Is it safe to use sessions for user validation?

I have a website with user registration & login. On login, after username and password are validated, I create a session like this: PHP Code: $this->session->set_userdata('user_id',...

View Article

Automatically passing controller action variables to the view

I would like a way to automatically pass variables from a controller action to a view just by declaring a variable. So instead of  PHP Code: <?phpclass News extends CI_Controller {        public...

View Article


PNG upload

Hi, Attempting to upload a PNG picture(in the image link) and it is not allowing it to upload. I am able to upload other PNG images. I can't upload picture in codeigniter forum attachment . Image link...

View Article

Go to replies div on redirect

On my forum when a user replies to a thread / post I am trying to be able to get it to go to that div once created. PHP Code: redirect(base_url('viewthread?tid=') . $tid . '#' . $pid);  Code:...

View Article

Image may be NSFW.
Clik here to view.

Library / Helper for Generating sitemap.xml

It would be great too to have library or helper for making sitemap.xml for website .

View Article


Image may be NSFW.
Clik here to view.

Error conecting postgresql driver

Hi!!    I have been working with CI2  for a long long while, and I'm pretty excited with CI4. Then, I made an installation and started to test it. Since I'm a PostgreSQL lover, I tried to connect to...

View Article


Break execution of function

How to break only execution of particular function? Assume: PHP Code: public function show_main(){$this->load->view('main');$this->f();$this->load->view('footer');}private function...

View Article

Bootstrap 4 almost beta?

I've been following development of Bootstrap 4 for a long time, and the beta milestone is at 99%! I'm guilty of using the alpha v6 version for a couple of personal projects, and I'm really enjoying it....

View Article

Message: reset() expects parameter 1 to be array, null given

Hi guys I'm having this error below. Code: A PHP Error was encountered Severity: Warning Message: reset() expects parameter 1 to be array, null given Filename: controllers/Language.php Line Number: 89...

View Article

CI4 Docs

I've noticed what appears to be errors in the tutorial and the Database docs. Is it ok for the rabble to open issues in GitHub about these or should I just post them here?

View Article


Get last item in list

Hi, In my database table I would like to be able to get the last row that was created. Have I got this model function correct. Just unsure of my self not sure if there is another easier way? PHP Code:...

View Article

Image may be NSFW.
Clik here to view.

mcrypt is deprecated in PHP 7.x

Hello friends, I tried one of my CI based apps that built with CI v3.x latest version in PHP 7.1.5 And then I got this huge list of mcript depricated errors.  I just wanted to know that, are you guys...

View Article


Form validation, valid_email

Hello, I have problem with valid_email method in CI_Form_validation class. I have newest CI, 3.1.4 I use form validation class to validate user input (register page), I have valid_email rule added....

View Article

Erro listar dados

Pessoal, sou novo com o CI, estou tentando listar dados do banco de dados, mas estou recebendo o erro:  A PHP Error was encountered Severity: Notice Message: Undefined variable: ramais Filename:...

View Article


Encode with Encrypt class, Decrypt with Encryption class

I'd like to be able to use the CI3 Encryption class to decrypt values that were "encoded" with the CI2 (deprecated) Encrypt class. So I set up a test controller and have been playing around, but no...

View Article

ion_auth messing up my query

Hello, Code: $user = $this->ion_auth->user()->row(); $this->db->where('appt_date >=', $FromAppt_Date); $this->db->where('appt_date<=', $ToAppt_Date); $group = 'Requester';...

View Article

CodeIgniter 3.1.5 Released

CodeIgniter 3.1.5 was released today, with one security fix and some bug fixes. Security: Fixed email address handling in the form validation library. Bug fixes: Database Forge, Email, Query Builder...

View Article
Browsing all 14114 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>