On Jan 9, 1:56 pm, CakeAddict <[email protected]> wrote:
> Hello all,
>
> I recently found CakePHP and I'm in the process of moving my site from
> Drupal to CakePHP and I need your help.
>
> My goal:
> ======
> Converthttps://www.egengine.com/v01to a CakePHP application(s).
>
> First question? Do I need to create multiple controllers for about,
> news, forums. Based on what I have read I would say yes but then how
> do I add this controllers to the "main menu" so they appear on every
> page? I was thinking of having an "admin" application that had the
> action of "adding primary link" so I can create the proper links
> about, news, forums etc but how do I make every primary link available
> on every page the "CakePHP" way?

Yes news and forums would be separate controllers / models.  There are
a few ways to make links, you can have a separate table and store
links there, or you can make view elements (html fragments) that
contain your menus.
>
> Second question? How do I make a controller talk to another one , for
> example from the homepage(homepage application or page or controller?)
> request the news controller to give me the last 5 news?

requestAction() is one solution, but lots of requestAction() with no
caching will eventually lead to performance issues.  Personally, I
like to put that type of '5 recent articles' code in my models, and
then get the models I need when I need them with ClassRegistry::init
();

> Third question? In a typical site(cakephp.org for example) , how many
> applications are used?
>
> I'm assuming that:
>  cakephp.org ===> one application
> book.cakephp.org =====> another application
>
> Is this assumption correct?

yes.

> Thanks a lot for your time and sorry for the basic questions.

Anytime, that's what a mailing list is for :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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