unexpected T_CONSTANT_ENCAPSED_STRING

前端 未结 4 1460
死守一世寂寞
死守一世寂寞 2021-01-13 18:56

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

4条回答
  •  不知归路
    2021-01-13 19:40

    This works for me... You had an old style php tag and had single quotes in the wrong spots.

    I'm not sure what "ife" is, most likely an if statement gone wrong ?

    Post Listings

    Here is a list of existing posts

    ID title content Last Modified published   Action
    link( ($post['Post']['published'] == 1 ? 'Published' : 'Unpublished'), '/posts/' . ($post['Post']['published'] == 1 ? 'disabled' : 'enabled') . '/' . $post['Post']['id'] ); ?> link( 'Edit', '/posts/edit'.$post['Post']['id']);?> link( 'Delete', '/posts/delete/'.$post['Post']['id']);?>
    No post found.

提交回复
热议问题