Why is my layout giving me this

I copied one of the demo apps to start my application and its doing this …

<div id="container">

<div id="content">



It does not do this on any of my other apps, then again I did not use the demo app for my other apps so what is causing it?

In my layout I have …

<?php echo $content; ?>

But I do not have the other "divs" as stated above, so whats happening?

Any ideas?

I don’t get your problem. You have these divs in your rendered HTML and don’t know where they come from as they are not defined in your layout file?

  1. Check all other layout files for these divs (maybe your layout is nested and the parent layout renders them)

  2. Sure you don’t just render a view that contains these divs? Obvious but maybe you just didn’t see them at first.

Yes I have checked all the views and layouts and found nothing.

Also if I do a "find" on the "entire project" for "container" which is the id of the div it cannot be found.

Well I’m not sure if this is what you’re looking for… Your standard column1.php layout should look like this

<?php $this->beginContent('//layouts/main'); ?>

<div class="container">

	<div id="content">

		<?php echo $content; ?>

	</div><!-- content -->


<?php $this->endContent(); ?>

Hence the two divs.

The standard column2.php also contains the two divs. Both files are in protected/views/layouts/