Welcome Guest, Not a member yet? Register   Sign In
Blank page?
#1

[eluser]whygod[/eluser]
Why these codes below is not displaying anything?

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Admin extends MX_Controller
{
public $data;

    function __construct ()
    {
        parent::__construct();
        
  $this->data['message'] = '';
  $this->data['title'] = 'AdminS9 Control Panel';
  
        $this->load->model('users_model');
    }

    function index(){
  $this->data['password_header'] = $this->load->view('password_header', $this->data, TRUE);
  $this->load->view('password', $this->data);  

    }

}


I think there is an error causing this.
So what's causing this problem?

Thanks in advance.
#2

[eluser]whygod[/eluser]
By the way I'm using XAMPP for this.

#3

[eluser]Tpojka[/eluser]
Has set echo of variable
Code:
<?=$password_header;?>
in views/password.php file?
#4

[eluser]CroNiX[/eluser]
Check your php error logs, or enable display_errors so you see the error.
#5

[eluser]Tim Brownlaw[/eluser]
I see you are using HMVC!
So a few questions...
1. Where are your views located?
2. Where is your Model located?

Plus you should have been seeing a few errors being reported.

Read up on XAMPP and display_errors if are not seeing any...
Also make sure that in your index.php that you have define('ENVIRONMENT', 'development'); set
#6

[eluser]whygod[/eluser]
I'm using XAMPP
Where to find error_log in XAMPP?
#7

[eluser]whygod[/eluser]
Problem solved.
I already found it.

#8

[eluser]Tim Brownlaw[/eluser]
So what was the fix for your issue?

It'd be nice to share it!

Cheers
Tim
#9

[eluser]whygod[/eluser]
error_log is located at /xampp/php/logs/




Theme © iAndrew 2016 - Forum software by © MyBB