symfony1

How to send POST variables to External URL ?

落爺英雄遲暮 提交于 2019-12-24 18:06:09
问题 I'm making a shopping cart. I would like to save the order before going to the payment gateway. My payment gateway requires me to send a POST to external address but not how to do it from a controller action. public function executeBuy(sfWebRequest $request) { sfProjectConfiguration::getActive()->loadHelpers('Url'); // save the order $this->order = new Order(); $this->save //etc.... //go to TPV Payment gateway $dsAmount = (float)$order->getPriceWithShipping() * 100; $dsOrder = (int)$order-

symfony/zend integration - blank screen

好久不见. 提交于 2019-12-24 17:44:06
问题 I need to use ZendAMF on a symfony project and I'm currently working on integrating the two. I have a frontend app with two modules, one of which is 'gateway' - the AMF gateway. In my frontend app config, I have the following in the configure function: // load symfony autoloading first parent::initialize(); // Integrate Zend Framework require_once('[MY PATH TO ZEND]\Loader.php'); spl_autoload_register(array('Zend_Loader', 'autoload')); The executeIndex function my the gateway actions.class

htaccess change webroot and protect files

时光总嘲笑我的痴心妄想 提交于 2019-12-24 16:27:36
问题 I have always ensured my application code, configuration files, logs, etc, are stored OUTSIDE of the webroot. It's just common sense. So, my project structures look something like... /app/ /config/ /web/ My client is already with godaddy, so I stupidly registered a basic linux hosting package with them, before realising they don't let you access one level above your webroot OR change your webroot to one level lower. Their tech support guy just told me to make a new folder in there and call it

Doctrine: Models with column_aggregation inheritance appear twice in SQL

亡梦爱人 提交于 2019-12-24 15:36:17
问题 Has anyone noticed this? Whenever a model uses column_aggregation (inheritance), the schema.sql has 2 CREATE TABLE commands, one creates the basic table, and the other (apart from fields) adds an index on the inheritence column CREATE TABLE Prop (id INT AUTO_INCREMENT, opt_property_type SMALLINT UNSIGNED DEFAULT 251 NOT NULL, property_nature VARCHAR(255), INDEX opt_property_type_idx (opt_property_type), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;

Is there any way of using match against statement in Propel (ORM)?

流过昼夜 提交于 2019-12-24 10:37:34
问题 Is there any way of using match against statement in Propel (ORM)? It is odd I cannot find anything related to this. 回答1: No direct support. Perhaps a custom query? $con = Propel::getConnection(BookPeer::DATABASE_NAME); $sql = "SELECT title,category FROM articles WHERE MATCH(title,category) AGAINST (:text); $stmt = $con->prepare($sql); $stmt->execute(array(':text' => 'My match text')); 回答2: At least in Propel 1.7 it works with a where() clause: UserQuery::create()->where('MATCH(' . UserPeer:

SYmfony plugin upload error: You must specify the min version for symfony

雨燕双飞 提交于 2019-12-24 09:29:48
问题 I have been trying to upload my SYmfony plugin for some time but I keep getting this error. Initially the dependency on the SYmfony Package was missing, but I added that. My package.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http:/

Apostrophe CMS: Hosting questions + feasible to get into without Symfony experience?

只谈情不闲聊 提交于 2019-12-24 08:18:35
问题 I am looking for a clean, well-built CMS. I want to migrate a number of sites away from a self-built CMS which I will not be developing further. I've come across Apostrophe and instantly fell in love with the great, integrated user interface. It is based on the Symfony framework, which I have practically no experience with. My questions: I am planning to deploy sites I build with this CMS on shared hosting packages which do not offer any command line access. I know that many of Symfony's

Temporary store image in php only while displaying on web page

点点圈 提交于 2019-12-24 07:26:35
问题 I want to fetch images from other site and display on my site. I want to store that images in my side temporary only at time of showing on page , so that user think images are coming from my site.is it possible? How? Thanks in advance. ex:- imagine there are some graphs generated in a server (some network monitoring graphs like smokeping )and those graphs are stored in a folder as .png format. ex:- imagine_this_url_has_a_graph (but this is just a page) so that user want to show those graphs

Using symfony with postgresql

Deadly 提交于 2019-12-24 03:14:17
问题 I am trying to create a website using Symfony and PostgreSQL. I cant find any documentation that shows how to do this. All the documentation assumes the backend db is mySQL. Anyone knows how to do this? 回答1: If you are using Doctrine, just use a dsn for pgSQL in your databases.yml, like this : pgsql:dbname=testdb;host=127.0.0.1 It use the PDO syntax. Check the Doctrine documentation and PDO documentation. 回答2: Symfony uses 3rd-parties ORMs for DB communication which provide abstraction layer

Symfony - updating unique column - validation problem

与世无争的帅哥 提交于 2019-12-24 00:47:01
问题 I'm new to Symfony Framework and I ran into a problem with form validation. I want to update data in DB including unique column, but if unique column is unchanged, an error is returned (An object with the same "domain" already exist."). Domain column must be unique, but user should be able to change it. So, if one user saves his domain name, no one else can use it, but he can change it in future. It seems like form validation compares unique column not only to other rows, but to itself too.