Hi,
I have just started cakephp and got working an example.

if you look at a hello world example from cakephp then I have these files.
I have a table name called users and looking at the blog tutorial that name 
users should refer to a database name .

q1)My example works but what is correct? Is the name 'users' a table or 
databasename?

q2)How do I refer to 2 database tables in the 1 view as do I need another 
model and controller for every database table I access?

http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html

<?php
class User extends AppModel
{
var $name='User';
}
?>

<?php
class UsersController extends AppController
{
var $name='Users';
function index()
{
}
}
?>

<html>

<?php

/*http://127.0.0.1/cakephp/users/    */
echo "Hello World";
?>
</html>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to