Skip to content

Tag: php

What is mean by @file tag in dockblock

I am using phpCheckstyle phpcheckstyle for standardizing my code commenting. After validating file in warning it suggests “Doc block comments should include information about file(@file) for each PHP file” The warning resolves when adding @file tag — I want to know what value should I assign…

PHPExcel Multiple Dropdown list that dependent

I am trying to set up multiple dropdowns in phpexcel that are dependent. Basically, when you select a value in a dropdown in a column A, it loads different content in the dropdown in column B. I am able to comfortably set up dropdown lists on cells. I am trying to figure out how to load content based on selec…

How to change NameID in SimpleSAMLphp

I’m developing a SSO using simpleSAMLphp. I configured correctly the service provider and the IdP, but I have to send the XML to the SP with a NameID in a specific format. How can I perform this? In the metadata? or can I do it through the code? Thanks, Answer I sorted already, I post the solution below…

Turning YII_CSRF_TOKEN secure flag on

I have enabled CSRF Validation in Yii: ‘enableCsrfValidation’ => true, Everything works as expected however I’d like for the session cookie to have the secure flag turned on. With other cookies you can set the secure flag in the config: How do you do this for the YII_CSRF_TOKEN? Answer Yo…