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 git-scm.com. 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 http://example.com/?orderby=birthdate, $orderBy will have the value birthdate. When visiting http://example.com/, $orderBy will have the default value name. Get all parameters To get all parameters…

Continue Reading

Zend Framework 2: Redirect to 404 page in Controller

I've been getting into trouble several hours with redirect to 404 page in Zend Framework 2. Question in StackOverflow: http://stackoverflow.com/questions/21622849/use-the-same-error-handler-in-different-modules-in-zend-framework-2 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 following code:

Continue Reading
Contact Us
  • SenseTime Research, Shenzhen Bay Eco-Technology Park
  • cshzxie [at] gmail [dot] com