How to set page titles in Zend Framework

Welcome, today I will show you how to set page title on page in Zend Framework.
In Zend Framework, you can set the page title in the controller, like in the example below:

class Panel_TestsController extends Zend_Controller_Action
  public function testAction() {
    //  setting the page title
    $this->_helper->layout()->getView()->headTitle('View all students');

or in the view:

 * views/scripts/tests/index.phtml
$this->headTitle('View all students');

And that’s all. Good luck

Posted in Php, Zend Framework at September 17th, 2011. 3 Comments.

Android View rounded corners

To create rounded corners in a view, first create a xml file

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="">
        <shape android:shape="rectangle" >
            <corners android:radius="15dip" />
            <solid android:color="#404f64" />
            <stroke android:width="2dp" android:color="#bebfc1"/>

Save the file as rounded.xml or other name in the /res/layout folder.

For android:shape you can use one of this values:
Constant Value Description
rectangle 0 Rectangle shape, with optional rounder corners.
oval 1 Oval shape.
line 2 Line shape.
ring 3 Ring shape.

After that go to the layout which you want to make with rounded corners and add this:


And the result must be:
Rounded corners

From now on you know how to decorate your forms and application. Good luck!

Posted in Android at May 20th, 2011. 4 Comments.