It would be nice if we had a plugin that allows Laravel to play nice with Ember. Put simply I would like to create an easy way for Laravel to output JSON strings in a way that Ember likes.
return Model::find($id);| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <link rel="stylesheet" href="<?php echo Request::root() ?>css/normalize.css"> | |
| <link rel="stylesheet" href="<?php echo Request::root() ?>css/style.css"> | |
| <link rel="stylesheet" href="<?php echo Request::root() ?>/css/bootstrap.css" type="text/css"> | |
| <link rel="stylesheet" href="<?php echo Request::root() ?>/css/style.css" type="text/css"> | |
| <style type="text/css"> |
| #!/bin/bash | |
| FUNCTIONS_IMPORTED="CHECK!" | |
| function deploy() { | |
| echo -e " ${bold}deploying...${normal}" | |
| (cd $deploy_menu; cvs checkout $MODULE;) | |
| } | |
| function check_module() { |
I wish there were an ember-data adapter that would use the url instead of using query strings for looking up related models
For example pull from url/model/model_id/releatedModel/ instead of pulling from url/relatedModel?ids="3,4,5"
You have a company with different departments filled with employees serving different roles in the company. So you would have models like this in Ember:
| Ember.Handlebars.registerBoundHelper('icon', function(iconName) { | |
| iconName = iconName.toString(); | |
| return new Handlebars.SafeString("<span class='glyphicon glyphicon-"+iconName+"'></span>"); | |
| }); |
| <?php | |
| // Adding this to your app/artisan.php file will | |
| // do a quick confirmation that you really do want | |
| // to run this command when in production environment | |
| if (App::environment() === 'production') { | |
| echo "\033[0;33m======== WARNING ========\n"; | |
| echo "===== IN PRODUCTION =====\n"; | |
| echo "=========================\n"; |
| # Created by http://www.gitignore.io | |
| ### Laravel4 ### | |
| /bootstrap/compiled.php | |
| .env.*.php | |
| .env.php | |
| ### Composer ### | |
| composer.phar |
| <?php | |
| class ApiController extends Controller | |
| { | |
| public function missingAction($actionID) | |
| { | |
| $request_type = $_SERVER['REQUEST_METHOD']; | |
| /*------ |