CREATE TABLE IF NOT EXISTS `firmas` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `nazw` varchar(255) NOT NULL, `adress` varchar(255) NOT NULL, `phone` varchar(100) NOT NULL, `mobile` varchar(100) NOT NULL, `email` varchar(150) NOT NULL ) ;
<body> <header> <div class="pierwszy"> <?php ?> </div> lalalaa <div class="drugi"> <?php ?> </div> <center> <nav> <?php ?> </nav> </center> </header> <section> <section> <footer> <div class="nagl"> </div> <footer> </body>
probowalem to zrobic tak
<?php class FirmasController extends AppController{ public function index(){ $this->set('dane',$this->Firma->find('all')); } } ?>
<?php class Firma extends AppModel { public $name = 'Firma'; }
<table style='color:red;'> <?php foreach ($dane as $ppp): ?> <tr> </tr> <?php endforeach; ?> </table>
i w layouts umiesc
kod
<?php $this->html->element('test'); ?>
ale nie zadzialalo przy wywolaniu strony glownej jakies pomysly macie
