Carlton layout should be by default with content:
<?php echo $this->layout()->content ?>
and then everybody will be happy.
Based on Yours instructions how to connect to database:
http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.connecting.factory-config
I have:
$config = new Zend_Config(
array(
'database' => array(
'adapter' => 'Mysqli',
'params' => array(
'host' => '127.0.0.1',
'dbname' => 'test',
'username' => 'webuser',
'password' => 'secret',
)
)
)
);
$db = Zend_Db::factory($config->database);
And what ? What should I do with this ? Where should I place it ? I don't
know and I don't see anything about that in this tutorial. In Symfony
Framework I have a good instruction:
http://www.symfony-project.org/jobeet/1_2/Propel/en/03
We need to tell symfony to use this database for the Jobeet project:
$ php symfony configure:database "mysql:host=localhost;dbname=jobeet" root
mYsEcret
The configure:database task takes three arguments: the PDO DSN, the
username, and the password to access the database. If you don't need a
password to access your database on the development server, just omit the
third argument.
The configure:database task stores the database configuration into the
config/databases.yml configuration file. Instead of using the task, you can
edit this file by hand.
And in Symfony I have known that I must only write dsn, login and password
in file config/databases.yml - easy and simply - very good instruction !!
In ZF I don't know - so maybe somebody should write about that in tutorial
and tell me ? Because I don't know.
--
View this message in context:
http://www.nabble.com/Is-there-anybody-from-Zend-team---tp25455352p25470850.html
Sent from the Zend Framework mailing list archive at Nabble.com.