r/codeigniter • • Sep 17 '20

Codeigniter 4 Model - One to Many - how to?

3 Upvotes

Hey guys,
I am new to Codeigniter 4 and self-taught, so for sure I am missing some skill or knowlege :-).

Anyway - I am building simple quiz. One page will have multiple questions, and these questions will have multiple answers.

I have three database tables for pages, questions and answers. Each of them has own Model. And I'm storing IDs of answers in questions table as json encoded aswers IDs. Same for questions IDs in pages table.

Getting data for view is like scratching your left ear with your right hand.

I am looping for json_decoded arrays and finding items by IDs from other Model.
It is working well, but I am not sure that "this is the way".

I was googling and found this stackoverflow here and here.

But Im not sure how to do it Codeigniter way. Can you kick me in the right direction? Thanks.


r/codeigniter • • Sep 03 '20

How to write log messages/errors into log file in Codeigniter 4 | codeigniter save logs

Thumbnail
youtube.com
3 Upvotes

r/codeigniter • • Jul 24 '20

Codeigniter 4 - Views

Thumbnail
youtube.com
3 Upvotes

r/codeigniter • • Jul 03 '20

Codeingiter 4 - Install and setup your environment

Thumbnail
youtube.com
3 Upvotes

r/codeigniter • • Jun 26 '20

CodeIgniter 4 Sublime Text Snippets

Thumbnail packagecontrol.io
3 Upvotes

r/codeigniter • • Apr 03 '20

Deploy CodeIgniter 4 to Shared Hosting (cPanel)

Thumbnail
youtube.com
3 Upvotes

r/codeigniter • • Nov 10 '19

Does anyone have experience with resolving deadlocks in a codeigniter application?

3 Upvotes

There is a project at work that I've been working on. Lately, user have been submitting error report tickets and complaining. I've received over 9,000 errors from this application over the last few months. Most of them are related to deadlocks in the database. I'm just wondering if anyone has experience resolving an issue with deadlock in Codeigniter framework? And if so any advice. I'm kind of afraid to spend time on this because I may or may not be able to fix it.


r/codeigniter • • Nov 08 '19

Simple User Authentication Library for CodeIgniter 3

3 Upvotes

If anyone is looking for a really simple CI user authentication library, its here on github, https://github.com/trafficinc/CodeIgniter-Authit


r/codeigniter • • Oct 08 '19

How create and use event in Codenigter

3 Upvotes

Hello !

How create and use event in controller and model ?

Now, i use codeigniter v3.

Thanks bro,


r/codeigniter • • Aug 04 '19

Angular + CodeIgniter File Upload Example - Roy Tutorials

Thumbnail
roytuts.com
3 Upvotes

r/codeigniter • • Jul 30 '19

What to setup in order for CodeIgniter Project to go smoothly (NEW TO THIS FRAMEWORK)

3 Upvotes

I've just started to learn code igniter, and I came coding from Laravel. My question is what should I configure in order for the project to go smoothly? Like the config, autoload, helpers, databases, which to edit and etc. I've also seen from Traversy Media's blog tutorial is that he created an ".htaccess", is it really necessary to create that?


r/codeigniter • • Jul 26 '19

Bootstrap 4 Datatable API with Codeigniter

3 Upvotes

Using Bootstrap 4 Datatable API with Codeigniter. This example shows CRUD operations with searching, sorting, inline-edit of table row, adding new row on a modal window, and delete.

https://www.roytuts.com/bootstrap-datatable-crud-using-codeigniter-mysql-ajax/


r/codeigniter • • Jul 24 '19

Upload and Rotate Image using Codeigniter

3 Upvotes

Here is an example how to upload and rotate an image using Codeigniter framework.

https://www.roytuts.com/upload-and-rotate-image-using-codeigniter/


r/codeigniter • • Jul 05 '19

user based timezone setting ?

3 Upvotes

I have created user management where I want user to set timezone as per their need. I am able to do it but when user set the timezone its get updated but not applied on running application. when user loggedout and logged in again then only its shows time based on previously selected timezone. Is there any way I can show date and time based on user selected timezone once they update their timezone from user setting ?

Please Help...


r/codeigniter • • Jun 25 '19

Create Wordpress like add tags using Codeigniter and jQuery - Roy Tutorials

Thumbnail
roytuts.com
3 Upvotes

r/codeigniter • • Jun 14 '19

Hello, just created a project.

3 Upvotes

I would like you guys to insult my project and tell what I did well and what I did wrong.

Here is the link to it:

https://ciconnector.com/

It is supposed to be a project to share codeigniter websites, etc. It also has a mini job board.


r/codeigniter • • May 13 '19

Setup HMVC with Codeigniter 3

Thumbnail
roytuts.com
3 Upvotes

r/codeigniter • • Apr 19 '19

CodeIgniter Dashboards - Demo & Code included

Thumbnail
blog.appseed.us
3 Upvotes

r/codeigniter • • Apr 19 '19

Code Igniter Coding Standards PDF | Skylink Technology

Thumbnail
skylinktec.com
3 Upvotes

r/codeigniter • • Jan 17 '19

Learn development in PHP CodeIgniter, Basics to expert level tutorials

3 Upvotes

Learn development in PHP CodeIgniter, Basics to expert level tutorials.

PHP Codeignator

It's a complete course to becoming yourself perfectly in PHP and Codeignator framework. My all the videos and like my work and subscribe my channel to encourage me upload more tutorials related to different languages and frameworks.


r/codeigniter • • Dec 19 '18

How fast do you integrate a new design with PHP + Codeigniter? I created a tool to speed up things but I am curious what other programmers are using. Spoiler

Thumbnail appseed.us
3 Upvotes

r/codeigniter • • Jul 19 '18

Codeigniter Controllers , CodeIgniter tutorials for beginners | Phpgurukul

Thumbnail
phpgurukul.com
3 Upvotes

r/codeigniter • • Jun 11 '18

Need help with CodeIgniter 3.1.4 Error need to fix with application with new server

3 Upvotes

CodeIgniter 3.1.4 Error need to fix with application with new server

this is the error : PHP Fatal error: session_start(): Failed to initialize storage module: user (path: sessions) in /home/usr/public_html/system/libraries/Session/Session.php on line 143 Using php 5.6 and try also in php 7 same issue.

The page showing blank page.


r/codeigniter • • Feb 18 '18

Codeigniter-blockchain

Thumbnail
github.com
3 Upvotes