Monthly Archives: February 2014

Jenkins Installation and Configuration with Maven and GitHub

In this tutorial we are going to describe Jenkins installation and configuration with Maven and GitHub. We are going to use a Tomcat Application Server 7. If you don’t have Tomcat installed please get one here. You will need a Java 7+ SDK installed as well Git binaries installation At first we need client tool using which git operations like cloning, fetching, pooling can be done. We have chosen git client implementation available at Download and install it. Important thing is to select Run Git from the Windows Command Prompt option on Adjusting your PATH environment installation screen so that git client executables are added to your PATH variable. Jenkins installation Now we are going to install Jenkins. Jenkins…

Continue Reading

Zend Framework 2: Get Parameters

The easiest way to do that would be to use the Params plugin, introduced in beta5. It has utility methods to make it easy to access different types of parameters. As always, reading the tests can prove valuable to understand how something is supposed to be used. Get a single value To get the value of a named parameter in a controller, you will need to select the appropriate method for the type of parameter you are looking for and pass in the name. Default values All of these methods also support default values that will be returned if no parameter with the given name is found. When visiting, $orderBy will have the value birthdate.When visiting, $orderBy will have the default value name. Get all parameters To get all parameters of…

Continue Reading

Zend Framework 2: Redirect to 404 page in Controller

I've been getting into trouble for several hours with redirecting to the 404 page in Zend Framework 2. The question in StackOverflow: Before that, I'm using the following code: It works fine. However, after I create the 404 error page. I found it won't redirect you to the error page with the code above. If you want to redirect to the 404 error page, you should use the following code:

Continue Reading
Contact Us
  • Tencent Binhai Building, Shenzhen, China
  • root [at] haozhexie [dot] com