This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Model extends CI_Model { | |
/** | |
* The database table to use. | |
* @var string | |
*/ | |
public $table_name = ''; |
This file contains 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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
require_once(FUEL_PATH.'models/Base_module_model.php'); | |
class Doctor_entries_model extends Base_module_model | |
{ | |
public $has_many = array( | |
'clinical_focus' => array('clinical_focus_entries_model'), | |
'specialties' => array('specialty_entries_model'), | |
'clinics' => array('clinic_entries_model'), |
This file contains 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
$xsmall: 320px; | |
$small: 544px; | |
$medium: 767px; | |
$large: 992px; | |
$xlarge: 1200px; | |
$laptopl: 1440px; | |
$sixteen: 1600px; | |
@mixin media-breakpoint($media) { | |
@if $media == xs { |
This file contains 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
function doctor_profile($slug = NULL) | |
{ | |
$data['doctor'] = fuel_model( | |
'doctors', | |
array( | |
'find' => 'one', | |
'where' => array('slug' => $slug), | |
'return_method' => 'object' | |
) | |
); |
This file contains 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
$data['doctor'] = fuel_model( | |
'doctors', | |
array( | |
'find' => 'one', | |
'where' => array('name' => $name), | |
'return_method' => 'object' | |
) | |
); | |
then in your view |
This file contains 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
// index.html | |
<div id="chat"> | |
<ul id="message"> | |
<li v-for="message in messages" :key="message.id">{{ message }}</li> | |
</ul> | |
<form @submit="send"> | |
<input type="text" v-model="message"> | |
<button>Send</button> | |
</form> |
This file contains 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
test |
This file contains 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
module.exports = { | |
entry: "./src/popup.jsx", | |
resolve: { | |
extensions: [".js", ".jsx"] | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /(node_modules|bower_components)/, |
This file contains 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
onFileSelected(event) { | |
const cloudName = 'dhs0egcjt' | |
const unsignedUploadPreset = 'ideliveryuploadpreset_1' | |
this.selectedFile = event.target.files[0] | |
const fd = new FormData() | |
fd.append('upload_preset', unsignedUploadPreset) | |
fd.append('tags', 'item_images') | |
fd.append('file', this.selectedFile) | |
this.isUploading = true | |
axios |