Symfony application with UI and development code under same structure

August 5th, 2010

I have been thinking,for quite a long time, of some technique by which one can share the same view files between the developer and the designer inside a symfony based application.

So lets try to do something interesting with symfony and make this possible.
The basic idea behind it is to devise a method that can make it possible to share the assets (JS files, CSS files, Images etc etc) between the two key persons involved, the developer and the designer so that if any change is made by the guy who is designing something, it automatically gets visible in the application( without the need for the developer to implement it ).

Let’s say the designer is working on the theme of the application, which includes changes in images, CSS and JS files while keeping the structure of pages intact. What happens in routine practice is, the designer makes the changes and hands the updated files over to the developer who embeds the modifications into the CSS and images. The separation of two tasks requires more time and it becomes somewhat difficult for the two people to work on the same view file(s).

For a symfony project the directory structure looks like this:

1-riz

Now inside the ‘web’ folder, there are ‘Images, CSS and JS’ folders which contain the Images, CSS and JS files by default.

Let’s play a little with symfony configuration and create a theme structure!

Create a ‘theme’ folder and within this, create ‘frontend’ and ‘backend’ sub folders. Each of these sub folders will contain themes for the frontend and backend separately, so that we can switch between themes easily in case the need arises.
Having accomplished this, we will have a directory structure which will look somewhat like this:

3-riz

Notice that we have moved the ‘images, css and js’ folders from main ‘web’ folder to their respective UI folders. We get two advantages by doing so: separation of assets of different applications (Layouts) and managing them inside different themes.

Now lets change the application configuration classes so that the default directories for frontend and backend are changed and symfony knows where to look for the required files.

You can make following changes in ‘apps/frontend/config/frontendConfiguration.class.php

Notice that we are changing only the configure() function.

public function configure()
     {
       $current_theme = 'first_ui';
       sfConfig::add (
                      array (
                               'sf_web_images_dir_name' = 'themes' . '/' . 'frontend' . '/' . $current_theme . '/' . 'images',
                               'sf_web_css_dir_name' = 'themes' . '/' . 'frontend' . '/' . $current_theme . '/' . 'css',
                               'sf_web_js_dir_name' = 'themes' . '/' . 'frontend' . '/' . $current_theme . '/' . 'js'
                             )
                      );
     }

This is the time to move all of your images, css anf js files to the respective folders inside the theme folder and symfony will automatically load them from this location.
Now for the last point, in order for the designers to use the same css,js and images lets create a folder ‘xhtml’ inside the main project directory. For this the directory structure will be as follows:

2-riz

Put the html files inside frontend and backend ‘first_ui’ folder and use relative paths for images,css and js files.
To summarize, the benefits which can be obtained by using the above mentioned technique, are:

  1. No need of the developers to implement minor changes given by designers, designers can directly edit design changes right into the application.
  2. No need to manage separate svn for application code and application Ui, each UI change will be there side by side the application code inside the same svn repository.

Thinkfinity.org wins “Best in Tech” award

July 24th, 2010

The official website of Thinkfinity, an organization founded by Verizon Inc has won the the ‘Best in Tech’ website award for 2010 by Scholastic Administrator magazine in International Society for Technology in Education (ISTE 2010) conference. To read the story behind the success of http://www.thinkfinity.org please download our casestudy pdf.

BIT_Final_AdminLogo

Zigron has a new facelift..

July 22nd, 2010

We recently updated our homepage to make the information more relevant and quickly accessible. One of the main idea was to highlight our newly added case studies and white-papers for our visitors.

We would love to hear your feedback on our new facelift.

Screen shot 2010-07-22 at 9.20.45 AM

Wireframes library and templates

July 16th, 2009

Our motto for ultimate User Experience is to make every application Simple, Beautiful and Usable. Beautiful part can be achieved by some Photoshop magic and creative instincts. To achieve simplicity and usability one has to have very good overview of the entire application to make sure that the information architecture caters to easy access of information and also has the intuitiveness to make its adoption easier.

One of the key stages of any good design is its wire-framing stage. This is the stage which really helps you think through the entire application and come up with creative ideas. Recently in one of the Refresh DC’s events I came to know about a library of readily available wireframe templates and libraries named Unify. I encourage you all to explore its videos and try to use it in your design practices.

Few other resources: I Love Wireframes

If you know any good resources on wireframes then please do share them in comments section.

Zigron launches its new website

June 23rd, 2009

Zigron has grown tremendously over the last two years and during this time we have tried our level best to keep our website up-to-date. Keeping the iterative approach in combination with “market driven design” philosophy,we are now launching Zigron’s new website and brand identity.

Zigron has used its successful approach of “Simple , Beautiful and Usable” methodology to design and develop our new website which will cater to a wider range of our ever growing client base and industry verticals.

I will truly appreciate your feedback or suggestions for our new site.

 

Google’s Data Center Tour Video

April 7th, 2009

Enjoy the video of Google’s Data Center tour.

Zigron at NVTC’s Emerging Business and Entrepreneur Event

March 18th, 2009

photo

On March 17th 2009 Zigron Inc exhibited its services and products at Norther Virginia Technology Council’s Emerging Business and Entrepreneur Event.

The Northern Virginia Technology Council (NVTC) is the membership association for the technology community in Northern Virginia. NVTC has about 1100 member companies representing more than 200,000 employees and Zigron is its memeber.

DareMyCompany At Mashable.com

January 1st, 2009

“I absolutely love the idea of DareMyCompany”, says Jennifer Van Grove here on Mashable. She wrote a detailed review of the web app Zigron lately developed after the success of PingMyCompany.

DareMyCompany is a simple tool that lets companies find other companies for different sports and other challenges/competitions. It’s one of it’s kind and has been developed by keeping in mind the importance of entertainment for working people.

Currently the challenges on the site fall under sports category only, but the criteria will be expanded with a lot more locations, and some new features laters.

If you’re also tired of working and or want to show other companies in your area that you’re best at something, just give them a call at DareMyCopmany and prove yourself!

Zigron Bar-B-Que Event

December 26th, 2008

This is the best time to visit Pakistan for tourists, reason being the cool weather and well developed public places. To make the best use of this time, Zigron had planned a Bar-B-Que event in Rawal Lake View Park, on December 25th, 2008. The park is the back side of Rawal Lake that is one of the big artificial water reservoirs [covering an area of about 8.8km] in Pakistan.

Being a public holiday, it was a busiest day at the spot with so many people round, and it was good to see such big crowd there, which has previously been seen only in the metropolitan city Karachi. Other than crowd, the much noticeable thing was Lake View itself, all water and water, and then the delicious Bar-B-Que. How much people enjoyed there, can’t be expressed in words, but definitely in pictures below:

Will 2009 Be The Year Of iPhone Gaming?

December 24th, 2008

Almost all of us have played a mobile game at least once in lifetime. This fact makes mobile gaming the most active area of mobile content. The question that why people play mobile games may have many answers but a simple answer is simplicity and ease of use of these games, so anyone can play them anywhere. The popularity of mobile games can be analyzed from the fact that, the first question that raised with the launch of iPhone was, “Where are iPhone games?”.

knibbleTechnology has always revolutionized things, especially the entertainment economy. Innovations like touchscreen have renovated the business economy till yet, but it’s just one half, the other and the big one lies in the entertainment economy. iPhone when launched was an innovation in the mobile handsets and sort of threat for the competitors, but since mobile is the industry with a lot of business models associated with it, it’s now having impact on many other areas of economy, especially the marketing industry with ad-funded games and applications. Particularly in gaming, it’s also considered as Nintendo and Sony PSP’s rival, being richer in experience, and providing same sort of game development environment to the developers.  One other reason for the popularity of iPhone is the network gaming experience it gives with simple WiFi connections, that’ll get richer with 3G.

The reason for iPhone to revolutionize the arena of mobile marketing is nothing other than that it’s the best mobile gaming platform as compared to others existing in the market. And, it’s not just the iPhone buzz, instead the facts. According to the stats released by AOL in the mid of 2008, iPhone gamers generate four times of the page views as compared to players with other handsets, i.e. iPhone players have an average session of 21 minutes with 65 page views, while for others an average session is of 11 minutes with 15 page views.

Screen Digest which is a Global Media Market Research firm, reports that by 2012, advertising on mobile will worth $2.79 billion, and ad-funded games download will go upto 60 million per year [Source]. Since it’ll be touchscreen, ruling the mobile gaming world in near future, iPhone sounds to have the major market share. But the reason for iPhone’s lead in the market is not touchscreen only, instead it’s price and it’s popularity among all age groups and from different spheres of life, while other touchscreen handsets are having a target market of business professionals.

All above is my limited research, and m’ sure that iPhone will have lead in mobile gaming in the coming year. I’ll, however, appreciate if I happen to find some twist in this whole scene, with some authentic information.