Code igniter view page throw this error

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant user_array - assumed ‘user_array’

Filename: views/userview.php

Line Number: 9


File: F:\xammp\htdocs\project\codeigniter\application\views\userview.php
Line: 9
Function: _error_handler

File: F:\xammp\htdocs\project\codeigniter\application\controllers\User_details.php
Line: 18
Function: view

File: F:\xammp\htdocs\project\codeigniter\index.php
Line: 315
Function: require_once

actually i’m a beginner in codeigineter just i learn this vedio

When you get the Use of undefined constant ... error it’s often because you’ve missed the $ off the beginning of a variable name.

To help you any further we really need to see some code - ideally the contents of application\views\userview.php and application\controllers\User_details.php


wow super fretburner

it’s working fine

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.