symfony-1.4

Why can't symfony find my auto-loaded class?

 ̄綄美尐妖づ 提交于 2019-12-12 02:36:29
问题 I'm trying to use the php-ga third-party library in my symfony project. I've installed the library in apps/<app>/lib , cleared the cache, and the third-party files are appearing as I would expect in config_autoload.yml.php : 'tracker' => 'C:/wamp/www/apps/api/lib/php-ga/GoogleAnalytics/Tracker.php', 'transaction' => 'C:/wamp/www/apps/api/lib/php-ga/GoogleAnalytics/Transaction.php', ... However, when I try to use the classes in an action under the same app like so: use UnitedPrototype

Doctrine record unknown exception in a Symfony 1.4 backend admin module

☆樱花仙子☆ 提交于 2019-12-12 02:32:06
问题 I am facing a problem with the admin generator and I am unable to get my way around this after 3 hours of brainstorming and exploring. The error reads as: 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException Unknown record property / related component "option1" on "Questions" Looking up the WWW, I got a gist of possible alternatives. None of which seem like the answer. option1, does exist under Questions schema. However, it is option_1 so I am not sure why it says option1.

Is there a way of using PHP-ActiveRecord as symfony's ORM/abstraction layer?

岁酱吖の 提交于 2019-12-12 01:58:24
问题 I just discovered PHP-ActiveRecord not too long ago after struggling for nearly a month to write my own ORM (I'm hard headed like that) and I fell in love with it. I had looked at Doctrine and Propel before but decided to run away due to the sheer complexity and learning curve. With AR, I don't have the anxiety and learning difficulty I had with the others. Shortly thereafter, I also discovered the symfony framework (I was also trying to make my own framework from stratch after finding other

Checkboxes are not checked

雨燕双飞 提交于 2019-12-12 01:50:03
问题 I cannot get DB values of games to be selected: Game: actAs: Timestampable: ~ columns: id: { type: integer(4), primary: true, autoincrement: true, unsigned: true } game_name: { type: string(100), notnull: true } logo: { type: string(100), notnull: true, comment: "Game Logo" } indexes: it: fields: game_name type: unique Campaign: actAs: Timestampable: ~ columns: id: { type: integer(4), primary: true, autoincrement: true, unsigned: true } name: { type: string(100), notnull: true } percentage: {

i got this error 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception

家住魔仙堡 提交于 2019-12-12 01:46:38
问题 when i am update my form, i got this error 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception executeEdit public function executeEdit(sfWebRequest $request) { $this->form = new ContactForm(); $this->rs = Doctrine::getTable('login')-> find($request->getParameter('id')); $id=$request->getParameter('id'); $unm=$this->rs['username']; $msg=$this->rs['message']; $em=$this->rs['email']; $sub=$this->rs['subject']; $this->form->setDefault('id', $id); $this->form->setDefault('username',

Doctrine_Record_Exception “Couldn't call Doctrine_Core::set()” while try to save form data

断了今生、忘了曾经 提交于 2019-12-12 01:08:19
问题 I'm having this issue and I can't find what is wrong. I'm trying to update object before execute the form save method and I do as follow (I wrote the whole class just in case): class SdrivingMaquinaForm extends BaseSdrivingMaquinaForm { protected $current_user; public function configure() { $this->current_user = sfContext::getInstance()->getUser()->getGuardUser(); unset($this['updated_at'], $this['created_at']); $this->widgetSchema['idempresa'] = new sfWidgetFormInputHidden(); $id_empresa =

How to do Password Reset in Symfony 1.4 ? (Without using a plugin)

谁都会走 提交于 2019-12-12 01:05:34
问题 I want to add a Reset Password option for my User login module. So I've followed Askeet Tutorial (symfony 1.0). But I'm getting errors when I click forgot password it redirect to "Password request Action" with this error: Fatal error: Call to undefined function input_tag() , submit_tag, form_error() Why am I getting erros for those keywords? Is that mean those are not compatible with my symfony version (i'm using symfony 1.4, tutorial is for symfony 1.0) OR Can any one suggest me any other

custom route for doctrine nestedSet

我怕爱的太早我们不能终老 提交于 2019-12-11 23:24:07
问题 I have been able to to successfully display all the nodes in a nice tree on the frontend, but the problem comes with rendering of the actual pages. So I have 2 parents, Dog and Cat , and withing them I have multiple child nodes. I have created a frontend module named animals that has an empty indexSuccess.php file. In my actions.class.php file i have: $this->animal = AnimalTable::getAnimalBySlug($request->getParameter('slug')); In my Animal model public static function getAnimalBySlug($slug)

Symfony sfGuardUser single authentication on several subdomains

爱⌒轻易说出口 提交于 2019-12-11 20:19:45
问题 I'm using symfony 1.4.20 with the sfGuardUser plugin. I have several subdomains that are sharing the same app. One module of the app should serve a slightly different content according the user is logged in or not. This module should be accessed through a subdomain, say sub.domain.com. Right now, if I access this module through domain.com, this works. If I access the modules through sub.domain.com, the user is seen as not logged in even if he is. My guess is the auth cookie used by the sfguad

Symfony 1.4 doctrine model object data retrieve issue

梦想的初衷 提交于 2019-12-11 18:41:37
问题 In my symfony 1.4 application i'm using doctrine data models.I'm new to symfony and doctrine.I generated doctrine models from command-line after defining database table information in the schema.yml file.Those generated successfully.Then i created a custom function inside Table.class.php file.Following is that. class Table extends BaseTable { public function getuname() { $user=new Table(); $uname=$user->getUsername(); return $uname; } } I want to know how to call this inside the controller ?