nice!! i was looking for this information as well.
On Wednesday, February 26, 2014 4:58:21 PM UTC-5, euromark wrote:
>
> Take a look at the ideas here:
> https://github.com/MenschDankeGmbH/cake-menu_builder
> Maybe that helps.
>
>
> Am Samstag, 22. Februar 2014 11:46:16 UTC+1 schrieb Sam Clauw:
>>
What you are really wanting is the ViewModel. CakePHP does not implement
that explicitly but you can get the same functionality by creating a helper
and accessing your model in the helper keeping the view clean.
HTH
Tarique
On Thu, Feb 27, 2014 at 1:09 AM, Sam Clauw wrote:
> Okay, let's supp
Take a look at the ideas here:
https://github.com/MenschDankeGmbH/cake-menu_builder
Maybe that helps.
Am Samstag, 22. Februar 2014 11:46:16 UTC+1 schrieb Sam Clauw:
>
> What I'm trying to do is to put two dynamic navigation menus in my CakePHP
> layout (default.ctp). The main menu should have mu
No, you don't want to anything in the view that involves querying the database.
The controller action for that given page should know what menu to fetch from
database and set that to the view.
/thomas
On 26 Feb 2014, at 20:39, Sam Clauw wrote:
> Okay, let's suppose I want to put my menu in
Okay, let's suppose I want to put my menu in an element called
"top_menu.ctp". I want to get my data out of the database, so probably, I
shouldn't connect with my database in that .ctp file. I wonder if that's
the right way to do so? MVC normally split us the model logic and the view
logic, but
hi,
You can put the tree menu directly in the layout or in a separate menu
elements and include them in a specific place on your layout.
If you want to highlight active link in your menu, you can do the
following:
// menu
..link to
contacts views
..link to
contacts views
...
// in Posts/
What I'm trying to do is to put two dynamic navigation menus in my CakePHP
layout (default.ctp). The main menu should have multiple levels (with a
dropdown functionality). The secondary menu is the one that shows the
dropdown content of the main menu in a left sidebar.
I've read the CakePHP d