symfony-1.4

Propel version with symfony 1.4.11

你。 提交于 2019-12-11 18:22:31
问题 I went through few post but didn't find an answer to probably one of most simple questions. What is the standard Propel version that comes bundled with symfony 1.4.11? In one answer, I found a recommendation to use the awk command but unfortunately I'm on Windows, so that command will not run for me. Another answer was to install different Propel Lib; please, no such answers. 回答1: Simply give a look to the svn repository. Each symfony version are tagged. You will see: propel http://propel

symfony - embeddedForm - multiple checkboxes

半城伤御伤魂 提交于 2019-12-11 17:52:29
问题 I have article admin module and a tag module Tags are simply a single tag per row item What I'd like to do is to embed the list of all the tags (as checkboxes) into my article module Could I do this with embedded forms? EDIT: This is my schema: article: id: ~ title: { type: VARCHAR, size: '255', required: true } tags: { type: VARCHAR, size: '500' } created_at: { type: TIMESTAMP, required: true } updated_at: { type: TIMESTAMP, required: true } tag: id: ~ tag: { type: VARCHAR, size: '500',

Embedded forms in symfony 1.4 not saving properly

寵の児 提交于 2019-12-11 14:02:06
问题 I have the following model: WebPromocion: connection: doctrine tableName: WebPromocion columns: id: type: integer(4) fixed: false unsigned: true primary: true autoincrement: true nombre: type: string(100) fixed: false unsigned: false primary: false notnull: true autoincrement: false foto: type: integer(4) fixed: false unsigned: true primary: false notnull: true autoincrement: false flyer: type: integer(4) fixed: false unsigned: true primary: false notnull: true autoincrement: false desde:

Symfony 1.4 Doctrine 1 Yaml, cannot define default Timestamp value

安稳与你 提交于 2019-12-11 13:11:04
问题 I have been trying to set TIMESTAMP DEFAULT CURRENT_TIMESTAMP default values for the table columns created_at and updated_at in my schema.yml as explained in this post. System Info: Symfony 1.4.17 , Doctrine 1 MySQL 5.6.10 PHP 5.4 Carefully read the columnDefinition documentation but couldnt get it to work. As stated in the documentation, columnDefinition attribute should be set after the name of the column. After making a migration of the database, the default values set in columnDefinition

Storing Session Data

给你一囗甜甜゛ 提交于 2019-12-11 12:43:39
问题 I have some rhetorical question regarding storing session data in Symfony. We can store session data as variables: // The First Example $this->getUser()->setAttribute('hash', $hash); $this->getUser()->setAttribute('name', $name); Or as an Array: // The Second Example $this->getUser()->setAttribute('something' , array('hash' => $hash,'name' => $name)); With the first example, we can use hasAttribute('name') to check if it's set and with the second example, we will need two lines of code for

Symfony 1.4 Session vs $_SESSION Issues

丶灬走出姿态 提交于 2019-12-11 11:27:57
问题 I have a strange behavior when i'm working on my development Installation( Ubuntu 12.04 Firefox ). I store values into my Session like this in a Component Class(..Components.class.php) : $this->getUser()->setAttribute("ns1", myarray(), "globalNameSpace"); When this Controller is called i see into Debug Modus that User Session is set, but Globals Session($_SESSION) is not set, then i can't accessed the Session for example with $sf_user->getAttribute(...) . I should reload the whole Page to see

Removing table headers from embedRelation()

半世苍凉 提交于 2019-12-11 11:07:22
问题 I have used the embedRelation() to pull another form into the sfGuard user form. It is working correctly, I am just trying to style it to fit into the current form. This pulls the form in: $this->embedRelation('Profile'); but it is adding some extra html elements that I would like to remove: <div class="form_row"> Profile <table> <tbody><tr> <th><label for="sf_guard_user_Profile_department_title">Department</label></th> <td><input type="text" name="sf_guard_user[Profile][department_title]"

SOAP error when calling remote service

社会主义新天地 提交于 2019-12-11 11:05:55
问题 My webservice was created using plugin: http://www.symfony-project.org/plugins/ckWebServicePlugin provided for Symfony 1.4 It worked fine on local machine but giving me error when I deploy service to remote server. This is stack trace: The server sent HTTP status code 200: OK Stack Trace com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:277) com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:228) com.sun.xml

Adding a new user field to sfGuard user Admin Form

匆匆过客 提交于 2019-12-11 10:49:10
问题 I am trying to add a custom field to the user form in the sfGuard plugin. I have created the column in the database and added the widgetschema for the field. It is showing up correctly in the form, and when text is added and submitted, it is showing the update was successful. The data inserted into the field is not getting populated in the database though. I am thinking I have to update the model for sfGuard, as it is not aware of the new field. I have tried $ ./symfony doctrine:build-model ,

How to add a new form to the Jobeet example?

纵饮孤独 提交于 2019-12-11 06:09:00
问题 I did the Symfony 1.4 Jobeet example project and now i would like add an additional form. How to do it correctly in a single project? Default Symfony itself generates the first form, but how can I create my own from scratch? If i use in command line: php symfony doctrine:build --forms This generates only the default form, I would like to have two forms. How can I do it? Must I generate a new project? 回答1: No, you do not need to create a new project. You can extend your test project by adding