Add user cost

This commit is contained in:
Frederic Guillot
2015-03-07 16:50:36 -05:00
parent 313318a40d
commit 7328995645
15 changed files with 378 additions and 8 deletions

View File

@@ -69,12 +69,12 @@ class User extends Base
/**
* Common layout for user views
*
* @access private
* @access protected
* @param string $template Template name
* @param array $params Template parameters
* @return string
*/
private function layout($template, array $params)
protected function layout($template, array $params)
{
$content = $this->template->render($template, $params);
$params['user_content_for_layout'] = $content;
@@ -90,10 +90,10 @@ class User extends Base
/**
* Common method to get the user
*
* @access private
* @access protected
* @return array
*/
private function getUser()
protected function getUser()
{
$user = $this->user->getById($this->request->getIntegerParam('user_id'));