This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| // import App from './App'; | |
| import './index.css'; | |
| function myFunc () { | |
| alert('Make myFunc the pFunc... omg that was horrible i am so sorry'); | |
| } | |
| function makeDoggy (e) { | |
| // Call this extremely useful function on an <img>. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| var link = 'https://s3.amazonaws.com/heykorean.image.public/common/SNS/2015/12/24/2OrHTw1ST8A.png'; | |
| var url = (<img src={link} />); | |
| //root la Dom goc | |
| ReactDOM.render(url, document.getElementById('root')); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| class Product { | |
| private $stockItem; | |
| private $sku; | |
| public function __construct($sku){ | |
| $this->sku = $sku; | |
| } | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * TODO : Codeto Training PHP | |
| * @author : SonHA (hason61vn@gmail.com) | |
| */ | |
| class Person { | |
| private $skills; | |
| public function __construct($skill) { | |
| $this->skills = $skill; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * TODO : Codeto Training PHP | |
| * @author : SonHA (hason61vn@gmail.com) | |
| */ | |
| class Person { | |
| private $skills; | |
| public function __construct() { | |
| $this->skills = array("PHP", "HTML", "CSS", "JavaScript", "Marketing", "SEO"); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| class User extends CI_Controller { | |
| public function index() | |
| { | |
| if($_SESSION['username'] == 'cuong' && $_SESSION['password'] == '123456') { | |
| $this->load->view('user/list_user'); | |
| } else { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Login Form</title> | |
| </head> | |
| <body> | |
| <h1>Login Form</h1> | |
| <?php echo validation_errors(); ?> | |
| <?php echo form_open('user/login'); ?> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| Navicat MySQL Data Transfer | |
| Source Server : SonHA | |
| Source Server Version : 50539 | |
| Source Host : localhost:3306 | |
| Source Database : php_mvc | |
| Target Server Type : MYSQL | |
| Target Server Version : 50539 | |
| File Encoding : 65001 | |
| Date: 2015-12-30 16:48:19 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <p>This is the requested post:</p> | |
| <p><?php echo $post->author; ?></p> | |
| <p><?php echo $post->content; ?></p> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <p>Here is a list of all posts:</p> | |
| <?php foreach($posts as $post) { ?> | |
| <p> | |
| <?php echo $post->author; ?> | |
| <a href='?controller=posts&action=show&id=<?php echo $post->id; ?>'>See content</a> | |
| </p> | |
| <?php } ?> |