Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 13,308
» Latest member: roll3lg
» Forum threads: 69,240
» Forum posts: 430,598

Full Statistics

Latest Threads
Traffic Tracking Library
Forum: CodeIgniter 4 Addins
6 minutes ago
» Replies: 0   » Views: 1
[feature] Encrypter
Forum: CodeIgniter 4 Roadmap
9 minutes ago
» Replies: 11   » Views: 330
Removed Model and Control...
Forum: Model-View-Controller
19 minutes ago
» Replies: 2   » Views: 11
Different timezone betwee...
Forum: CodeIgniter 4 Discussion
47 minutes ago
» Replies: 0   » Views: 8
Advance Tutorials
Forum: CodeIgniter 4 Discussion
56 minutes ago
» Replies: 3   » Views: 91
Model for the login, anyb...
Forum: General Help
1 hour ago
» Replies: 3   » Views: 58
Issues accessing CI forum...
Forum: Lounge
1 hour ago
» Replies: 1   » Views: 20
Duplicate record in postg...
Forum: General Help
4 hours ago
» Replies: 3   » Views: 77
Post's comments
Forum: Best Practices
5 hours ago
» Replies: 3   » Views: 101
Is future CI will impleme...
Forum: Lounge
Yesterday, 06:18 PM
» Replies: 1   » Views: 102

  Your best suggestions to implement Google AMP ?
Posted by: Coool6 - 03-21-2019, 12:07 PM - Forum: General Help - Replies (4)

Hello Wonderful Community ! 

I'm interested regarding what's the best solution to implement Google AMP in a Codeigniter structure ?

In a nutshell, the concept is to have another version of your HTML (mainly) matching all the AMP specs and easily-access through a suffixed url like http://www.yoursite.com/yourpage/amp 
The specs : https://www.ampproject.org/docs/fundamentals/spec
For example <img tag must become <amp-img, image URL must contains a pre-url of a CDN, etc. 

How would you do that ? What will be the best solution ? 
I hope Cloudflare will have an automatic convert tools for that, but that's not the case unfortunately.

If some people here already implemented that, I will be happy to hear what choice they did. And if you didn't do that already, I'm interested about your opinion too ! 

Thanks a lot Smile

  login prompt bypassed
Posted by: scatman98 - 03-21-2019, 11:21 AM - Forum: General Help - Replies (1)

i have an admin account setup in the database which allows login from login form but if someone knows the url of pages protected by login they can bypass the login

how do i protect the pages from not being viewed without login?

  Multiple applications server setup
Posted by: aniketmagadum - 03-21-2019, 11:17 AM - Forum: Installation & Setup - No Replies

Hello everyone,
        I have created a multiple applications inside of  codeingiter which share the common system folder by following the guide in Code Igniter documentation.
        The setup is as follows
         (I have removed the application and system folder outside the public_html as I have read it provides security)
                  index.php  -Points to project1 
                  project2.php  --Points to project2 

          I am able to call my applications in the following way 

  • example.com
  • example.com/project2.php
    Now the problem is that I want to setup these on a server as the following Urls.
  •  example.com
  • project2.example.com
    How can I achieve this ...I am a newbie to codeigniter..                        

  compatibility site - session and unique user id tie in with paypal
Posted by: scatman98 - 03-21-2019, 11:17 AM - Forum: General Help - Replies (2)

im working on a couple compatibility website based on astrology. the workflow of the website is as below
1. user lands on local website
2. user enters his and partners birth details like date place time of birth (data not stored in database)
3. local website sends this data to a third party vendor which calculates the astrological charts and sends it back (data stored in mysql - multiple rows and columns - one big chunk, no unique identifier sent by vendor)
4. local website performs calculations and spits out a result
5. user pays through paypal
6. local website displays the result.

now the status is that paypal is working, and compatibility score is coming out fine


i want the session to be set and unique id to be set so that each user is uniquely traceable and one user doesnt end up getting results mixed up with another user.

How do i go about doing this? step by step instruction will be very much appreciated.

  Post's comments
Posted by: wishmaster - 03-21-2019, 08:03 AM - Forum: Best Practices - Replies (3)

Hi, colleagues!

For my small blog I've added ability to post comments. Now it's just plain, w/o ability to post an answer to the comment. But I am planning to add this ability. I do not want invent the wheel, so may be anybody has useful link with some help/useful information regarding my question?
Especially I need info about DB structure.

Thank you.

  Undefined index: operater_id
Posted by: stefan.stanisavljevic - 03-21-2019, 02:25 AM - Forum: General Help - No Replies

I will attach my problem, thx in advance

everity: Notice
Message: Undefined index: operater_id
Filename: ajax/ponude.php
Line Number: 49
File: /var/www/html/almaks_gps_secured/application/views/ajax/ponude.php
Line: 49
Function: _error_handler

File: /var/www/html/almaks_gps_secured/application/controllers/Ponude.php
Line: 93
Function: view

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

Attached Files
.php   ponude.php (Size: 4.59 KB / Downloads: 5)

  Ion-auth 4 routes not working
Posted by: akjackson1 - 03-20-2019, 03:18 PM - Forum: CodeIgniter 4 Addins - Replies (2)

I used the manual installation method of CI4, and did the same for the updated version of Ion-Auth designed to work with CI4. After copying over the files into my CI4 installation I discovered that it is not routing correctly. When navigating to /auth/login, I get the error message "Controller or its method is not found: App\Controllers\Auth::login". 

I suspect I've not done something correctly related to namespacing, since if I change:

namespace IonAuth\Controllers;
class Auth extends \CodeIgniter\Controller


namespace App\Controllers;
use CodeIgniter\Controller;
class Auth extends Controller

It works routes correctly, but I then get the error: "Class 'IonAuth\Libraries\IonAuth' not found".

What am I doing wrong here?

  New subforum
Posted by: ciadmin - 03-20-2019, 02:23 PM - Forum: CodeIgniter 4 Discussion - Replies (1)

I have created a new subforum for CodeIgniter 4 addins ... it is time Smile
I moved a couple of posts, that were here, to the new subforum.

  Matrix Admin Template CI v3.1.10
Posted by: mihaic - 03-20-2019, 04:51 AM - Forum: Addins - Replies (1)

If anyone is interested in the Matrix Admin Free template built with bootstrap v4 integrated with Codeigniter v3.1.10, here is a link for it:


Best regards!

  Routing and $_SERVER['SCRIPT_NAME'] removal
Posted by: qwertyman - 03-20-2019, 04:48 AM - Forum: Issues - No Replies

Hi, I have a website built using CodeIgniter 3.1.9.

I have Apache configured with the following RewriteRule as recommended here https://www.codeigniter.com/userguide3/g...x-php-file so that the index.php part of a url is optional.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I noticed that the following url: http://www.example.com/index.phptest loads the same page as http://www.example.com/index.php/test. I had a look through the routing code in core/URI.php and saw that the following code was responsible:

if (isset($_SERVER['SCRIPT_NAME'][0]))
    if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0)
        $uri = (string) substr($uri, strlen($_SERVER['SCRIPT_NAME']));
    elseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0)
        $uri = (string) substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));

I replaced this code with the following to fix the issue:

if (isset($_SERVER['SCRIPT_NAME'][0]))
   if ($uri === $_SERVER['SCRIPT_NAME'])
       $uri = '';
   elseif (strpos($uri, $_SERVER['SCRIPT_NAME'] . '/') === 0)
       $uri = (string) substr($uri, strlen($_SERVER['SCRIPT_NAME'] . '/'));
   elseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0)
       $uri = (string) substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));

Additionally, I checked out a list of sites that use CodeIgniter and found the following with the same issue:
**links redacted**

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.