Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ronmarasigan committed Dec 15, 2020
2 parents 1ca7a13 + 9b3d0e4 commit f662c3c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
| WARNING: You MUST set this value!
|
*/
$config['base_url'] = '';
$config['base_url'] = 'http://lavalust-dev.local';

/*
|--------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions application/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
*/

$database['driver'] = 'mysql';
$database['hostname'] = '';
$database['username'] = '';
$database['hostname'] = 'localhost';
$database['username'] = 'root';
$database['password'] = '';
$database['database'] = '';
$database['database'] = 'dummy';
$database['charset'] = 'utf8';
?>
2 changes: 1 addition & 1 deletion application/controllers/Welcome.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
defined('PREVENT_DIRECT_ACCESS') OR exit('No direct script access allowed');

class Welcome extends Controller{
class Welcome extends Controller {

public function index() {
$this->load->view('welcome_page');
Expand Down
2 changes: 1 addition & 1 deletion system/core/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function model($classes)
public function view($viewFile, $data = array())
{
if(!empty($data))
extract($data);
extract($data, EXTR_SKIP);
ob_start();
if(file_exists(APP_DIR .'views/' . $viewFile . '.php'))
require_once(APP_DIR .'views/' . $viewFile . '.php');
Expand Down
5 changes: 5 additions & 0 deletions updates.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
New Updates

1. You can now call $this->load->database inside models, controllers and view so that you can use $this->db directly (see controller.php's database function)
2.database.php added like and between queries
3. view function. extract(EXTR_SKIP)

0 comments on commit f662c3c

Please sign in to comment.