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
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.