Some valuable points in Yii

Here I want to share some valuable points which may helpful for Yii developer. 1.Getting current theme in Yii Ans: Yii::app()->theme->name 2. Getting base URL in Yii: Ans: Yii::app()->getBaseUrl(true);

JQuery Interview Questions

1. How to get value and text of a selected element from Dropdown by jQuery ? Ans: value=$(‘#selectid option:selected’).val(); text=$(‘#selectid option:selected’).text(); e.g. <select id=”myselect”> <option value=”1″>Label 1</option> <option value=”2″ selected=”selected”>Label 2</option> <option value=”3″>Label 3</option> </select> value=$(‘#myselect option:selected’).val(); //2 text=$(‘#myselect option:selected’).text(); //Label 2 2. Disable Submit button on form submit under a div by jQuery . […]

WordPress Interview Question

Another phase of our collection and knowledge on WordPress Interview Question , we want to share with you . Also it can helps you on knowledge growth too. 1. Is the functions.php file required in each theme? a. Yes b. No Ans: b: No 2 Which of the following theme files can be used to […]

WordPress Interview Questions

Another phase of our collection and knowledge on WordPress Interview Question , we want to share with you . Also it can helps you on knowledge growth too. 1. Which of the following methods can be used to enable posting via e-mail? a. Installing the wp-emailpost plug-in. b. Configuring the feature in admin settings. c. […]

WordPress Interview Question

WordPress Interview Question so far we have collected , we want to share with you . Also it can helps you on knowledge growth too. 1. Which of the following methods can be used to make permalinks SEO friendly? a. Updating the database. b. Changing the source code. c. Configuring the feature in the config […]

Odesk PHP Programming Skills Test Answer 2013

For the presence of your freelance accounts in Odesk, Elance with good quality you have to make a good a result in PHP Programming Skills Test . Here are the solutions, I try to combine them what I have found so far.   1. ¬†Write a function declared as¬†function ReformatPhoneNumber($number), whose argument will contain string […]