Tuesday, August 17, 2010
Symfony multiple versions on the same environment
Step 1 - Un-install Symfony via PEAR
If you have Symfony installed via PEAR, get rid of it, it will only confuse you with what we are about to do.
express@express-dev:~$ sudo pear uninstall symfony/symfony
uninstall ok: channel://pear.symfony-project.com/symfony-1.1.0
Step 2 - Setup a structure for Symfony
In our case, I still want to install symfony in /usr/share/php/symfony, so lets set that up:
express@express-dev:~$ cd /usr/share/php
express@express-dev:/usr/share/php$ sudo mkdir symfony
Step 3 - Checkout each Symfony version you need
Now lets use SVN checkout to grab each Symfony version we are after, lets put these in a different folder under the base Symfony directory. Note: If you are behind a proxy, change your SVN settings first to go through your proxy. To change your proxy settings:
express@express-dev:/usr/share/php/symfony$ sudo nano /etc/subversion/servers
Now lets checkout each symfony version:
express@express-dev:/usr/share/php$ cd symfony/
express@express-dev:/usr/share/php/symfony$ sudo svn co http://svn.symfony-project.com/branches/1.0 symfony10
...
express@express-dev:/usr/share/php/symfony$ sudo svn co http://svn.symfony-project.com/branches/1.1 symfony11
...
express@express-dev:/usr/share/php/symfony$ sudo svn co http://svn.symfony-project.com/branches/1.2 symfony12
...
We now have created three installations of Symfony.
Step 4 - Create symbolic links for each version
The next step is for us to create symlinks for each version of Symfony. Lets place these in the standard bin directory:
sudo ln -s /usr/share/php/symfony/symfony10/data/bin/symfony /usr/bin/symfony10
sudo ln -s /usr/share/php/symfony/symfony11/data/bin/symfony /usr/bin/symfony11
sudo ln -s /usr/share/php/symfony/symfony12/data/bin/symfony /usr/bin/symfony12
Now lets test the sym links:
express@express-dev:~$ symfony10 -V
symfony version 1.0.19-PRE
express@express-dev:~$ symfony11 -V
symfony version 1.1.5-DEV (/usr/share/php/symfony/symfony11/lib)
express@express-dev:~$ symfony12 -V
symfony version 1.2.0-DEV (/usr/share/php/symfony/symfony12/lib)
What next? - Creating a new project
So to create a new project, you will need to use the relevant Symfony command. For example, to create a Symfony 1.0 project:
sudo symfony10 init-project test1
or to create a Symfony 1.1 or Symfony 1.2 Project:
sudo symfony11 generate:project test11
sudo symfony12 generate:project test12
Once you create a new project, check in the project Config to ensure its picked up the right version. For Symfony 1.0:
express@express-dev:/usr/local/express/projects/$ sudo symfony10 init-project test10
express@express-dev:/usr/local/express/projects/$ cat config/config.php
// symfony directories
$sf_symfony_lib_dir = '/usr/share/php/symfony/symfony10/lib';
$sf_symfony_data_dir = '/usr/share/php/symfony/symfony10/data';
for Symfony 1.1:
express@express-dev:/usr/local/express/projects/test$ cat config/ProjectConfiguration.class.php
require_once '/usr/share/php/symfony/symfony11/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
}
}
and for Symfony 1.2, its the same, just make sure its including the right 1.2 files. Thats it! Hope this helps!
Friday, July 16, 2010
HTML5 Samples
Step one
You can use standard object testing to determine if the browser supports GeoLocation.
<script>
/**
* This function is the callback which is passed the result from the .getCurrentPosition()
* function. The pos argument can contain more information than just the latitude/longitude,
* such as altitude, accuracy and speed information.
*
* @param object pos The result from the getCurrentPosition() call
*/
function myCallback(pos)
{
var myLatitude = pos.latitude;
var myLongitude = pos.longitude;
}
/**
* Test for GeoLocation support and make the call
*/
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(myCallback);
} else {
alert("Sorry, your browser doesn't appear to support GeoLocation");
}
</script>
Step two
Once you have tested for it, we can then retrieve the position using the getCurrentPosition() method. You pass this method a callback function which you define. This callback function is given an object (if successful), with various properties:
- latitude
- longitude
- altitude (optional)
- accuracy
- altitudeAccuracy (optional)
- heading (optional)
- speed (optional)
- timestamp
Monday, June 21, 2010
Interesting symfony plugins: sfSyncContentPlugin
sfSyncContentPlugin
Deploying symfony applications is always a key part of developing and maintaining websites that run on symfony. It is always a recommended practice to do development on a local environment or dedicated development server. It is also recommended to have a QA/staging server that is as close as possible to your production server. Using this well proven method you can spot problems and bugs before everybody else sees or experiences them, you know, those bugs that “only” happen in production, don’t tell me that it never happened to you, I won’t believe you.
Anyway, making changes in a live site is not only not recommended, it should never be done!
When developing and testing symfony applications, a lot of times you need to have a copy of the live data. Or you may have a staging server where you make changes before pushing them to a live site in a production server. symfony already provides a way to deploy code changes to a remote server, but what about uploaded and data files? And database content?
Since we discovered and started using it, we can’t live without thesfSyncContentPlugin plugin by Tom Boutell and Alex Gilbert, also developers ofApostrophe CMS. This plugin helps with all the tasks and needs described above. Using it is quite simple. All you need to do is define your servers in config/properties.ini like this:
[qa]
host=qa.example.com
port=22
user=user
dir=/var/www/mysite
[prod]
host=www.example.com
port=22
user=user
dir=/var/www/mysite
[staging]
host=staging.example.com
port=22
user=user
dir=/var/www/mysite
Make sure to use SSH keys to authenticate to your remote servers, so you don’t get asked again and again for passwords. Then just run the following symfony tasks:
# Migrate files and DB from development to qa
./symfony project:sync-content frontend dev to qa@qa
# Migrate files and DB to production (always make a backup of production before doing this!)
./symfony project:sync-content frontend dev to prod@prod
# Migrate files and DB from QA into development
./symfony project:sync-content frontend dev from prod@prod
Files and DB content are copied accordingly, almost magically. It saves so much time, but please make sure you understand and check the order that you apply in the symfony task. With the power this plugin provides, is very easy, by mistake, to overwrite production data, so again, always make a backup!
Thursday, December 31, 2009
CMS With XML Based Data Storage
GetSimple is The Simplest Content Management System EVER.
GetSimple has everything your client needs, and nothing a CMS doesn't
GetSimple is an open-source project licensed under the GNU GENERAL PUBLIC LICENSE.
GetSimple don't use mySQL to store information, but instead depend the simplicity of XML. By utilizing XML, able stay away from introducing an extra layer of slowness and complexity associated with connecting to a mySQL database. Because GetSimple was built specifically for the small-site market, feel this is the absolutely best option for data storage.
GetSimple CMS Home Page
About GetSimple CMS
Demo
Documentation
REQUIREMENTS
- UNIX/Linux host
- PHP 5.1.3+
- Apache
- No Database
- 6 minutes to spare
FEATURE LIST
- XML based data storage
- Best-in-Class User Interface
- 'Undo' protection & backups
- Easy to theme
- Great documentation
- Growing community
Saturday, October 31, 2009
Once Again SENSIO LABS comes with great things for developers [STAND ALONE COMPONENTS FOR PHP]
Just have look at those
YAML : PHP library that speaks yaml. YAML framework is the php library which take yaml as string and convert in to php array. All in all it is great product if you want to use it in any of your php project.
it is open source and available at YAML Component of Symfony
Templating : Which is templating engine, that you can use in any of your php project. It is the templating tool which you can use in any kind of templating system. Available at Templating System
And some other components available like EVENT DISPATCHER, DEPENDENCY INJECTION
And Request Handler The flexible micro-kernel for fast frameworks is coming sooner. have a look at
Symfony Components
All in all if you are now interested in symfony's some of the features to implement only. THIS IS THE BEST OF COMPONENTS YOU CAN TRUST. AND YET NOT REQUIRED TO USE THE SYMFONY. It shows the robustness of symfony projects.
Sunday, October 25, 2009
Have a look at the new Symfony 1.3 Alpha && its features
* Compatible with as many environments as possible
* Easy to install and configure
* Simple to learn
* Enterprise ready
* Convention rather than configuration, supporting fallback calls
* Simple in most cases, but still flexible enough to adapt to complex cases
* Most common web features included
* Compliant with most of the web "bests pratices" and with web "design patterns"
* Very readable code with easy maintenance
* Open-Source
Check it out the new Alpha Symfony 1.3 with new features... SYMFONY 1.3
- WHAT'S NEW IN SYMFONY 1.3
This alpha version will be the next stable release, is not suitable for production use. You can follow its development use by having a look at the Whats new in Symfony 1.3 even if you are willing to explore the .pdf then please click here.
- Upgrading projects from Symfony 1.2 to Symfony 1.3
To upgrade your 1.2 project to a newer version of Symfony 1.3, you will find all the steps and other information through this.. please Click here This document describes the changes made in symfony 1.3 and what need to be done to upgrade your symfony 1.2 projects. And If you want more detailed information on what has been changed/added in symfony 1.3, you can read the What's new? tutorial.
- Deprecations and removals in 1.3
Here are some of the deprecations and removals in newer version of symfony 1.3.To find the lists of all settings, classes, methods, functions, and tasks that have been deprecated or removed in symfony 1.3 please Click here
You can find the installation for the symfony 1.3 here Installation
And for the first time user don't bother here you can have basic installation Getting Started
Here are some of the important links through which you can direct download the source for Symfony 1.3
Wednesday, September 9, 2009
important CMS to be useful
1. Drupal:
Drupal gets the top nod because of its ease of use, vast number of modules, great user, developer, and support community.
License: GPL
Programming Language: PHP
Main advantages: core CMS, Views, CCK, Organic Groups, & huge library of contributed modules.
Disadvantages: complex, needs more top quality themes, frequent security upgrades.
Outlook: Huge potential to continue growth and expansion on this platform over time.
Website: http://www.drupal.org/
2. WordPress:
WordPress is a simple and elegant CMS, perfect for single user blogs, with a large number of themes and modules available online.
License: GPL
Programming Language: PHP
Main advantages: Easiest CMS to use, customize, and extend.
Disadvantages: Lacks many of the social networking functions, ecommerce, forums, wikis, etc. used on more expansive sites.
Outlook: Best for personal publishing, huge user community, will continue to be the preferred choice of bloggers for years.
Website: http://www.wordpress.org/
3. Joomla:
Joomla has one of the largest user communities of any CMS, everything you need and more to develop social networks, ecommerce, & archive sites.
License: GPL
Programming Language: PHP
Main advantages: Professional standards, internationalization, customization.
Disadvantages: too many commercial products for Open Source development, difficult to learn.
Outlook: Strong challenger for the top CMS spot, commercialization of extensions should continue to provide many income opportunities for 3rd party developers.
Website: http://www.joomla.org/
4. Media Wiki:
Media Wiki invented a whole new way of working on the web, and is a CMS for collective authoring of documents, used to power the one of the largest and most popular sites on the internet, Wikipedia.
License: GPL
Programming Language: PHP
Main advantages: If you need a wiki, it is the best.
Disadvantages: Does not include many other functions / extensions of other CMS platforms, doesn’t theme well, most sites look the same.
Outlook: Follows the model to success of doing one thing extremely well, has the support of the Wikipedia Foundation, very popular authoring model.
Website: http://www.mediawiki.org/
5. Liferay:
Liferay is a popular new CMS that is great for building portals, and offers a professional look and feel that sets it apart from the other platforms.
License: MIT
Programming Language: Java, PHP, Ruby
Main advantages: collaboration, calendars, internationalization, design.
Disadvantages: More closely tied to a commercial outlook / corporate structure than most Open Source projects.
Outlook: Not as well known or implemented as some of the other CMS platforms, but nice design & features to set your sites apart from the crowd.
Website: http://www.liferay.com/
6. TYPO3:
One of the most complex and professional CMS platforms out of the box, TYPO3 is popular for business websites, especially with European companies.
License: GNU
Programming Language: PHP
Main advantages: design, extensions, customizations, flexibility, professionalism.
Disadvantages: too difficult to learn for most, too many proprietary conventions.
Outlook: Strong CMS for web development, sure to continue with a core of specialized developers and corporate clients, but loosing support and market share to other platforms.
Website: http://www.typo3.com/
7. Moodle:
Moodle is one of the most unique CMS platforms on this list, designed specifically for Course Management and Education, and used for online learning platforms.
License: GNU
Programming Language: PHP
Main advantages: Huge user and development community, online education, no real competitors or similar products, extremely powerful.
Disadvantages: not really applicable for most web design purposes.
Outlook: Look for this “Modular Object-Oriented Dynamic Learning Environment” to continue to be the standard online operating system for education and spawn many interesting mashups with other CMS platforms as well as many more modules & extensions.
Website: http://www.moodle.org/
8. Dolphin:
Boonex Dolphin is popular among web designers who want the latest in social networking, with an industry standard look and all of the features of the popular online communities out of the box.
License: Creative Commons
Programming Language: PHP
Main advantages: Plug-n-Play user community with all the bells & whistles.
Disadvantages: not really Open Source, must pay to remove ads, requires specific hosting requirements, difficult to install, buggy.
Outlook: Look for Dolphin to continue to be a popular choice for social networking, though its “cookie cutter” design runs the risk of becoming stale with too many sites implementing the same design.
Website: http://www.boonex.com/products/dolphin/
9. Pligg:
Pligg is a Digg clone that provides social bookmarking functionality for websites, allowing users to post links, vote them up or down, and leave comments.
License: GPL
Programming Language: PHP
Main advantages: Best for Social Bookmarking, can be themed and extended to build top quality sites like Mixx, Redditt, Del.icio.us, etc.
Disadvantages: difficult to install, mod rewrite problems, poor support on community boards, questionable Open Source future.
Outlook: With the 1.0 release of Pligg upcoming within a couple of months, look for a big surge of use back to this platform but watch out for increased commercialization.
Website: http://www.pligg.com/
10. Movable Type:
Movable Type is the main challenger to WordPress for a personal blog platform, and supports multiple users, Themes, and Tags.
License: GNU
Programming Language: Perl
Main advantages: Blogs
Disadvantages: Too closely tied to commercial products and services compared to most Open Source communities, Perl.
Outlook: Look for MT to fall off the list as other of the blogging platforms below increase in popularity, but sustain development as PR for the company’s commercial offerings.
Website: http://movabletype.org/
i hope you like this details content originaly by http://webdevnews.net/2008/09/the-top-10-open-source-content-management-systems/
from,
kiran vadariya
Wednesday, September 2, 2009
some useful wordpress plugins
Advanced Tagline
Advanced Tagline gives the option to have multiple taglines for your blog and display them at random or sequentially with each page view.
Sodahead Polls
Want to create a poll for your readers and see live results? Bloggers use polls more than any other interactive application to engage their readers. Create an engaging experience for your audience today and keep them coming back for more.
Minimum Comment Length
Don’t you find it annoying when someone comments with just a smiley? Or a “thanks”? On quite a few forums you have to leave a comment with a minimum of 15 characters to be able to comment, but WordPress doesn’t allow you to set such a threshold. With this plugin, it does.
Blogging Tips
This plugin displays random blogging tips and suggestions. The tips are just some ideas of what you can do to improve the popularity of your blog and improve the content. All of the tips are designed to inspire you to be a better blogger.
Gravatar Recent Comments
Gravatar recent comments is a plugin providing you with a “Top/last commenters” widget but instead of just displaying names, it also displays gravatars.
Theme Authenticity Checker
Scan all of your theme files for potentially malicious or unwanted code. Be aware of advertisements or dangerous JavaScript inserted into legitimate themes by third party theme download sites.
List Category Posts
List Category Posts is a simple WordPress plugin which allows you to list some posts from a category into a post/page using [catlist=ID], where ID stands for the Category Id.
Expanding Text Plugin
This WordPress plugin allows you to create sections of text in your post or page which expand/collapse when clicked on. You simply wrap the special tags around your text, and set the ‘expand link’ (the link visitors click on to show the text).
Actionable
Actionable allows the creation of a categroized list of action items for users to check off and track. It was originally developed for Share 350.0 – a plan for regional sustainability to help people track their actions and efforts to create a sustainable community.
Lightbox Plus
Lightbox Plus is used to create overlay display images on the webpage and to automatically add the correct overlay links to images. Lightbox Plus captures the image title for display using a fairly robust regex to capture most character that may appear as part of the title.
original blog from http://www.blogohblog.com/10-new-useful-wordpress-plugins/
from,
kiran
Friday, July 31, 2009
symfony 1.2 features
Features
The admin generator will be rewritten from scratch to leverage the new form framework. The main goal is to provide a more customizable and a more flexible admin generator.
The Propel plugin and the Doctrine plugin will be bundled with symfony 1.2. So, as of symfony 1.2, the core team will officially support Doctrine as a first class citizen.
The development of secure applications has always been quite easy with symfony thanks to the use of the ORM, the output escaper, and the CSRF protection. Symfony 1.2 will go one step further by providing native input filtering. We will base this feature on the new filter extension bundled with PHP 5.2.
The framework must simplify the life of the developer on repetitive and boring activities. As most applications send emails, the Swift library, one of the most feature-full and flexible solution for sending emails in PHP, will be integrated into the core.
The JavaScript world evolves very quickly, with lot of great frameworks available (prototype, jQuery, Dojo, mootools, and YUI). all the JavaScript stuff available into a plugin.
The project:deploy task was just a proof of concept. So, it is time to start a discussion on the features we need for a proper deployment task.
The routing is now cached, so you can expect a significant performance boost when you got plenty of routes in your app. Also, the routing class is no more a singleton so you can now extend and reference it easily to fit your needs,
you can download symfony 1.1 from below given links .
sf_sandbox_1_1.tgz
sf_sandbox_1_1.zip
you can upgrade your existing symfony project into symfony1.2.
Thursday, July 30, 2009
Joomla! Resources Directory Launched
"We think this will be a great way to connect end-users and service providers in the Joomla Community," said Wendy Robinson of the JRD Team."Most small businesses can't afford to advertise on the Joomla.org sites and this will provide them wide exposure. With close to a million visitors and 14 million page views a month, the JED has proven that there is wide interest in products related to Joomla."
The JRD builds on the success of the JED—the most popular place to find Joomla Extensions. Both are powered by the Mosets Tree 2.1 directory extension, a GPL extension that also powers the Joomla Site Showcase.
If you're a service provider, listing in the Resource Directory is free of charge (premium listings will be offered in the future for a fee). This includes consultants, template designers, tutorial sites, and just about any other Joomla service. Users can post reviews of these services and share their experiences with the community.
Wednesday, July 15, 2009
Drupal 6.13 and 5.19 released
Drupal 6.13 and 5.19, maintenance releases fixing problems reported using the bug tracking system, as well as critical security vulnerabilities, are now available for download. Both releases fix some other smaller issues as well.
Upgrading your existing Drupal 5 and 6 sites is strongly recommended. There are no new features in these releases. For more information about the Drupal 6.x release series, consult the Drupal 6.0 release announcement, more information on the 5.x releases can be found in Drupal 5.0 release announcement.
Download Drupal 6.13
Download Drupal 5.19
for more information http://drupal.org/drupal-6.13
Thursday, July 9, 2009
Now symfony with netbeans also
content from.. http://www.symfony-project.org/blog/2009/07/08/symfony-support-in-netbeans-6-8
Wednesday, July 8, 2009
Vote For Symfony
why we are going to vote for SYMFONY ?
chk this link if you want to know about symfony http://www.symfony-project.org/
it show why we r going to vote symfony a best web development tool ever .
Vote For Symfony. go to this link. :)
http://sourceforge.net/community/cca09/vote/?f=392
from,
jasmin patel
Monday, July 6, 2009
symfony 2.0
today i w'll tell you about symfony 2.0 upcoming version of symfony after sucess of symfony 1.0 and 1.2,
One thing is very intersting in symfony 2.0 is it's more faster then old versions.
also many features updated and change in controlorrs and many more ...
if you want to know more about symfony 2.0 then click here
enjoy,
kiran :)
Wednesday, July 1, 2009
magento ecommerce feature :)
Marketing Promotions and Tools
Flexible Coupons (pricing rules) with ability to restrict to stores, customer groups, time period, products, and categories.
Catalog Promotional Pricing
Analytics and Reporting
Admin Dashboard for Report Overview
Abandoned Shopping Cart Report
Best Customers Report by Total and Number of Orders
Search Engine Optimization
Google Site Map
URL Rewrites give full control of URL's
Meta-information for products and categories
Site Management
Control multiple websites and stores from one Administration Panel with ability to share as much or as little information as needed
Web Services API for easy integration between Magento and any third-party application
One-Click Upgrades
Google Website Optimizer Integration for A/B and Multivariate Testing
Catalog Management
Batch Import and Export of catalog
Google Base Integration
Downloadable/Digital Products
Advanced Pricing Rules and support for Special Prices
Catalog Browsing
Layered / Faceted Navigation for filtering of products in Categories
Layered / Faceted Navigation for filtering of products in Search Results
Product comparisons
Product Reviews
Product Browsing
Multiple Images Per Product
Product Image Zoom-in Capability
International Support
Multi-Language
Support for Multiple Currencies
Checkout
One-Page Checkout
Checkout without account/Guest Checkout
Shipping to multiple addresses in one order
Shipping
Shipping to multiple addresses in one order
Multiple shipments per order
Free Shipping
Payment
Integrated with Google Checkout (Level 2)
Payment Extensions Available through Magento Connect
Configurable to authorize and charge, or authorize only and charge on creation of invoices
you can download magento from link.
I hope you liked this information.please write your comment and reviews.
from ,
kiran vadariya
Wednesday, June 3, 2009
Developing Symfony with Eclipse
Developing Symfony with Eclipse
The Symfoclipse-Plugin: Currently in Version 1.2.1 this is the first Symfony-Plugin for Eclipse. Some glitches and rough edges but pretty usefull. It allows you to run common commands like freeze, cc and so on for a symfony project. First support for YAML is also available. The plugin is available from: http://noy.cc/symfoclipse
from ,
hiren sejpal :)
Tuesday, May 26, 2009
make your own webserver free
i hope this w'll help you.
make your own web server
Monday, May 25, 2009
how to clear borwser's cache
somtimes, we have to clear browser's cache to display our changes correctly like after uploading new photo. this code w'll help you.
you can also use of header.
header("cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past from,
kiran vadariya
Symfony
A framework streamlines application development by automating many of the patterns employed for a given purpose. A framework also adds structure to the code, prompting the developer to write better, more readable, and more maintainable code. Ultimately, a framework makes programming easier, since it packages complex operations into simple statements.
Symfony is a complete framework designed to optimize the development of web applications by way of several key features. For starters, it separates a web application’s business rules, server logic, and presentation views. It contains numerous tools and classes aimed at shortening the development time of a complex web application. Additionally, it automates common tasks so that the developer can focus entirely on the specifics of an application. The end result of these advantages means there is no need to reinvent the wheel every time a new web application is built!
Symfony was written entirely in PHP 5. It has been thoroughly tested in various real-world projects, and is actually in use for high-demand e-business websites. It is compatible with most of the available databases engines, including MySQL, PostgreSQL, Oracle, and Microsoft SQL Server. It runs on *nix and Windows platforms. Let’s begin with a closer look at its features.
original blog from : Symfony
Tuesday, May 12, 2009
some useful symfony plugins
sfDynamicsPlugin
Manage javascripts/stylesheets libraries as coherent packages, dependencies, packing, caching and supercaching. JS framework independant. No magic included.
sfLanguageSwitchPlugin
This plugin gives you a component to include a simple language switcher. It holds the current URL and changes the sf_culture parameter.
ysfDimensionsPlugin
This plugin gives you a component to include a simple language switcher. It holds the current URL and changes the sf_culture parameter.
i18nTranslatePlugin
attempt to translate your sentences using Google AJAX Language API
sfKsnNewsPlugin
Main features includes: * multilanguage support (the same news item in different languages) * frontend (AJAX or form-based) administration * backend administration * lastest news block component and helper * autogeneration of news item annotation * fully customizable to suit your needs * news item files managment * nested news categories * RSS feed
hope tht you liked it.
thank you,
kiran vadariya