SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    echo content error

    Hi, this line:

    PHP Code:
    $body->set('delivery_cost_num_format', echo $config['standard']); 
    Is showing this error:

    Parse error: syntax error, unexpected T_ECHO in /home/www/checkout/index.php on line 81

    I cannot see what the issue with that line of code is?

    Any help appreciated, cheers.

  2. #2
    SitePoint Zealot
    Join Date
    Jan 2011
    Location
    Portland
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you cannot echo from within the method.

  3. #3
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats a bit of a bummer. I assume there is no way round this either?

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2011
    Location
    Portland
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why not just make it echo from with in the method?

  5. #5
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your first reply said:

    you cannot echo from within the method.
    And now you're saying:

    why not just make it echo from with in the method?
    If echo can be done within the method, how would I do so?

    Cheers

  6. #6
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved it - thanks for your comments.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •