Unexpected T_Class on line 12

  • # February 4, 2013 at 7:05 pm

    Can anyone lend a hand?

    Line 12:

  • # February 4, 2013 at 7:16 pm

    Try:

  • # February 4, 2013 at 7:22 pm

    @TheDoc I got the following

    syntax error, unexpected ‘)’

    I ended up solving it by doing this:

    < ?php foreach($pages->invisible()->slice(1, 1) AS $p): ?>

  • # February 4, 2013 at 7:39 pm

    This reply has been reported for inappropriate content.

    isOpen()) ? ' active' : '' ?><br />
    

    Any reason for the ternary operator?

    isOpen()) echo ‘ active’ ?>

# February 4, 2013 at 8:04 pm

@BenWalker Thank you!!! I literally just copied it from the foreach statement above it with just a few alterations.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed