Am using CakePHP running on XAMPP Server with PHP 5.3.5 i keep getting the error message syntax error, unexpected T_CONSTANT_ENCAPSED_STRING Line 38
Line 38 is \'P
Try and make it a bit more readable:
$isPublished = ($post['Post']['published'] == 1) ? true : false; echo $html->link( ife($isPublished, 'Published','Unpublished'), '/posts/' . ife($isPublished, 'disabled', 'enable') . '/' . $post['Post']['id'] );