Corrections to markdown from import

This commit is contained in:
Salar Rahmanian 2017-03-03 13:41:45 -05:00
parent 173a9a9794
commit 0e270fd391
2 changed files with 15 additions and 15 deletions

View file

@ -19,19 +19,19 @@ Here is an overview of what is involved in getting your Laravel 4 apps authentic
## Install the Fastpass PHP SDK
** Create a folder to install the library in **
*****Create a folder to install the library in**
```
$ mkdir app/lib
$ mkdir app/lib/getsatisfaction
```
** Download & untar/unzip the Fastpass PHP SDK**
**Download & untar/unzip the Fastpass PHP SDK**
```
cd app/lib/getsatisfaction
wget "https://getsatisfaction.com/fastpass/php.tar.gz"
tar -zxvf php.tar.gz .
```
** Update ** *composer.json* ** adding the location of the library **
**Update** *composer.json* **adding the location of the library**
In the *autoload* section add the path *app/lib/getsatisfaction*
```
@ -48,13 +48,13 @@ In the *autoload* section add the path *app/lib/getsatisfaction*
},
```
** In the console run **
**In the console run**
```
$ composer update
$ php artisan dump-autoload
```
** Create a configuration file (e.g. app/config/getsatisfaction.php ) to hold your API tokens for the Fastpass service **
**Create a configuration file (e.g. app/config/getsatisfaction.php ) to hold your API tokens for the Fastpass service**
```php
<?php
@ -72,7 +72,7 @@ The above information can be found in the admin section once you log in as admin
We now need to create a login form to be used by the Fastpass service to use our authentication service provided by sentry to log users into Get Satisfaction.
** First we create a new controller** *app/controllers/SatisfactionController.php*
**First we create a new controller** *app/controllers/SatisfactionController.php*
```php
<?php
@ -150,7 +150,7 @@ class SatisfactionController extends BaseController
```
Now we need to create the two views used by this controller, one with a login form and one view which logs the user into the get satisfaction service.
** For the login form we create the view ** *app/views/satisfaction/login.blade.php*
**For the login form we create the view ** *app/views/satisfaction/login.blade.php*
This can be a copy of the login form you currently use within your Laravel app but with the form action changed to use the new *SatisfactionController*.
@ -194,7 +194,7 @@ Sign In -
@stop
```
** We create the view that logs user into Get Satisfaction ** *app/views/satisfaction/index.blade.php*
**We create the view that logs user into Get Satisfaction** *app/views/satisfaction/index.blade.php*
This is in effect a blank html document which calls the php class from the Fastpass library to log the current user into the Get Satisfaction service.

View file

@ -23,7 +23,7 @@ Here some simple notes on how I setup and use [pyenv][3] :
$ brew install pyenv pyenv-virtualenv
```
** Update your shell profile (.bashrc or .zshrc) adding the following to it (and restart your terminal) **
*****Update your shell profile (.bashrc or .zshrc) adding the following to it (and restart your terminal)**
```
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
@ -33,14 +33,14 @@ if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -
## Installing on Linux CentOS 7 ##
** Checkout from github **
**Checkout from github**
```
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
```
** Update your shell profile (.bashrc or .zshrc) adding the following to it (and restart your terminal) **
**Update your shell profile (.bashrc or .zshrc) adding the following to it (and restart your terminal)**
```
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
@ -51,26 +51,26 @@ $ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
## Using pyenv ##
** To install a new version of [Python][6] **
**To install a new version of [Python][6]**
```
$ pyenv install <version>
$ pyenv rehash
```
** To get a list of [Python][6] versions available **
**To get a list of [Python][6] versions available**
```
$ pyenv install -l
```
** To create a new virtual environment **
**To create a new virtual environment**
```
$ pyenv virtualenv [pyenv-version] [virtualenv-name]
```
** To use your new virtual environment within your project **
**To use your new virtual environment within your project**
1. Change to your projects root directory
1. Run: