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
Form Action: resolvedtdt.com/php%20form | |
Required Hidden Form Elements: | |
form - the google id of the google form | |
redirect - where you want the browser to go after the google form is saved | |
How to find input names and form name: | |
1) When editing the Google Form, click underneath "Responses" "Get pre-filled URL" | |
2) Just hit submit | |
3) Copy the link |
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
$app->get('user/{id}', function($id) use ($app) { | |
return response() | |
->json([ | |
"name" => 'Billy', | |
'age' => '42' | |
]) | |
->header('Access-Control-Allow-Origin', '*'); | |
}); |
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
module.exports = { | |
props: [ | |
'app' | |
], | |
template: require('./analytics.template.html') | |
}; |
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
data: { | |
currentView: 'edit-view', | |
app: {}, | |
viewData: { | |
'edit-view': {}, | |
'about-view': {} | |
} | |
} |
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
module.exports = { | |
data: function() { | |
return { | |
external: {} | |
}; | |
}, | |
props: [ | |
'app' | |
], |
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
ready: function() { | |
this.app.viewData['analytics-view'].ready = true; | |
this.app.viewData['analytics-view'].model = this; | |
} |
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
methods: { | |
call: function(view, name) { | |
if(this.viewData[view].ready == true) { | |
this.viewData[view].model[name](); | |
} | |
} | |
} |
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
module.exports = { | |
data: function() { | |
return { | |
external: {} | |
}; | |
}, | |
props: [ | |
'app' | |
], |
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
else { | |
this.viewData[view].funcs_to_call.push(name); | |
} |
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
var methods = this.app.viewData[view].funcs_to_call; | |
for(var i in methods) | |
{ | |
this[methods[i]](); | |
} |
OlderNewer