Tag: c

60 votes
6 answers
987 views
Upstream too big - nginx + codeigniter

I am getting this error from Nginx, but can't seem to figure it out! I am using codeigniter and am using

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
53 votes
5 answers
2.3K views
What is a slug?

I'm currently working through CodeIgniters tutorial in its fantastic documentation. However there is a te

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
53 votes
3 answers
1.2K views
Increment field of mysql database using codeigniter's active record syntax

I have the following php-codeigniter script which attempts to increment a field of a record using active-recor

avatar
Shanita
0 1 0 9
asked 07 September, 2021
62 votes
12 answers
3.1K views
Does CodeIgniter automatically prevent SQL injection?

I just inherited a project because the last developer left. The project is built off of Code Igniter. I&apo

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
1.2K views
Redirect with CodeIgniter

Can anyone tell me why my redirect helper does not work the way I'd expect it to? I'm trying to redi

avatar
Emilia
0 1 0 9
asked 07 September, 2021
55 votes
5 answers
1.1K views
How to add an ORDER BY clause using CodeIgniter's Active Record methods?

I have a very small script to get all records from a database table, the code is below. $query = $this->db-

avatar
Rudy
0 1 0 9
asked 07 September, 2021
66 votes
11 answers
973 views
how to get the base url in javascript

I am building a website with CodeIgniter, I have various resources that I load with the base_url helper functi

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
1.1K views
CodeIgniter Active Record - Get number of returned rows

I'm very new to CodeIgniter and Active Record in particular, I know how to do this well in normal SQL but

avatar
Majorie
0 1 0 9
asked 07 September, 2021
65 votes
1 answers
2.7K views
Advantages / Disadvantages of pconnect option in CodeIgniter

One of the parameters in the CodeIgniter database config is the following ['pconnect'] TRUE/FALSE

avatar
Janella
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
2.8K views
PhpStorm Field accessed via magic method

I have ignited datatables Library in my CodeIgniter library folder. Some Code from Library class Datatables {

avatar
Rudy
0 1 0 9
asked 07 September, 2021
61 votes
11 answers
2.8K views
base_url() function not working in codeigniter

In my web application using codeigniter. I am trying to use base_url() function but it shows empty results. I

avatar
Chaya
0 1 0 9
asked 07 September, 2021
51 votes
9 answers
2.2K views
subquery in codeigniter active record

SELECT * FROM certs WHERE id NOT IN (SELECT id_cer FROM revokace); How do I write the above select statement

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
63 votes
6 answers
1K views
Best method of including views within views in CodeIgniter

I'm starting a large codeigniter project and would like to try to create some reusable 'mini' v

avatar
Solomon
0 1 0 9
asked 07 September, 2021
64 votes
14 answers
1.8K views
Header and footer in CodeIgniter

I really don't enjoy writing in every controller: $this->load->view('templates/header&apo

avatar
Gigi
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
2.3K views
CodeIgniter - how to catch DB errors?

Is there a way to make CI throw an exception when it encounters a DB error instead of displaying a message lik

avatar
User demo
0 1 0 9
asked 07 September, 2021
52 votes
10 answers
1.8K views
How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord?

I'm using CodeIgniter's Active Record class to query the MySQL database. I need to select the rows i

avatar
Arline
0 1 0 9
asked 07 September, 2021
61 votes
11 answers
587 views
Inserting NOW() into Database with CodeIgniter's Active Record

I want to insert current time in database using mySQL function NOW() in Codeigniter's active record. The

avatar
Corrin
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
2.8K views
Sending email with gmail smtp with codeigniter email library

<?php class Email extends Controller { function Email() { parent::Controller();

avatar
Solomon
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
775 views
the best way to make codeigniter website multi-language. calling from lang arrays depends on lang session?

I'm researching hours and hours, but I could not find any clear, efficient way to make it :/ I have a co

avatar
Solomon
0 1 0 9
asked 07 September, 2021
62 votes
11 answers
952 views
CodeIgniter - return only one row?

At the moment if I am doing a query on the database that should only return one row, using: ...query stuff...

avatar
Carmelina
0 1 0 9
asked 07 September, 2021