Média indocile – nouvelle formule
Kevin Crélerot
Kevin Crélerot
Derniers articles
Warning (2): count(): Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]Code Contextpublic function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 601, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'La BD de Krel', 'title' => 'Tout est ok', 'subtitle' => '', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1000/1511449744_couleurbd.jpg">', 'content_edition' => null, 'slug' => 'en-suisse-nous-sommes-chanceux-car-nous-sommes-libres', 'headline' => false, 'homepage' => 'col-md-6', 'like' => (int) 897, 'editor' => null, 'index_order' => (int) 605, 'homepage_order' => (int) 605, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 3, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 App\View\Helper\PosterHelper::getPosterRatio() - APP/View/Helper/PosterHelper.php, line 29 include - APP/Template/Posts/index.ctp, line 57 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 App\Middleware\IpMatchMiddleware::__invoke() - APP/Middleware/IpMatchMiddleware.php, line 28 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 164
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]
Code Context
post--nothumb">
public function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 601, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'La BD de Krel', 'title' => 'Tout est ok', 'subtitle' => '', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1000/1511449744_couleurbd.jpg">', 'content_edition' => null, 'slug' => 'en-suisse-nous-sommes-chanceux-car-nous-sommes-libres', 'headline' => false, 'homepage' => 'col-md-6', 'like' => (int) 897, 'editor' => null, 'index_order' => (int) 605, 'homepage_order' => (int) 605, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 3, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }
count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 3 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]Code Contextpublic function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 601, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'La BD de Krel', 'title' => 'Tout est ok', 'subtitle' => '', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1000/1511449744_couleurbd.jpg">', 'content_edition' => null, 'slug' => 'en-suisse-nous-sommes-chanceux-car-nous-sommes-libres', 'headline' => false, 'homepage' => 'col-md-6', 'like' => (int) 897, 'editor' => null, 'index_order' => (int) 605, 'homepage_order' => (int) 605, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 3, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 4 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Chronique / Tout est ok
Kevin Crélerot
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]
Code Context
post--nothumb">
public function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 384, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Mes excuses', 'subtitle' => '', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1200/1504881449_excuses.jpg">', 'content_edition' => null, 'slug' => 'mes-excuses', 'headline' => false, 'homepage' => 'col-md-12', 'like' => (int) 923, 'editor' => null, 'index_order' => (int) 382, 'homepage_order' => (int) 385, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }
count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 3 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]Code Contextpublic function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 384, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Mes excuses', 'subtitle' => '', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1200/1504881449_excuses.jpg">', 'content_edition' => null, 'slug' => 'mes-excuses', 'headline' => false, 'homepage' => 'col-md-12', 'like' => (int) 923, 'editor' => null, 'index_order' => (int) 382, 'homepage_order' => (int) 385, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 4 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Actuel / Mes excuses
Kevin Crélerot
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]
Code Context
post--nothumb">
public function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 192, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Robots', 'subtitle' => 'Il y a une théorie qui dit qu'un jour, les robots nous dirigeront...', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1200/1499588397_bdrobot.jpg" width="1076" height="8488">', 'content_edition' => null, 'slug' => 'robots', 'headline' => false, 'homepage' => '', 'like' => (int) 907, 'editor' => null, 'index_order' => (int) 115, 'homepage_order' => (int) 111, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }
count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 3 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]Code Contextpublic function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 192, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Robots', 'subtitle' => 'Il y a une théorie qui dit qu'un jour, les robots nous dirigeront...', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w1200/1499588397_bdrobot.jpg" width="1076" height="8488">', 'content_edition' => null, 'slug' => 'robots', 'headline' => false, 'homepage' => '', 'like' => (int) 907, 'editor' => null, 'index_order' => (int) 115, 'homepage_order' => (int) 111, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 4 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Actuel / Robots
Il y a une théorie qui dit qu'un jour, les robots nous dirigeront...
Kevin Crélerot
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]
Code Context
post--nothumb">
public function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 105, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Rats go', 'subtitle' => 'Parfois, les événements ne prennent pas la tournure que l'on aurait imaginé...', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat1.jpg"><br><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat2.jpg"><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat3.jpg"><br><br><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044305_bdrat4.jpg"><br><br>', 'content_edition' => null, 'slug' => 'rats-go', 'headline' => false, 'homepage' => 'col-md-6', 'like' => (int) 959, 'editor' => 'Florence Perret', 'index_order' => (int) 15, 'homepage_order' => (int) 21, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }
count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 3 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Warning (2): count() [<a href='https://secure.php.net/function.count'>function.count</a>]: Parameter must be an array or an object that implements Countable [APP/View/Helper/PosterHelper.php, line 21]Code Contextpublic function hasPoster($post){
return ($post->poster_attachment || count($post->attachment_images) > 0);
}
$post = object(App\Model\Entity\Post) { 'id' => (int) 105, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'publish_date' => object(Cake\I18n\FrozenTime) {}, 'notified' => null, 'free' => true, 'status' => 'PUBLISHED', 'priority' => 'NORMAL', 'readed' => null, 'subhead' => 'LA BD DE KREL', 'title' => 'Rats go', 'subtitle' => 'Parfois, les événements ne prennent pas la tournure que l'on aurait imaginé...', 'subtitle_edition' => null, 'content' => '<img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat1.jpg"><br><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat2.jpg"><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044304_bdrat3.jpg"><br><br><img class="img-responsive " src="https://media.bonpourlatete.com/default/w700/1498044305_bdrat4.jpg"><br><br>', 'content_edition' => null, 'slug' => 'rats-go', 'headline' => false, 'homepage' => 'col-md-6', 'like' => (int) 959, 'editor' => 'Florence Perret', 'index_order' => (int) 15, 'homepage_order' => (int) 21, 'original_url' => null, 'podcast' => false, 'tagline' => null, 'poster' => null, 'category_id' => (int) 5, 'person_id' => (int) 55, 'post_type_id' => (int) 1, 'post_type' => object(App\Model\Entity\PostType) {}, 'person' => object(App\Model\Entity\Person) {}, 'tags' => [ (int) 0 => object(App\Model\Entity\Tag) {} ], 'attachments' => [ (int) 0 => object(Cake\ORM\Entity) {} ], 'category' => object(App\Model\Entity\Category) {}, '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Posts' }count - [internal], line ?? App\View\Helper\PosterHelper::hasPoster() - APP/View/Helper/PosterHelper.php, line 21 include - APP/Template/Element/Posts/default.ctp, line 4 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1879 Cake\View\View::element() - CORE/src/View/View.php, line 783 include - APP/Template/Posts/index.ctp, line 79 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1435 Cake\View\View::_render() - CORE/src/View/View.php, line 1393 Cake\View\View::render() - CORE/src/View/View.php, line 892 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791 App\Controller\PersonsController::view() - APP/Controller/PersonsController.php, line 51 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 256
Actuel / Rats go
Parfois, les événements ne prennent pas la tournure que l'on aurait imaginé...
Kevin Crélerot