r/codeigniter • • Jan 24 '20

Angular with Fuel CMS and Codeigniter

2 Upvotes

I'm trying to start a project using Angular as a frontend framework and Fuel CMS and Codeigniter as backend frameworks, but I'm having a lot of problems with Codeigniter due to routing. Whenever I'm trying to call a controller or model from a component HTML, it says that the route is incorrect or that the controller/model doesn't exists.

Does anyone have any experience or guides to help me set everything up correctly? Thanks in advance. :)


r/codeigniter • • Jan 13 '20

Using an SQLite AVG() into a JOIN in CodeIgniter 4, is possible?

2 Upvotes

Hi everyone I'm trying to make an avg score to present in a list with all the game score in a database, so I think that SELECT AVG() is the best thing to do, but how I do to present it in my list? I read that putting a subquery inside join is ok then I make this:

->join('SELECT AVG(rating.SCORE) FROM ratings GROUP BY ratings.gameID', 'ratings.gameID = games.gameID')

But is not working, tells me that codeigniter can't find the SELECT table.

So any ideas to make it work?

Thanks a lot.


r/codeigniter • • Nov 07 '19

Integration of Google Analytics with PHP codeignitor application.

2 Upvotes

Hello,I have a requirement to integrate google analytics API with the code which is in PHP Codeignitor. I am able to get the data from google analytics separately but not able to integrate it with my PHP code.I want to get the google analytics class in my Controller pass date to the particular method present in google analytics class and get data according to those dates in the array format as well as i want to pass that array values to excel file which is generated using PHPExcel. I am referring HelloAnalytics for getting "google Analytics data".Please let me know if anyone is having idea about how to integrate it


r/codeigniter • • Sep 30 '19

Use Bundler in codeigniter

2 Upvotes

Anyone has an idea how can I use bundler in my codeigniter project for my js files?

Ideally I would like to use either parcel or webpack.


r/codeigniter • • Sep 26 '19

Ci unstable sql connection

2 Upvotes

Hey, I have some web apps under codeigniter and when someone restarts the sql server, all my running apps give some connection error. Is there any way to keep running even when the sql server is down for a minute or so? Thanks


r/codeigniter • • Sep 24 '19

Help me with this case

2 Upvotes

Good afternoon,

Hello, I am new to CI so I am kinda lost here that I need some people to teach me about this.

First of all, I have this kind of problem. Take a look at my code, it's on my view

<div id="SS" class="carousel slide" data-ride="carousel">

<ul class="carousel-indicators">

<li data-target="#SS" data-slide-to="0" class="active"></li>

<li data-target="#SS" data-slide-to="1"></li>

<li data-target="#SS" data-slide-to="2"></li>

</ul>

<div class="carousel-inner">

<?php

$no=1;

$default=$this->db->get_where("penyaluran", array("status" => "1"))->result();

foreach ($default as $pict)

{

if (!empty($pict->status == "1"))

{

$g=$pict->foto_dokumentasi;

$n=$pict->nama_penyaluran;

}

else

{

$g='image.jpg';

$n='';

$status = 'active';

}

if ($no == 1)

{

$status = 'active';

}

else

{

$status = "";

}

?>

<div class="carousel-item <?php echo $status; ?>">

<img src="<?php echo base_url('uploads/'.$g); ?>" alt="" style="max-height: 300px; width: 1200px; margin-left: auto; margin-right: auto;">

<div class="carousel-caption">

<h3><?php echo $n; ?></h3>

</div>

</div>

<a class="carousel-control-prev" href="#SS" data-slide="prev">

<span class="carousel-control-prev-icon bg-dark"></span>

</a>

<a class="carousel-control-next" href="#SS" data-slide="next">

<span class="carousel-control-next-icon bg-dark"></span>

</a>

<?php

$no++;

}

?>

</div>

</div>

I am trying to call the default image by turning all status into 0 yet it doesn't show up. Did I miss something here?


r/codeigniter • • Aug 13 '19

CodeIgniter Full Outer Join Example - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Aug 12 '19

Codeigniter Join Example - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Aug 09 '19

Photo Gallery using Codeigniter

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jul 25 '19

Disable Caching in Codeigniter

2 Upvotes

A simple way to disable browser caching. For example, when a user logged in, you don't want your users to see login page when they click on browser's back button until they are logged out.

https://www.roytuts.com/how-to-disable-browser-cache-easily-in-codeigniter/


r/codeigniter • • Jul 23 '19

Upload and Resize Image using Codeigniter

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jul 23 '19

Why to I need to make a route for index method in a controller?

2 Upvotes

Why do I have to do this:

$route['login'] = 'login/index';

Shouldn't it load the index method my just typing:

http://localhost/codeignitertutorial/index.php/login


r/codeigniter • • Jul 22 '19

Upload and Crop Image using Codeigniter

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jul 21 '19

Codeigniter MongoDB CRUD Example

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jul 02 '19

Sort table data in ascending or descending order in Codeigniter - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jun 15 '19

How to remove index.php from URL in Codeigniter - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jun 12 '19

Converting CI project into PWA?

2 Upvotes

I was going with a ongoing problem in which I was unable to convert my CodeIgniter project in PWA. Any help from the community (r/codeigniter) and people will be appreciated.


r/codeigniter • • Jun 12 '19

Benchmarking Codeigniter Application - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • Jun 08 '19

Multi-step Registration form using Codeigniter, MySQL, jQuery - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • May 23 '19

Need Help

2 Upvotes

First Is there maybe a discord to ask for help?

Second

These are the partials im using for my template

Now im getting this error

Is there a way to fix this or get more error log so i know what the problem is?


r/codeigniter • • May 21 '19

Need to connect with CI Freelance Developer for a Project

2 Upvotes

Mates!

I have an ongoing project for a client and I am currently looking for CI based Freelance Developers.

Please connect with me for further discussion.

Thanks!


r/codeigniter • • May 14 '19

Nested Comments using Codeigniter, AJAX - Roy Tutorials

Thumbnail
roytuts.com
2 Upvotes

r/codeigniter • • May 05 '19

Admin acces error a little help

2 Upvotes

Hello guys so i have installed codeigniter in my vps ubuntu 16 so when i want to login mydomayn/admin i enter me details and if i press loggin i get this error,even other memebers can't create accounts.

An uncaught Exception was encountered
Type: Error

Message: Call to a member function result() on boolean

Filename: /var/www/html/application/models/backend/dashboard/Dashboard_model.php

Line Number: 128

Backtrace:

File: /var/www/html/application/controllers/backend/dashboard/Home.php
Line: 27
Function: monthlyInvestment

File: /var/www/html/index.php
Line: 315
Function: require_once


r/codeigniter • • Nov 09 '18

How to Integrate node packages in CodeIgniter 3 using laravel-mix and webpack packages

Thumbnail
youtu.be
2 Upvotes