Re: Using $content_for_layout how :-(

2012-02-23 Thread Justin Edwards
https://github.com/search?q=cakephp+twitter+bootstrap&type=Everything&repo=&langOverride=&start_value=1 On Thu, Feb 23, 2012 at 9:37 AM, jeremyharris wrote: > To include CSS and JS, use the HtmlHelper[1]. This will include files from > /webroot/css and /webroot/js > &g

Re: Using $content_for_layout how :-(

2012-02-23 Thread jeremyharris
To include CSS and JS, use the HtmlHelper[1]. This will include files from /webroot/css and /webroot/js $content_for_layout holds the content from the rendered view. All you need to do is echo it in the layout. There isn't anything more that you need to do with it. 1: http://book.cakeph

Using $content_for_layout how :-(

2012-02-23 Thread reynie...@gmail.com
Hi every, I'm newbie using CakePHP and have several doubts and here I come with two of them. I'm trying to use Twitter Bootstrap to build my application Layout, now: - I've created the file View/Layouts/default.ctp and inside in the code I need to use $content_for_layout ($t

Re: Issue with content_for_layout

2009-07-11 Thread V1V3k
the > //view/pages/home.ctp. > > Other wise please check for extra in other pages or in default.ctp. > > > > On Thu, Jul 9, 2009 at 7:31 AM, V1V3k wrote: > > > Hi All, > > > I am facing this strange issue with   > > $content_for_layout spits a which spoi

Re: Issue with content_for_layout

2009-07-09 Thread Vijay Kumbhar
, V1V3k wrote: > > Hi All, > > I am facing this strange issue with > > > $content_for_layout spits a which spoils the page structure. > I used a simple layout without any other elements. The html output is > shown below. > > > http://www.w3.org

Issue with content_for_layout

2009-07-08 Thread V1V3k
Hi All, I am facing this strange issue with $content_for_layout spits a which spoils the page structure. I used a simple layout without any other elements. The html output is shown below. http://www.w3.org/1999/xhtml"; xml:lang="en" lang="e

Re: $content_for_layout Question

2009-06-04 Thread brian
Can you give a concrete example? The $content_for_layout var contains the rendered output based on the view. Perhaps you'd be better off rendering one view or another, based on your conditions. That is, put your IF/ELSE in your controller action. On Wed, Jun 3, 2009 at 11:27 PM,

$content_for_layout Question

2009-06-03 Thread simon...@gmail.com
Good Night, How can I change the variable "$content_for_layout" depending on a situation? Like if I use and IF and ELSE. For IF the "$content_for_layout" would have a value and for ELSE, there would be a different value. How could

Re: content_for_layout

2009-02-05 Thread Maulik
Thanks , On Feb 3, 3:03 pm, Braindead wrote: > On your website you will most likely have parts that are displayed on > every page and other parts that change. > $content_for_layout contains the part that changes. :-) > > Hope that

Re: content_for_layout

2009-02-03 Thread Braindead
On your website you will most likely have parts that are displayed on every page and other parts that change. $content_for_layout contains the part that changes. :-) Hope that helps. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed

content_for_layout

2009-02-03 Thread Maulik
hi i m beginner in cakephp what is the use of content_for_layout in cakephp ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegro

Re: echo $content_for_layout;

2008-01-11 Thread Dardo Sordi Bogado
Don't bump. Use the RequestHandler component in your controller or put $this->layout = 'ajax' in your action (if always loaded by ajax). On Jan 11, 2008 10:14 AM, Unite <[EMAIL PROTECTED]> wrote: > > bump > > On Jan 9, 1:28 pm, Unite <[EMAIL PROTECTED]> wrote: > > Can someone direct me to code t

Re: echo $content_for_layout;

2008-01-11 Thread Unite
bump On Jan 9, 1:28 pm, Unite <[EMAIL PROTECTED]> wrote: > Can someone direct me to code that will always put this statement in a > ajax type format so that the whole page doesnt refresh but only the > $content_for_layoutand if JS is disabled loads the interface > normally. Thanks --~--~-

echo $content_for_layout;

2008-01-09 Thread Unite
Can someone direct me to code that will always put this statement in a ajax type format so that the whole page doesnt refresh but only the $content_for_layout and if JS is disabled loads the interface normally. Thanks --~--~-~--~~~---~--~~ You received this message

Re: Multiple $content_for_layout

2007-11-02 Thread francky06l
categories. > > > The problem I encountered appeared early because the way the HTML was > > designed, > > so I need 2 $content_for_layout in my default layout, like this: > > > > > > > > > > > THE MAIN MENU > &g

Re: Multiple $content_for_layout

2007-11-02 Thread AD7six
ministration > for a photo gallery with multiple categories. > > The problem I encountered appeared early because the way the HTML was > designed, > so I need 2 $content_for_layout in my default layout, like this: > > > > > > THE MAIN MENU

Re: Multiple $content_for_layout

2007-11-01 Thread mbavio
umnlayout.ctp --- > > layout = 'mainlayout.ctp'; ?> > > > > > > -- > > --- twocolumnslayout.ctp --- > > layout = 'mainlayout.ctp'; ?> > > > > > > > > > > -- > > Then in the controller, o

Re: Multiple $content_for_layout

2007-11-01 Thread Marcin Jaworski
t from onecolumnlayout and twocolumnslayout depending on the needs and those layouts with rendered contents could be rendered as $content_for_layout in the mainlayout. This way we have only one place where we define headers, footers and the html stuff, and we follow the Cake's way of doing things de

Re: Multiple $content_for_layout

2007-10-31 Thread Grant Cox
You are correct that using elements is a good idea, but the only problem is that requestAction is really quite a large operation - a whole extra call through the CakePHP pipeline. So if you have half a dozen of these on every page, it really will be inefficient. So the best solution is to have s

Re: Multiple $content_for_layout

2007-10-31 Thread mbavio
> > view: > > This is some view. This is it's main content > > this content won't be rendered as $content_for_layout > > > then in layout: > > > > $GLOBALS['namedContents']['somename']; } else { ?> > Here goes the default

Re: Multiple $content_for_layout

2007-10-31 Thread Cristi A.
Thank you Rob, This is exactly what I was looking for. :) It took me 3 hours to figure out how to set up routes from the "www.site.com" to the default home.ctp and then to a homepages/ index.ctp view controled by a controller( doh ) that included your helper and to tell my model "var $useTable =

Re: Multiple $content_for_layout

2007-10-31 Thread Marcin Jaworski
Thank you. My code basically does the same thing :). So I think that this must be a correct way of doing this because 2 different programmers had the same idea :) (I didn't know about this Helper before - I need spend more time in the bakery :)). On 31 Paź, 17:34, rtconner <[EMAIL PROTECTED]> wro

Re: Multiple $content_for_layout

2007-10-31 Thread rtconner
I'm pretty sure this Helper will help you guys out.. http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: Multiple $content_for_layout

2007-10-31 Thread Cristi A.
Hi Marcin, Thank you for your response. I'll try to implement your idea regarding ob_start() and ob_get_clean() functions as soon as I can. It would be a shame if it wasn't possible this kind of flexibility with cake. --~--~-~--~~~---~--~~ You received this mess

Re: Multiple $content_for_layout

2007-10-31 Thread Marcin Jaworski
endered as $content_for_layout then in layout: Here goes the default content for this placeholder When no default content is required then just simply where it is needed. However I haven't tested this yet. It's only an idea. Maybe it could be wrapped in a Helper? This should not break exis

Re: Multiple $content_for_layout

2007-10-31 Thread Marcin Jaworski
d it would be "transfered" to an element named "name_of_the_content" in layout. Example: in layout file (simplified): renderElement('namedContent', array('name' => 'name_of_the_content')); ?> in view: Normal content rendered as $conte

Multiple $content_for_layout

2007-10-31 Thread Cristi A.
the way the HTML was designed, so I need 2 $content_for_layout in my default layout, like this: THE MAIN MENU * I've searched this group and found 3 threads started about this and 1 solution which involved modifying the core of cak

Re: content_for_layout

2007-03-22 Thread BlenderStyle
ll be available in your view and in your > > > element. > > > > On Mar 22, 7:40 am, "djiize" <[EMAIL PROTECTED]> wrote: > > > > > I think you're lokking for > > > > "elements"http://manual.cakephp.org/chapter

Re: content_for_layout

2007-03-22 Thread beetlecube
; I think you're lokking for > > > "elements"http://manual.cakephp.org/chapter/views > > > in section 1, subchapter Elements > > > > On 22 mar, 15:12, "beetlecube" <[EMAIL PROTECTED]> wrote: > > > > > HI, I'm using c

Re: content_for_layout

2007-03-22 Thread beetlecube
and in your > element. > > On Mar 22, 7:40 am, "djiize" <[EMAIL PROTECTED]> wrote: > > > I think you're lokking for "elements"http://manual.cakephp.org/chapter/views > > in section 1, subchapter Elements > > > On 22 mar, 15:12, "be

Re: content_for_layout

2007-03-22 Thread BlenderStyle
> > On 22 mar, 15:12, "beetlecube" <[EMAIL PROTECTED]> wrote: > > > HI, I'm using cake v1.2 > > > My question relates to content_for_layout (I think), and for the > > past hour I've been reading the results of a group search for this > > searc

Re: content_for_layout

2007-03-22 Thread djiize
I think you're lokking for "elements" http://manual.cakephp.org/chapter/views in section 1, subchapter Elements On 22 mar, 15:12, "beetlecube" <[EMAIL PROTECTED]> wrote: > HI, I'm using cake v1.2 > > My question relates to content_for_layout (I thin

content_for_layout

2007-03-22 Thread beetlecube
HI, I'm using cake v1.2 My question relates to content_for_layout (I think), and for the past hour I've been reading the results of a group search for this search term, but couldn't find an answer. My views are more or less PHP code that iterates through the results of an

Re: $content_for_layout data displaying after footer

2007-01-10 Thread milliseconds
my bad... I had an error in my html in my view. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: $content_for_layout data displaying after footer

2007-01-10 Thread John David Anderson (_psychic_)
On Jan 10, 2007, at 11:43 AM, milliseconds wrote: > > I have on layout where the $content_for_layout data is displaying > after > the footer. Since I am new to Cake I am pretty sure this is a rookie > error. How do I fix it? We'd need to see your layout, but this is the b

$content_for_layout data displaying after footer

2007-01-10 Thread milliseconds
I have on layout where the $content_for_layout data is displaying after the footer. Since I am new to Cake I am pretty sure this is a rookie error. How do I fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: several "$content_for_layout"?

2007-01-05 Thread AD7six
On Jan 5, 9:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Thanks AD7six - just for my education, is this: > On Jan 4, 10:07 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > other parts of each layout can contain different > > static content, elements (echo $this->renderElement

Re: several "$content_for_layout"?

2007-01-05 Thread [EMAIL PROTECTED]
Thanks AD7six - just for my education, is this: On Jan 4, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > other parts of each layout can contain different > static content, elements (echo $this->renderElement('my_element') ) , > request actions (echo $this->requestAction(params) ) or

Re: several "$content_for_layout"?

2007-01-05 Thread AD7six
Hi All, On Jan 4, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: other parts of each layout can contain different static content, elements (echo $this->renderElement('my_element') ) , request actions (echo $this->requestAction(params) ) or plain old php. Not strictly accurate ;) So

Re: several "$content_for_layout"?

2007-01-04 Thread [EMAIL PROTECTED]
endered by echo $content_for_layout, other parts of each layout can contain different static content, elements (echo $this->renderElement('my_element') ) , request actions (echo $this->requestAction(params) ) or plain old php. The required layout is defined n the controller action by setti

Re: what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread [EMAIL PROTECTED]
Please see this thread: http://groups.google.com/group/cake-php/browse_thread/thread/bf3bc452e6e60a79/3374ddf4fe7a15e9#3374ddf4fe7a15e9 The 'Search This Group' (top right) function for Google Groups is also extremely useful :) --~--~-~--~~~---~--~~ You received

Re: what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread purepear
Try using elements. $this->renderElement() in the view. Look at the api. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri

what can I do, if I want to define multi $content_for_layout

2007-01-04 Thread rainbow686
when I use Cake, I found I need define multi $content_for_layout. example: I want to display two different dynamic content in one page look link above, but there is one $content_for_layout in Cake. So, what can do? --~--~-~--~~~---~--~~ You

RE: several "$content_for_layout"?

2007-01-03 Thread Brandon Olivares
Hi, I think you're looking for elements. You can render elements within your layout, such as a menu, search, etc. Your $content-for_layout is the content that is to go within the layout for the page. That variable will be set to the content of the view that was rendered. Only make new layouts w

Re: several "$content_for_layout"?

2007-01-03 Thread Daniel Gomes
Hi, i hope help you lets see: -> When do I need to create new layouts? you just have to create one layout, the default layout. Then you just to have to create the views files that only have the content. -> How is the $content_for_layout supposed to work? the $content_for_layout works

Re: several "$content_for_layout"?

2007-01-03 Thread dani
: -> When should I use controllers? -> When is it suitable to add pages under the "pages" directory? -> When do I need to create new layouts? -> How is the $content_for_layout supposed to work? -> What should be placed inside the "elements" folder? ..

Re: several "$content_for_layout"?

2007-01-03 Thread TJSingleton
As aforementioned, more info is really needed. But I think you will only need one layout, you can use two views. One with two columns and one with three. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: several "$content_for_layout"?

2007-01-03 Thread dani
The layout should be based on which page they navigate to. But there must me an option to have dynamic content in several columns etc. On 3 Jan, 22:25, "ShepherdWeb" <[EMAIL PROTECTED]> wrote: Are you saying that the user would get to choose which layout they wanted, or is the layout chosen for

Re: several "$content_for_layout"?

2007-01-03 Thread ShepherdWeb
Are you saying that the user would get to choose which layout they wanted, or is the layout chosen for them based on which page they navigate to? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

several "$content_for_layout"?

2007-01-03 Thread dani
. Which is the best alternative? -> To create 2 layout files - layouts/2_column.thtml and layouts/3_column.thtml !! This one thus gives me a problem in which column to place the $content_for_layout variable. or ... -> To stick to a single layout file and load the whole contents of the