Author

Siddharth Shukla

Browsing

1 ) If condition <div *ngIf=”ifValid”> ifValid is true </div> 2) Using If with Else (Please notice to templateName) <div *ngIf=”ifValid; else templateName”> ifValid is true </div> <ng-template #templateName> IfifValid is false </ng-template> 3) Using If with Then (Please check templateName) <div *ngIf=”ifValid; then templateName”> Here is never showing </div> <ng-template #templateName> IfifValid is true </ng-template> 4) Using If with Then and Else <div *ngIf=”ifValid; then thenTemplateName else elseTemplateName”> This will never show </div> <ng-template…

Error Look Like: It’s not recommended to use sudo with npm install, follow the steps from npmjs official docs instead 🙂 Make a directory for global installations: mkdir ~/.npm-global Configure npm to use the new directory path: npm config set prefix ‘~/.npm-global’ Open or create a ~/.profile file and add this line: export PATH=~/.npm-global/bin:$PATH Back on the command line, update your system variables: source ~/.profile Test: Download a package globally without using sudo. npm install…

if you allow true in $config[‘csrf_protection’] = true; within config file and you are also add autoload form than we can use. Step 1. within config folder autoload file upload form helper $autoload[‘helper’] = array(‘url’, ‘file’,’form’); Step 2. $config[‘csrf_protection’] = true; Step 3. while uploading in view folder <?php echo form_open_multipart(‘admin/file_upload’); ?> Otherwise, you can use only $config[‘csrf_protection’] = false;

Index..php remove php remove and HTTP to https redirect in CodeIgniter. make web.conig file and put the code. <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <httpErrors errorMode=”Detailed” /> <asp scriptErrorSentToBrowser=”true”/> <rewrite> <rules> <rule name=”Rule” stopProcessing=”true”> <match url=”^(.*)$” ignoreCase=”false” /> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” ignoreCase=”false” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” ignoreCase=”false” negate=”true” /> <add input=”{URL}” pattern=”^/favicon.ico$” ignoreCase=”false” negate=”true” /> </conditions> <action type=”Rewrite” url=”index.php/{R:1}” appendQueryString=”true” /> </rule> <!– redirect non http to https –> <rule name=”www redirect” enabled=”true” stopProcessing=”true”>…

Just Try in button. <button onclick=”location.reload();location.href=’url_name'” id=”myButton” class=”btn request-callback” >Explore More</button> Using href <a href=”#” class=”know_how” onclick=”location.reload();location.href=’url_name'”>Know More</a>

<?php $string = “OUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreddd ddOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool of preparation tips, mock tests, admission information & much moreOUR RESOURCE CENTRE Get free access to Jamboree’s rich resource pool…