السلام عليكم
Control.ctp
default.ctpكود:<?php echo $html->link('تسجيل الخروج', 'http://localhost/caketut/users/login', array('controller' => 'Users','action'=>'logout','class'=>'bar')); ?>
المشكلة كالتالي ....كود:<?php echo $html->docType(); ?> <html dir="RTL"> <head> <?php echo $html->charset(''); ?> <title> <?php echo $title_for_layout; ?> </title> <?php echo $html->meta('favicon.ico','favicon.ico',array('type' => 'icon'));?> <?php echo $html->css('style'); ?> </head> <body> <div id="container"> <div id="bar"> </div> <div id="header"> </div> <div id="content"> <?php echo $content_for_layout; ?> <div id="right"> <div class="articles"> </div> </div> <div id="left"> </div> </div> <div id="footer"> <?php echo $html->image('h.gif', array('alt' => 'CakePHP'))?> <?php echo $html->image('c.gif', array('alt' => 'CakePHP'))?> <?php echo $html->image('cake.power.gif', array('alt' => 'CakePHP'))?> </div> </div> </body> </html>
في الكود الأول لدي HyperLink يجب أن يكون موضعه في ال Class => bar . فسيكون بالتالى موضع Content_for_layout داخل الـ class bar في الملف default.ctp . لكن لنفترض وجود بيانات اخرى في باقي تقسيمات الملف default.ctp فإين سيتم وضع content_for_layout على اساس عرض جميع البيانات لجميع الاقسام .
اتمنى اكون وضحت المشكلة وشكراًً .....


رد مع اقتباس
