[symfony-users] Symfony developer needed

2011-02-05 Thread Mo Mughrabi
Hi, I have a project at the moment in which I need someone to jump in right away, the project is a symfony based, I have already finished more than 30% of the application and I need a developer with sense of ownership and dedication to jump in. It will require a lot of communication and if things

[symfony-users] Re: Handling addJoin in Criteria

2009-08-08 Thread Mo Mughrabi
gt;add(AreaPeer::DISTRICTS_ID, > $request->getParameter('search_input_districts')); > $c->add(ResturantsPeer::IS_ACTIVE, TRUE); > $this->objs = AreaPeer::doSelectJoinAll($c); > > this code will automatically add the neccesary joins, and take care of > the hydration of

[symfony-users] Handling addJoin in Criteria

2009-08-08 Thread Mo Mughrabi
Hello, am a little confused trying to build a join from 3 different tables. First of all, I noticed in the debug toolbar it was hitting the table 20 times which is the number of records i have although i made a join. this is my action code $c = new Criteria();

[symfony-users] Re: dynamic input fields

2009-07-27 Thread Mo Mughrabi
It might be a little complicated, first you need to do a regular static form just so you can understand the methods you need to use. As for the table structure you are proposing, it is too simple to be used, you must also have information about field types, sfValidations..etc idfield_names

[symfony-users] Re: String Variable to ClassName

2009-07-25 Thread Mo Mughrabi
I tried similar practice to this, but in my case I wanted to initiate a class using a variable $className = 'MyClass'; $Init = new $className(); which worked for me, so I believe it also should work for you as well. Thanks, On Sun, Jul 26, 2009 at 12:16 AM, adrianrz wrote: > > Hello, > > I n

[symfony-users] Re: Generate absolute URL for upload directory

2009-07-23 Thread Mo Mughrabi
the public_path('uploads/file.jpg'); On Thu, Jul 23, 2009 at 7:52 PM, Eno wrote: > > On Thu, 23 Jul 2009, Mo Mughrabi wrote: > > >I was trying to generate an absolute URL inside my form classes using > > sfContext::getInstance()->getController()->genUrl

[symfony-users] Generate absolute URL for upload directory

2009-07-23 Thread Mo Mughrabi
Hello everyone, I was trying to generate an absolute URL inside my form classes using sfContext::getInstance()->getController()->genUrl(); but apparently genUrl only can be used when supplied a route or module/action but i cannot get it to return the absolute path of my uploads folder. Any idea

[symfony-users] Re: Hidden fields not going through after submit

2009-07-18 Thread Mo Mughrabi
Am not 100% sure of your need here, but as far as what i understood. You could use that inside your ArticleForm class. class ArticleForm extends className { // at the end add this, if($this->isNew()) { $this->form->setWidget('status',new sfWidgetFormInputHidden(array(),array('value'=>'pend

[symfony-users] handing many-to-many relationship forms

2009-06-03 Thread Mo Mughrabi
Hi all, I have two tables which contain data and one table is a relationship between the two tables for example table1 id: name: longvarchar created_at: table2 id: name: longvarchar created_at: rel_table: table1_id: table2_id: my question is how do i embed rel_table when i p