I'm getting no output from the debug function when I visit this URL:
http://domain.com/blog/posts/read/2008Can someone tell me if I'm doing this right?
I've created a view file named "read.ctp" inside the views/posts folder:
/views/posts/read.ctp
It contains nothing but this code: <?php debug($posts);?>
Am I doing this right?
The little query-shower at the bottom of the page says shows me:
SELECT `Post`.`id`, `Post`.`name`, `Post`.`date`, `Post`.`content`, `Post`.`user_id`, `User`.`id`, `User`.`name`, `User`.`email`, `User`.`firstname`, `User`.`lastname` FROM `posts` AS `Post` LEFT JOIN `users` AS `User` ON (`Post`.`user_id` = `User`.`id`) WHERE DATE(`Post`.`date`) = '<2008-12-31 23:59:59'
so I assume it's running the query correctly.
Any help would be appreciated,
Matthew