Monday, 16 March 2015

How to send an email using Email Template in Zend Framework

How to send an email using Email Template in Zend Framework

Email functionalities in websites is very common and used in mostly in all web application. Whether it is registration process or Order detail, we need to send an email to your valuable client.

To send the email using Email Template follow the following steps
1. First collect all the data which you want to send in Email like first name, last name etc.
$emailTemplateData = array('fname'=>'Web Technology','lname'=>'Experts Notes');


2. Create a Folder with name emails, where you can put the email templates files.
Email template Location: application/views/scripts/emails


3. Create a template with name registration.phtml  for registration Email and add following contents.
First name:  echo $data['fname'];  
Last name:   echo $data['fname'];  
Folder Location: application/views/scripts/emails
Don't forget to add php scripts for php variable
Im just giving you an working code, you can add lot of variables as you need.


Add following code from where you want to send an email
$subject ='This is subject';
$view = new Zend_View();
$view->addScriptPath(APPLICATION_PATH . '/views/scripts/emails');
$view->data = $emailTemplateData; //$emailTemplateData must have the values which you are using in registration.phtml
$emailHtml = $view->render('registration.phtml');
$mail = new Zend_Mail();
$mail->setBodyHtml($emailHtml);
$mail->setSubject($subject);              
$mail->setFrom("support@example.com", "From domain.com");
$mail->send();


If you get an issue regarding this post, Please comment below. we will try to fix your problem.




Thursday, 12 March 2015

Web Development Project Manager interview questions and answers

Web Development Project Manager interview questions and answers

Question: What is project management?
Project management is a process in which we manage a project as per availability of Time, Cost, Resource (developer) and scope. The main motive of project management is to complete the client expectation within the availability of time and money.


Question: What is triple constraint triangle in project management?
  • Project cost
  • Project schedule
  • Project scope


Question: How do you handle change request?
If its taking effort of 1/2 hour, we will do for client without change request otherwise.
1. Send the estimation to client
2. Approve the request by client
3. Start the Development Phase


Question: What are the CSFs in the Software project management?
CSFs (critical success factors) for Software project management are below:
  • Change management.
  • Leadership & motivating employees.
  • Team Orientation is crucial.
  • The cost evaluation must be done diligently in the given time frame.
  • Lucidity in communication.



Question: What is DSS?
DSS stands for Decision Support System.



Question: What is the WWWWWHH?
WWWWWHH stands for What, When, Who, Where, How, How Much.
This principle is given by Barry Boehm who suggests an approach that addresses project objectives, scope, schedules, responsibilities, management and technical approaches and required resources.



Question: Describe capability maturity model Integration(CMMI)?
This model is developed by Software Engineering Institute (SEI).
Every level there are some key activities required at different levels of process maturity.



Following are 5 level of capability maturity model Integration (CMMI).
Level 1: Initial.
Level 2: Repeatable.
Level 3: Defined.
Level 4: Managed.
Level 5: Optimizing.


Question: What is software project planning?
  • Scope of the project.
  • Feasibility analysis.
  • Deadline of the project.
  • Estimation of resource cost and schedule.
  • Risk analysis.
  • Overall Budget.


Question: What are the different types of software risk?
  • Project risks
  • Technical risks
  • Business risks


Question: Define CAR and DAR?
CAR - Causal analysis and resolution.
DAR - Decision Analysis and Resolution.



Question: Differentiate between SITP and UTP in testing?
System Integration Test Plan(SITP) - It is performed by the testing team.
Unit Test Plan (UTP) - It is usually performed by the developers.



Question: Define CMMI?
CMMI stands for Capability Maturity Model Integration.