Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under symfony...

weedo says...

Voir http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer
Listing 7-7 - Including a Partial in a Template of the mymodule Module

Filed under: symfony

weedo says...

link_to_image_tag_public_path_javascript_handlers_all_in_one.php :

Ce gist fait un bon résumé de quelques helpers de base

Filed under: symfony

Martin says...

Pirum is a simple PEAR Channel Server Manager

Pirum is a simple and nice looking PEAR channel server manager that lets you setup PEAR channel servers in a matter of minutes. Pirum is best suited when you want to create small PEAR channels for a few packages written by a few developers.

Pirum consists of just one file, a command line tool, written in PHP. There is no external dependencies, no not need for a database, no need to setup credentials, and nothing need to be installed or configured.

Filed under: symfony

jarod51 says...

From Netbeans...

Symfony support finished

Posted by Tomas Mysik on Oct 02 2009, 11:35:20 AM CEST

Hi all, today I would like to announce that the support for Symfony PHP Framework (as we planned it for NetBeans 6.8) is finished. So, what's new?

(If you missed our previous blog post about Symfony support in NetBeans, please, read it here.) 

Now, code completion offers proper Symfony variables in Symfony views.

Also, one can very easily navigate between Symfony views and actions. Of course, these actions are not present in other PHP files.

So, if you navigate from view to action... 

... you will end there :)

You can navigate vice versa as well (please notice that you must invoke the action from the body of a method).

One can assign shortcut for this action.

Please notice that these improvements will be available in NetBeans 6.8 Beta (will be released soon) .

Now, it's time to use NetBeans for your own Symfony projects or to follow Symfony tutorial to see whether Symfony support is good enough or should be improved. So, please test it and report all the issues or enhancements you find in NetBeans IssueZilla (component php, subcomponent symfony).

Filed under: symfony

datoine says...

symfony 1.3alpha1 released ! http://ping.fm/xfac5 php framework symfony

Filed under: symfony

datoine says...

Back to France until thursday and ready for symfony meetings

Filed under: symfony

datoine says...

Working on spam fighting techniques & email analysis symfony

Filed under: symfony

datoine says...

Digging on sfShop symfony open-source ecommerce platform http://ping.fm/jT8Sy

Filed under: symfony

Quân says...

adding an author property in the config/properties.ini file

[symfony]
  name=yourproject
  author=QuanNH <huu2uan [at] gmail.com>

Filed under: symfony

Dasher says...

Configuration Management is an old horse that rarely gets any loving outside of the Microsoft environment.

Generally its a mechanism that allows you to control the configuration and software available on machine but its usually clunky, brutally inefficient on the network and generally requires total control of the target machines.

Then along comes Opscode and opens up their Configuration Management Kitchen with Chef.  Chef is a lightweight approach to Systems Integration & Configuration Management (SI & CM for the light-hearted) built on Ruby/Rails/Gems that allows you to quickly deploy and configure software and services without requiring total domination. 

Ive had my eye on it for a while and with the Virtual Machine environments Ive been working on for Symfony and Zend I decided to dig in and give it a spin and Im impressed; almost beyond words J

Chef depends on having Fully Qualified Domain Names up and running and can be a little quirky without them

The installation instructions for the Chef-Server and Chef-Client are clear and concise and can be found here.

You start by installing the Chef-Server which provides the core back-bone to support your environment.  Once its up and running you have Chef running on Rails under Apache providing a web and REST interface for clients (or nodes in the Chef parlance).  Here you can view and control the attributes of a node, examine your configuration scripts (Recipes)  and authorise clients.  The GUI tools in the current (6.2) release are a little raw but functional and the coming 6.4 Release sharpens up the Web UI a lot (and brings with it a whole host of exciting features).  I setup the chef server on a stand-alone VirtualBox machine with 256 MB memory and a 3GB disk which is working well for everything Ive thrown at it so far.  Youll need to login to the Web UI using OpenID and ensure you use the appropriate domain appended to your login full details of the OpenID providers and their naming schemes can be found on the OpenID site here.

It can take a few minutes for the registrations to appear in the Chef Web UI

Once you have the server up and running youll need to install the chef-client on a host.  Once up and running the client will connect to the server and register itself.  Youll need to fire-up the Web UI on the server and authorise the client before youll be able to do anything more with the client. 

Once its been authorised just run the chef-client again with:

sudo chef-client

When it completes youll see the information about the client in the Web UI in the nodes and status panels.

If you don’t authorise a client on the server then you’ll see a HTTP 403 error when you run the chef-client. 

Now you have both the client and server up and running you can get down to the real business of deploying something. 

Open 2 SSH connections one on the chef-server and another on the chef-client and start simply by following their quick-start guide on the chef-server and in a couple of minutes youll have your first chef-recipe complete.  Now just drop into the cookbooks folder and copy the quick_start cookbook to /srv/chef/site-cookbooks:

cd cookbooks
cp –R ./quick_start /srv/chef/site-cookbooks/

Now refresh the Web UI and open the Recipes Panel and youll see the quick_start recipe that you just created listed.

To apply the recipe to a node (your client) open up the nodes panel in the Web UI and double click on Recipes for it.  In Chef 6.2 youll get an awful textbox with the information for the node in JSON format.  Scroll down to the bottom and youll find the recipes entry inside the [] put quick_start (include the “”) and hit save.

The end result should look something like:

"recipes": [
    " quick_start"
],

If you did it right youll see the page update.  Another minor issue in the 6.2 release is that if you didnt update the JSON correctly youll see saving thatll never complete.

 

All thats left is to switch to the chef-client SSH terminal and get the client to update itself now with:

sudo chef-client

A few seconds later the client will find that it has a new recipe and install it.  On the client go to the /tmp folder and youll see deep_thought.txt from the chef-run.

Now this seems like a lot of effort to get a text file to appear in a folder but its just as simple writing a recipe that installs MySQL, PHP, Redmine, Symfony or Zend Server.  But its not just about installing packages thats already pretty simple using bash with apt or yum.  Using a recipe allows you to ensure that the installs are idempotent or transactional.  If one part fails then you can ensure that the machine is left in a known reliable state.  If you have a failure in a script then you can be left with partial installs or worse the machine in an unreliable or unworkable state.

One of the exciting aspects to all of this is that its very easy to hook things together not just on one machine but all machines in your environment regardless of what OS theyre running.  A recipe to install Zend Server, Symfony, MySQL or as a single package will work on Ubuntu, Redhat, CentOS or most other variants.

Hooking into the infrastructure allows very simple approaches to things like provisioning, deployment and configuration of environments in my case this allows:

  • Automated creation of a virtual machine instance
  • Automatic provisioning of the instance
  • Dynamic allocation & changing of the resources available to the instance (Memory, Disk, Drives, etc) although with VirtualBox a reboot is needed for memory changes to take effect
  • Dynamic package and configuration allowing me (from within the VM instance) to switch its mode of operation and determine its role.  So within minutes it changes from all in one (complete LAMP on the instance) to the DB Server role


 

 

 

 

 

Filed under: Symfony