Read the manual section on routes. Also, /app/config/routes.php is
quite well commented.

You should probably also look at the ibm tutorials if you want a quick
start on cake and mvc.

simon

On Nov 10, 12:12 am, BobDev <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> This is what I ended up doing. Now I have another question, by
> creating a controller for this "home" page, the home page 
> ishttp://localhost/project/home.
>
> So, at godaddy,www.myhome.combrings up the cake page telling me the
> database file is present. How do I set it up sowww.myhome.combrings
> up the page in the home directory?
>
> Thanks.
>
> On Nov 9, 2:27 pm, cakepan <[EMAIL PROTECTED]> wrote:
>
> > Hi Bob.  I'm pretty new to cakephp myself so hopefully I won't send
> > you off in the wrong direction with my ideas.  That said,  it seems to
> > me that this is a case where you would want to use the $uses array in
> > combination with one of the the find() and the set methods to pass all
> > of the desired inforrmation to your view code.  Something like:
>
> > <?php
> > class SomefunctionsController extends AppController {
> >        var $uses = array('Model1', 'Model2', 'Model3');
>
> >        function index() {
> >             $this->set('mod1data', 
> > $this->Model1->findByWhatever('whatever'));
>
> >             $this->set('mod2data', 
> > $this->Model2->findByWhateverElse('whateverelse'));
>
> >             $this->set('mod3data', 
> > $this->Model3->findBySomeField('somedesiredfieldvalue'));
> >        }
> > }
>
> > ?>
>
> > Now in your index view you should be able to access the data in the
> > $mod[123]data variables.  Something like $mod1data['fieldname']
> > right?  BTW, if you only need a single field from these models I think
> > that $this->Model->FieldName->generateList() will get that array for
> > you.
>
> > Anybody with a few more cake crumbs in their keyboard have any
> > comments on this logic?  As I said, I am still pretty new in the
> > kitchen myself but I'm hungry to learn as much and as quickly as
> > possible :)
>
> > Good luck.  Hope this helps and let me know if this approach makes any
> > sense.
>
> > cakepan - why do I always end up with the crumbs?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to