Tnx Marwelln but that did not do it.
I investigated a bit more. Made a fresh install of Laravell 4.2. The only code I added now is:
// in: filters.php
App::before(function($request)
{
View::composer('*', function($view) {
echo '-> ' . $view->getName() . '<br>';
});
});
App::after(function($request, $response)
{
if($response instanceof Illuminate\Http\Response){
$originalContent = $response->getOriginalContent();
/**
* The line below makes the View::composer() run twice
*/
$test = (string) $originalContent; // ( Or $originalContent->render() )
}
});
// and in: bootstrap.compiled.php in class View
public function __construct( .. )
{
echo "in View::__construct($view)<br>";
//~
Result:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community