Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6704325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:16:32+00:00 2026-05-26T07:16:32+00:00

I am a beginner learning codeigniter to build a website. For authentication feature, i

  • 0

I am a beginner learning codeigniter to build a website. For authentication feature, i use tank_auth library and it works fine if I dont alter the tank_auth table field names.

Then, to combine the tank_auth’s ‘users’ table with my existing ‘users_info’ table, I modified the field names ‘new_email_key’ and ‘username’ as NewEmailKey and UserName respectively.

The above specified field name changes were done in libraries\Tank_auth.php, models\tank_auth\users.php and controllers\auth.php files.

In the database, the submitted data are stored right in the table. But in the activation email received, i am getting the following errors:

Message: Undefined variable: username

Filename: email/activate-html.php

Message: Undefined variable: new_email_key

Filename: email/activate-html.php

Is it safe to use the tank_auth table field names as it is in our CI projects?

Is there any clear documentation written on how to customize and use the tank_auth ‘users’ table field names?

I am stuck with these error messages as i dont figure out where else the field names need to be altered in tank_auth.

Any help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:16:33+00:00Added an answer on May 26, 2026 at 7:16 am

    These errors you are listing are simple “undefined variable” errors, like it says, I’m not sure what is confusing here.

    Have you looked at the mailing function? Or googled the error meaning? Tank Auth’s mail uses an array for sending mail.

    $data['username'] = "Bob";
    $data['new_email_key'] = "1249ufasiojlk215ifasdy243jhaslkjhasjkghasd";
    
    mail_function_name($data)
    

    that data is passed to the mail function which uses the /email/activate-html.php view/template.

    I don’t believe there is Tank_Auth modification documentation as the PHP is VERY straight forward, and well commented, if you are having trouble with it, it means you don’t understand the code, and the fault lies in your ability to understand WHAT is being done in the code, not in the documentation of TankAuth. Documentation won’t really save you here.

    Learn what the errors are (ie, undefined variable) and try to fix them one by one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a beginner at ASP.NET and I was learning how to use it through
I am new to C++. A Beginner. While I was learning the casting feature
I'm a beginner learning some assembly, when preserving the ESP register before a function
I'm a beginner (self-learning) programmer learning C++, and recently I decided to implement a
This is a beginner's rails learning confusion. When I learn rails, from time to
I'm a beginner programmer and I'm learning my first language, C. I'm learning mostly
I'm a beginner to C programming. I'm trying to learning how to code a
I am a beginner in Haskell so please bear with me. (Just started learning
I am new to Scala, just started learning, so this is basic beginner question.
What's the ideal Python version for a beginner to start learning Python? I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.