-1

I'm doing my php project in symfony. But ı have a problem. How can I do implement the php code in my Symfony project?

                    <?php
                    $say=0;
                    $aktf=null;
                    foreach($yeni as $rs)
                    {
                        $say++;
                        if($say==1)
                            $aktf="active";
                        else
                            $aktf=null;
                        ?>

                        <div class="item <?=$aktf?>">

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.