Created
September 10, 2014 18:01
-
-
Save sergiopvilar/90e885b9113adbac2609 to your computer and use it in GitHub Desktop.
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 ConfigurationController extends BaseController{ | |
protected $layout = 'layouts.dashboard'; | |
function index(){ | |
$articlesNumber = array(10, 20, 40, 60, 80, 100); | |
$model = UserBO::getConf(); | |
$this->layout->content = View::make('configuration.index') | |
->with(compact('model')) | |
->with('articlesNumber', $articlesNumber); | |
} | |
} |
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 UserBO{ | |
public static function getConf(){ | |
return Userconf::where('user_id', Auth::getUser()->getId())->first(); | |
} | |
public static function save($c){ | |
return $c->save(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment