symfony

Creating a form manually in Symfony

Hi, I'm constructing an ecommerce application in Symfony, and I have a page which lists the products within a specific category, eg at the URL "/categories/list/id/1": Product 1 Product 2 ... I'd like to have something of the form: Product 1 * Add [ 1 ] of these to your shopping cart [Go] Product 2 * Add [ 1 ] of these to your sh...

is it possible to put the template of a component in an other folder then the template folder in Symfony

I have a component that calls a template from the template folder as it should be done. But as there are a lot of files in the template folder i would rather have them split up in different sub folders. Is it possible to call a template in a specific folder for a component? And how is this done? now i have public function executeTest(){...

In symfony, how to set the value of a form field?

I'm overriding my doSave() method to basically do the following: I have a sfWidgetFormPropelChoice field that the user can either choose from, or type a new option. How can I change the widget's value? Or maybe I am approaching this the wrong way. So here is how I overrode the doSave() method: public function doSave($con = null) { // S...

Make all form validation errors show up at top in symfony?

I think I may be missing something here that should be relatively common. How can I make all form validation errors, including field-bound errors, show up at the top of the form (global)? ...

Symfony sfGuardPlugin session inconsistencies

Ok I have several modules in my application in symfony. I have only one module that is secure: on. I also have a layout.php that on top includes a tabbed menu to display links for each module in my application. This menu also has a part where the user is displayed link to 'sign in' if user is not logged in and 'log out' if user is logged...

How can I create separate web directories for each application in symfony?

For instance, I have two applications: 'frontend' and 'backend'. I'd like my /web directory to be set up so that '/web/frontend' serves the 'frontend' assets, and '/web/backend' serves the 'backend' assets without having to go modify all the image paths, etc. ...

Include Scripts library into Symfony application

I have a directory of PHP scripts ( mainly utilities), that is located on C:\Development, whereas my Symfony application is located in D:\Development. How to include the utility scripts into the Symfony application? I try not to use include() because I prefer a symfony-like command. ...

Propel custom Setter with SQL-specific stuff

Hello stackoverflow gurus I am using Propel 1.2 in a Symfony 1.0 project, with PostgreSQL db. I can use Criteria::CUSTOM in SELECT statements in order to use Postgres functions, like this (fulltext search): `$c = new Criteria(); $c->add(MyTablePeer::FULLTEXT_COLUMN, MyTablePeer::FULLTEXT_COLUMN." @@ to_tsquery('english', 'text to sear...

Error with propel-generate-crud in Symfony 1.0

When I try to generate a CRUD test for a new project I am getting a PHP Warning and a Fatal Error. The errors relate to files that it cannot find, however, I have checked and the files are definitely there. The error text is 'require_once(lib/model/map/QuestionMapBuilder.php): failed to open stream: No such file or directory in c:\webr...

Symfony "cannot fetch TableMap" error when using propel:build-all

Cannot fetch TableMap for undefined table: order_product. Make sure you have the static MapBuilder registration code after your peer stub class definition. Even if I erase the entire schema, clear the cache, and delete everything but "vendor" in the lib folder, I still get the error. I also get the error when doing propel:build-filter...

Converting a frozen production symfony project back to development project

Hey there! I need some advice on going about converting a production version of a symfony project which is in frozen state back to a development state so I can work on the project locally. I need to do this because I'm having to download the latest working copy from the server down onto my personal macbook so that I can work on some fil...

what does _model stand for in symfony/propel?

I change schema.yml from time to time and execute: symfony propel:build-all-load but the lib/_model and lb/model do not reflect my changes and cause: Call to undefined method ...

Getting started in Symfony... flow of CLI operations, etc

I sure hope this is an ok question to ask here. I realize it isn't a specific programming Q, but hopefully it does have an answer. I've been trying to learn Symfony (PHP framework) and I've gone through the Jobeet tutorial as well as read through the massive "Book". So I sit here about to begin my first project and amazingly find myse...

Is there a plugin for Symfony which works like phpMyAdmin?

Is there a plugin for Symfony which works like phpMyAdmin? ...

PHP Frameworks - Layout Dynamic Menu

I am developing a website in PHP and I would like to use a mvc framework to do this as I want to gain experience with PHP frameworks. I have looked at Zend, CakePHP, and CodeIgniter and I have not been able to find an intuitive way to accomplish this. What I need to do is create a layout that will be for example: <html> <head> <!--scr...

Doctrine migrations in symfony don't update model and forms

I've been testing the Doctrine migrations in symfony and I finally got them to work, but I noticed that these migrations only update the database. The forms and the model are not updated as I expected... Is this normal? If it's normal, is there a way to update the model with the changes made to the db? ...

About 3-tier architecture and symfony framework

Both of them are based from mvc. But in 3-tier architecture,storage layer is a separate layer, while in symfony framework,database(storage) level is included in model layer. Why are they different? ...

Call Symfony's model layer from Outside the Symfony applications

I have a PHP script, it is located in the same computer as my Symfony application. Now the issue is how can I, in the PHP script, call the Symfony's model layer? The reason for me to ask this is because for the PHP script, it needs to access a database that Symfony application is accessing. So I think it might help if I can call the Mo...

Symfony Sandbox 1.2 returns a blank page after unpacking into web folder

I have symfony 1.0 running on my Windows XP machine but have recently wanted to try Symfony 1.2. I unpacked the sandbox and set up a virtual host. The page returned is blank. http://sf_sandbox/web/ returns a blank page http://sf_sandbox/web/frontend_dev.php/ returns a blank page PHP, SQLite, Mysql are all fine. I tired adding echo ...

How does Propel determine which database to use for command-line tools?

How does Propel determine which database to use for command-line tools (ex. "propel:build-all")? I'm setting up two environments (production and staging), and the databases will be different for each. Is it "propel.ini" or "databases.yml"? If the former, does symfony auto-generate that file? I would greatly appreciate any help. Thank y...