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 ArticleCodeigniter 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 ArticleIs 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 ArticleIs 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 ArticleAutomatically 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 ArticlePNG 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 ArticleGo 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 ArticleLibrary / Helper for Generating sitemap.xml
It would be great too to have library or helper for making sitemap.xml for website .
View ArticleError 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 ArticleBreak 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 ArticleBootstrap 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 ArticleMessage: 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 ArticleCI4 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 ArticleGet 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 Articlemcrypt 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 ArticleForm 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 ArticleErro 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 ArticleEncode 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 Articleion_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 ArticleCodeIgniter 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