Skip to content

Commit

Permalink
database changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shemona Singh authored and Shemona Singh committed Nov 30, 2017
1 parent 30aaaf7 commit 9ee081b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/application/controllers/All_Tweets.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function __Construct(){

public function index() {
$this->data['posts'] = $this->All_Tweets_Model->getPosts(); // calling Post model method getPosts()
$this->load->view('posts_view', $this->data); // load the view file , we are passing $data array to view file
$this->load->view('home', $this->data); // load the view file , we are passing $data array to view file
}

}
2 changes: 1 addition & 1 deletion www/application/models/All_Tweets_Model.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class PostModel extends CI_Model {
class All_Tweets_Model extends CI_Model {

function getPosts(){
$this->db->select("first_name,last_name,username");
Expand Down

0 comments on commit 9ee081b

Please sign in to comment.