symfony-1.4

Modules views and actions inside tabs

痞子三分冷 提交于 2020-01-06 08:13:12
问题 I'm developing a site using Symfony 1.4.20 but the designer wants things like this image Each of this is a admin module generate trough task doctrine:generate-admin . How I achieve this task? I mean works with every from one interface made by tabs? EDIT Based on suggestions made by @antony I do this: Create a components.class.php inside /frontend/modules/emisores/actions/components.class.php , add this code inside the class: class emisoresComponents extends sfComponents { public function

Symfony does not detect relative url root

不羁岁月 提交于 2020-01-06 07:05:08
问题 In symfony 1.4 in settings.yml we are using the option: env: request: param: relative_url_root: /name-of-app to specify which relative_url_root an app uses. So every app runs under a different relative_url_root. The problem is that symfony 1.4 routing does not detect this relative url root. So for example if we have the following route: route_name: url: /some-module/some-action param: { module: somemodule, action: someaction } And we try to access http://myproject.local/name-of-app/some

Symfony does not detect relative url root

北城余情 提交于 2020-01-06 07:04:25
问题 In symfony 1.4 in settings.yml we are using the option: env: request: param: relative_url_root: /name-of-app to specify which relative_url_root an app uses. So every app runs under a different relative_url_root. The problem is that symfony 1.4 routing does not detect this relative url root. So for example if we have the following route: route_name: url: /some-module/some-action param: { module: somemodule, action: someaction } And we try to access http://myproject.local/name-of-app/some

How to add a prefix to all my routes

落爺英雄遲暮 提交于 2020-01-05 07:52:49
问题 I'm currently working on a website built with symfony 1.4 and I need to implement a route prefix for all the routes. This prefix is used to specify two differents "views" for the website, for exemple : www.domain.com/b2b : B2B oriented view www.domain.com/b2c : B2C oriented view Both of these URLs render the same modules/actions but with little specific differences (textes, images, ...). So, www.domain.com/b2b/module1/action1 and www.domain.com/b2c/module1/action1 must proceed the same action

How to add a prefix to all my routes

…衆ロ難τιáo~ 提交于 2020-01-05 07:52:06
问题 I'm currently working on a website built with symfony 1.4 and I need to implement a route prefix for all the routes. This prefix is used to specify two differents "views" for the website, for exemple : www.domain.com/b2b : B2B oriented view www.domain.com/b2c : B2C oriented view Both of these URLs render the same modules/actions but with little specific differences (textes, images, ...). So, www.domain.com/b2b/module1/action1 and www.domain.com/b2c/module1/action1 must proceed the same action

Symfony alternate new action

人走茶凉 提交于 2020-01-05 07:34:48
问题 I have a server where I need to store some images. Now the images can be either uploaded or created on the fly let us say just by adding some text to some default picture(So I made a file MakenewForm.php for that) . The table in my database stores filename on the local filesystem. Now upload is simple, I can just use the default _new action for that. For creating picture, I made a new action, say makenew . new and makenew both are diplayed on the list view. I copied newSuccess.php to

Symfony - Add a column to a table without losing already generated classes

霸气de小男生 提交于 2020-01-05 07:30:03
问题 How can I add a column to a Database table without overwriting the classes already generated? (Doctrine) What files do I have to edit? If I simply add the column in the database, I can't use the set and get functions of Doctrine ORM. 回答1: Use doctrine migrations. It allows you to modify your schema, update the database and your model without also losing the existing data in your database (in case it is relevant). http://www.symfony-project.org/doctrine/1_2/en/07-Migrations Applicable for

Symfony - Add a column to a table without losing already generated classes

ⅰ亾dé卋堺 提交于 2020-01-05 07:29:02
问题 How can I add a column to a Database table without overwriting the classes already generated? (Doctrine) What files do I have to edit? If I simply add the column in the database, I can't use the set and get functions of Doctrine ORM. 回答1: Use doctrine migrations. It allows you to modify your schema, update the database and your model without also losing the existing data in your database (in case it is relevant). http://www.symfony-project.org/doctrine/1_2/en/07-Migrations Applicable for

Handling Multiple Config Files in symfony and non symfony

坚强是说给别人听的谎言 提交于 2020-01-05 03:37:33
问题 In my web application some of my application is in symfony and some is in non symfony. As a result there are multiple database connection files (say database connections files one of which is a yml file and other is a php file.) I am thinking to create a table and store database connection in this table and then create config files from them. Is there any other approach for this. 回答1: You should keep the databases.yml and load it from your non symfony application. Inside your non symfony

Handling Multiple Config Files in symfony and non symfony

帅比萌擦擦* 提交于 2020-01-05 03:37:26
问题 In my web application some of my application is in symfony and some is in non symfony. As a result there are multiple database connection files (say database connections files one of which is a yml file and other is a php file.) I am thinking to create a table and store database connection in this table and then create config files from them. Is there any other approach for this. 回答1: You should keep the databases.yml and load it from your non symfony application. Inside your non symfony