Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Integrating Ion_auth into Codeigniter

Featured Replies

Hi All,

 

I use Codeigniter as the base for my website, and I find it very easy to build using the structure as below:

    public function index()
    {
        $this->load->view('templates/header');
        $this->load->view('welcome_message');
        $this->load->view('templates/footer');
    }

 

You can see that I load the header, the content, and then the footer. The content changes based upon the web link I select (different controllers).

 

I have integrated the Ion_auth files into my installation, and changed the settings to my liking, but I am now stuck because I want a login username and password box in my header, not the full auth.php that Ion_Auth comes with.

I have tried recreating the login form and directing it to the login controller via this html:

 

<form action="auth/login" method="POST" id="loginform">
                <logintext>Username: <input type="text" name="identity" id="identity"> Password: <input type="password" name = "password" id="password"> <a href="javascript:{}" onclick="document.getElementById('loginform').submit(); return false;"> Go>></a></logintext>
            </form>
 

The "Go>>" link fires and loads the header and footer with the auth page in the middle, but does not seem to pass login details.

 

Any help would be really appreciated as i'm stumped.

 

Thanks

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.