Grow your CSS skills. Land your dream job.

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

    < ?php echo ($p->isOpen()) ? ‘ active’ : ” ?>

    Any reason for the ternary operator?

    < ?php if($p->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.

*May or may not contain any actual "CSS" or "Tricks".