Thanks to anyone who has any insight.

m


On Feb 6, 10:06 pm, Mark <[EMAIL PROTECTED]> wrote:
> Hi everyone:
>
> I have a model that is inserting a blank like at the top of the
> produced page. I've tracked the problem to the $belongsTo variable. If
> I take $belongsTo out of the model I don't get the blank line. The
> model also has a $hasMany but it doesn't cause any trouble.
>
> Most of the time a blank line at the top of your page wouldn't be a
> problem, but I'm trying to produce an xml file and the first line in
> the document needs to be <?xml version="1.0" encoding="UTF-8"?>.
>
> Has anybody else run into this problem? Please find my model's code
> below (note that I don't have an extra carriage return at the end of
> the class in my source code):
>
> <?php
> class Photographer extends AppModel
> {
>     var $name = 'Photographer';
>
>     var $validate = array(
>         'firstName' => VALID_NOT_EMPTY
>     );
>
>     var $belongsTo = array('Region' =>
>                            array('className'  => 'Region',
>                                  'conditions' => '',
>                                  'order'      => '',
>                                  'foreignKey' => 'region_id'
>                            ),
>                            'Country' =>
>                            array('className'  => 'Country',
>                                  'conditions' => '',
>                                  'order'      => '',
>                                  'foreignKey' => 'country_id'
>                            ),
>                            'City' =>
>                            array('className'  => 'City',
>                                  'conditions' => '',
>                                  'order'      => '',
>                                  'foreignKey' => 'city_id'
>                            )
>                      );
>
>     var $hasMany = array('Portfolio' =>
>                          array('className'     => 'Portfolio',
>                                'conditions'    => '',
>                                'order'         => '',
>                                'limit'         => '',
>                                'foreignKey'    => 'photographer_id',
>                                'dependent'     => true,
>                                'exclusive'     => false,
>                                'finderQuery'   => '',
>                                'fields'        => '',
>                                'offset'        => '',
>                                'counterQuery'  => ''
>                                 )
>                         );
>
> }
>
> ?>
>
> Thanks!
> Mark
--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to