You've got a blank line in your view because you've set it in your element
<?php $listCats = ''; $cats = $this->requestAction('objekt/
getCategories'); $cities = $this->requestAction('objekt/getCities');?>
<ul class="topnav">
Tbh whitespace in your HTML shouldn't be an issue. If you are
objecting due to distance between ul and the top of your td then you
can set margin-top:0 in your CSS.
Also, it's considered bad practice to use tables for layout. You
should easily be able to make a 3 column layout supported across
browser without any tables.
--
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 12 Nov 2011, at 13:40, heohni <[email protected]> wrote:
> Hi,
>
> in default.ctp:
> <table width="100%" cellpadding="0" cellspacing="0">
> <tr>
> <td class="left_content"><?= $this-
>> element('navigation',array('cache'=>array('time'=>'+1
> year','key'=>'nav')));?></td>
> <td class="container">....
>
> The element start in line 1 with:
> <?php $listCats = ''; $cats = $this->requestAction('objekt/
> getCategories'); $cities = $this->requestAction('objekt/getCities');?>
> <ul class="topnav">
> <li>.....
>
> I controlled both actions, but there are no white spaces at all...
> Both called actions have a $this->autoRender = false;
>
> I really don't get the point why I have a blank line in my source:
>
> <table width="100%" cellspacing="0" cellpadding="0">
> <tbody>
> <tr>
> <td class="left_content">
> <--- here is the blank line -->
> <ul class="topnav">....
>
> Does anyone has an idea where and how to debug this issue?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php