}
}
function viewArticlesByUser ($id)
{
IndexController::viewArticlesByUser() - CORE/app/controllers/index_controller.php, line 179
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 276
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 248
[main] - CORE/app/webroot/index.php, line 83
$this->set('lastCompanies',$this->Company->getLatestCompany(5));
if($id)
{
$articles = $this->Article->findAll(array('Article.userName'=>$id),null,'Article.created desc');
IndexController::viewArticlesByUser() - CORE/app/controllers/index_controller.php, line 189
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 276
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 248
[main] - CORE/app/webroot/index.php, line 83
Context |
Code$this = array("uses" => array, "helpers" => array, "layout" => "portal", "components" => array, "name" => "Index", "here" => "/article/viewbyuser/", "webroot" => "/", "action" => "viewArticlesByUser", "params" => array, "data" => null, "paginate" => array, "viewPath" => "index", "layoutPath" => null, "viewVars" => array, "pageTitle" => false, "modelNames" => array, "base" => "", "autoRender" => false, "autoLayout" => true, "view" => "View", "ext" => ".ctp", "__viewClass" => null, "output" => null, "plugin" => null, "cacheAction" => false, "persistModel" => false, "webservices" => null, "passedArgs" => array, "_log" => null, "modelClass" => "Article", "modelKey" => "index", "Email" => array, "Tag" => array, "Pagination" => array, "RequestHandler" => array, "Session" => array, "Article" => array, "Comment" => array, "Company" => array, "Calendar" => array, "Event" => array, "ArticleTag" => array, "EventTag" => array, "Project" => array, "Lang" => array)
$url = "/index/"
$status = null
$exit = false
$c = "Session"
$path = array(0 => "Session")
$resp = null
header($status);
}
if ($url !== null) {
header('Location: ' . Router::url($url, true));
}
header - [internal], line ??
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 503
IndexController::viewArticlesByUser() - CORE/app/controllers/index_controller.php, line 204
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 276
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 248
[main] - CORE/app/webroot/index.php, line 83