Tuesday, December 30, 2008

Re: Model data in all views

I think your best bet is to use requestaction on the categories
controller and include an element on your default layout, have a look at
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction

Daniel wrote:
> Hi there, sorry to bother you with what is probally a very simple
> question, but I'm new to cake and having some trouble getting to grips
> with it.
>
> I'm working on a simple e-commerce site for an assignment at
> university, I have a Category model set-up, which is going to be used
> to group products together.
>
> I've set-up a default.ctp file for my layout, and I wanted to be able
> to have the list of categories, from the model, display within the
> default.ctp file, so it's shown on every page of the site. It's going
> to be an unordered list, which links to the relevent page to display
> the products within that category.
>
> Thank you.
>
> >
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Model data in all views

Hi there, sorry to bother you with what is probally a very simple
question, but I'm new to cake and having some trouble getting to grips
with it.

I'm working on a simple e-commerce site for an assignment at
university, I have a Category model set-up, which is going to be used
to group products together.

I've set-up a default.ctp file for my layout, and I wanted to be able
to have the list of categories, from the model, display within the
default.ctp file, so it's shown on every page of the site. It's going
to be an unordered list, which links to the relevent page to display
the products within that category.

Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Odd Auth behaviour in IE7 (Internet Explorer)

Great find!! Reducing the security level in app/core.php solved it for
me, too.

Odd enough, this issue happened on only ONE pc, on all other pc's with
IE7, there was no problem. Browser security and other settings were
all the same (as much as I can tell).

I cannot tell you why.

On 30 Dez., 12:45, Snoopaki <snoop...@gmail.com> wrote:
> I set the Security level in my app/core.php to medium and it works ok
> now.
> I also noticed a SIGNIFICANT speed boost when setting the security
> level to medium. Why is that ?
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: How to give label when we take input type is file and how to give titles to your pages in cakephp

Inside your head tags you must add a title tag. It looks like this:

<head>
     <title>
        <?php __('PAGE'S TITLE'); ?>
        <?php echo $title_for_layout; ?>
    </title>
</head>

2008/12/30 Bernardo Vieira <bvieira.lists@gmail.com>

Find answers to all your questions in one place, no emailing required:
http://book.cakephp.org

mona wrote:
> How to give titles to your pages in your layout where to give that
> title
> and i m taking input type file and i want to give name as attachment
> on my view how to give this in label
> >
>
>






--
Juan Carlos Michaca Lucero
PAASEL
Consultoría en Matemáticas Aplicadas
Insurgentes Sur 1700 Despacho 102
Col. Florida C.P, 01030
Deleg. Alvaro Obregón, México D.F.
Tel. + 52 (55) 5663 4175
http://www.paasel.com
juan.michaca@paasel.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: form action url

I guess it s a trouble with $base in dispatcher.php but I don't see
how to tune that.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: How to give label when we take input type is file and how to give titles to your pages in cakephp

Find answers to all your questions in one place, no emailing required:
http://book.cakephp.org

mona wrote:
> How to give titles to your pages in your layout where to give that
> title
> and i m taking input type file and i want to give name as attachment
> on my view how to give this in label
> >
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

help with bindModel()

Hi,

I'm fairly new to cakephp & am trying to get my mind around the
bindModel method. I think I'm starting to get it, especially with the
thanks to this blog post from teknoid:
http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/
and the habtm part of the cookbook:
http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM
But I have a number of questions arising from these helpful examples.

1) In both the join table's Model class name is "PostsTag", but the
table itself is/should be "posts_tags", why no plural on tags?

2) in the last code snippet from the cookbook section on habtm it
looks like it is associating to two models, "PostsTag" & "FilterTag".
Where did "FilterTag" come from? Is it another join table that was
not mentioned earlier or is it something else?

Thanks in advance,
Aaron

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---