I made a blog database and created some tables in it. I have wriTten the related models and controller files for CakePHP. Also, I have been successful in adding a test user to the blog database using Cake's scaffolding feature. So far so good.
However, I am facing problems when getting into the Views part of Cake PHP.
I created a "default.ctp" file and placed it into apps/views/layouts folder. Following is the file:
<html>
<head>
<title>Cake PHP Application</title>
<?=$html->css('styles');?>
</head>
<body>
<div id="container">
<div id="content">
<?=$content_for_layout;?>
</div>
</div>
</body>
</html>
Ben de app / webroot / css dizinine Styles.css soktuk. Benim tarayıcıda bu çalıştırdığınızda Şimdi, ben aşağıdaki ekran alıyorum
css('styles');?>
(default) 6 queries took 14 ms
Nr Query Error Affected Num. rows Took (ms)
1 DESCRIBE `posts` 5 5 3
2 DESCRIBE `users` 5 5 3
3 DESCRIBE `tags` 3 3 3
4 DESCRIBE `posts_tags` 3 3 3
5 SELECT COUNT(*) AS `count` FROM `posts` AS `Post` LEFT JOIN `users` AS `User` ON (`Post`.`user_id` = `User`.`id`) WHERE 1 = 1 1 1 1
6 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 1 = 1 LIMIT 20
2 2 1
Bu iskele özelliğini kullanarak yok gibi Neden bu mesajları görüntüleme değildir. Ben benim stilleri kullanıyorum gibi iskele daha farklı olacağını biliyorum. Ama, neden hiçbir şey göstermiyor? Ne eksik?