Skip to content

Commit

Permalink
Updated several issues including router file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hurley committed Jan 29, 2013
1 parent bbbf903 commit 061b5a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion com_lendr/site/controllers/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function execute()
$app = $this->getApplication();

// Get the document object.
$document = $app->getDocument();
$document = JFactory::getDocument();

$viewName = $app->input->getWord('view', 'dashboard');
$viewFormat = $document->getType();
Expand Down
6 changes: 2 additions & 4 deletions com_lendr/site/controllers/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ function execute()
$viewName = $app->input->get('view');
$app->input->set('layout','edit');
$app->input->set('view', $viewName);

$view = LendrHelperView::getView($viewName,'edit','html');


//display view
echo $view->render();
return parent::execute();
}
}
9 changes: 5 additions & 4 deletions com_lendr/site/lendr.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

//load tables
JTable::addIncludePath(JPATH_COMPONENT.'/tables');

//load classes
JLoader::registerPrefix('LendrController', JPATH_COMPONENT.'/controllers');

//Load plugins
JPluginHelper::importPlugin('lendr');
Expand All @@ -15,12 +18,10 @@
$app = JFactory::getApplication();

// Require specific controller if requested
if($controller = $app->input->get('controller','default')) {
require_once (JPATH_COMPONENT.'/controllers/'.$controller.'.php');
}
$controller = $app->input->get('controller','default');

// Create the controller
$classname = 'LendrController'.$controller;
$classname = 'LendrController'.ucwords($controller);
$controller = new $classname();

// Perform the Request task
Expand Down
5 changes: 3 additions & 2 deletions com_lendr/site/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

function LendrBuildRoute(&$query)
{

$segments = array();
return $segments;
}

function LendrParseRoute($segments)
{

}

0 comments on commit 061b5a2

Please sign in to comment.