Tag: Zoho Creator
CakePHP | How to skip CakePHP authentication for some controller methods
Description: By default, CakePHP authentication is applied to all application controllers. So it does not allow users to perform any of the action without login. Solution: Each controller has a beforeFilter method which runs when some action is called from controller.
Java | Delete empty string from list or array
public class deleteEmptyStringQuick { public static void main(String[] args) { String[] emptyStringArray={“test”,”test1″,””,”test3″,””,”test4″}; ArrayList arrayListOfEmptyString=(ArrayList) Arrays.asList(emptyStringArray); //normally we will do this ArrayList filteredList = new ArrayList(); for(String string: arrayListOfEmptyString) { if(!string.isEmpty()) { filteredList.add(string); } } //You can achieve this with single
How to handle grub rescue problem in dual boot systems
Description: In a dual boot system (Ubuntu/windows), if you delete the boot partition of ubuntu or delete the Linux operating system by formatting the drive then you will face the grub rescue problem. In this problem we have two cases:
PHP | Header function not working
Code : Function getredirect($subcontactid) { echo”contactid”.$subcontactid; header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”); exit; } The header function in the above code does not work. But when we remove the echo from the code, it works properly. Code after removing echo : Function getredirect($subcontactid) { header(“location:https://subscriptions.zoho.com/app#/customers/$subcontactid”);
iOS | Inconsistent Status Bar in iOS Phonegap Application
Problem : Header goes under the status bar and menu button is not clickable in Phonegap/Cordova Application. Solution : In the iOS version 7.0, App View covers full screen including the status bar, and the view starts from top of
Salesforce | Change value of an object’s field on button click and reload page
We can change the value of an object’s field on button click by using javascript like this (and this will also reload the page): { !REQUIRESCRIPT(“/soap/ajax/29.0/connection.js”) } var rec = new sforce.SObject(“Contact”); rec.Id = “{!Contact.Id}”; rec.IsActive= ‘true’; var result =
Generate getter/setter for PHP Classes in Eclipse
Using PHPGen Eclipse plug-in one can automatically generate getter /setter methods for instance variables. Note: This Plugins is not available in Eclipse Marketplace. Steps For Installation: Start Eclipse and add “Help> Install New Software” from following URL: http://loge5.de/downloads/Eclipse/: Click Add,
Salesforce | How to get the User Informations like ORG_ID, User_ID etc in VisualForce code
To get the active user info or org info in Visualforce code one of the best programming practice is to get the values from the controller class of the Component. Here is sample controller class: public with sharing class GetUserInfo
Heroku | Checkout Git project into Eclipse from Heroku
1. Go to Heroku and copy the link of the specific apps that you want to take checkout of: 2. Open eclipse and start the git perspective, then click cloning icon: 3. Paste the URL link into the dialog box