[symfony-users] symfony

2009-08-07 Thread asim nizam

how to use paginationation

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
Thanks it works

On Mon, Aug 10, 2009 at 5:37 PM, Eric  wrote:

>
> I assume your webservers root path is /var/www
> Your first path "/civil/web/uploads/assets/abc.jpg" is absolute to
> this path, so it works.
> Your second path "var/www/civil/web/uploads/assets/abc.jpg" is
> relative. The corresponding absolute path ist "var/www/var/www/civil/
> web/uploads/assets/abc.jpg" which is obviously wrong.
>
> On 10 Aug., 13:30, sunny  wrote:
> > how to display uploaded image in template!
> >
> > i used 
> >
> > it works but
> >
> > 
> >
> > this not works!!
> >
> > need help
> >
> > new to symfony
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
Can you tell how to upload the file which have no relative path

thanks

On Mon, Aug 10, 2009 at 5:40 PM, asim nizam  wrote:

> Thanks it works
>
>
> On Mon, Aug 10, 2009 at 5:37 PM, Eric  wrote:
>
>>
>> I assume your webservers root path is /var/www
>> Your first path "/civil/web/uploads/assets/abc.jpg" is absolute to
>> this path, so it works.
>> Your second path "var/www/civil/web/uploads/assets/abc.jpg" is
>> relative. The corresponding absolute path ist "var/www/var/www/civil/
>> web/uploads/assets/abc.jpg" which is obviously wrong.
>>
>> On 10 Aug., 13:30, sunny  wrote:
>> > how to display uploaded image in template!
>> >
>> > i used 
>> >
>> > it works but
>> >
>> > 
>> >
>> > this not works!!
>> >
>> > need help
>> >
>> > new to symfony
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
no i am using correct path



while this show image

thanks

>
>>>
>>>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
sorry it is



i have stores file with this path  /var/www/civil/web/
uploads/assets/abc.jpg

i simply want to display

thanks



ause you are subscribed to the Google Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> -~--~~~~--~~--~--~---
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
ok thanks
On Mon, Aug 10, 2009 at 6:11 PM, Gábor Fási  wrote:

>
> You must have the public path over there. Assuming your webroot is
> /var/www, with this src your server is looking for a file in
> /var/www/var/www/civil/web/uploads/assets. The path you echo there
> should be /vicil/web/uploads/assets/abc.jp
> Just like Eric told you already.
>
> On Mon, Aug 10, 2009 at 14:04, asim nizam wrote:
> >
> >
> > sorry it is
> >
> > 
> >
> > i have stores file with this path  /var/www/civil/web/
> > uploads/assets/abc.jpg
> >
> > i simply want to display
> >
> > thanks
> >
> >
> >
> >> ause you are subscribed to the Google Groups "symfony users" group.
> >> To post to this group, send email to symfony-users@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/symfony-users?hl=en
> >> -~--~~~~--~~--~--~---
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: help needed

2009-08-10 Thread asim nizam
Than please tell me solution.

On Mon, Aug 10, 2009 at 6:12 PM, asim nizam  wrote:

>
> ok thanks
>
> On Mon, Aug 10, 2009 at 6:11 PM, Gábor Fási  wrote:
>
>>
>> You must have the public path over there. Assuming your webroot is
>> /var/www, with this src your server is looking for a file in
>> /var/www/var/www/civil/web/uploads/assets. The path you echo there
>> should be /vicil/web/uploads/assets/abc.jp
>> Just like Eric told you already.
>>
>> On Mon, Aug 10, 2009 at 14:04, asim nizam wrote:
>> >
>> >
>> > sorry it is
>> >
>> > 
>> >
>> > i have stores file with this path  /var/www/civil/web/
>> > uploads/assets/abc.jpg
>> >
>> > i simply want to display
>> >
>> > thanks
>> >
>> >
>> >
>> >> ause you are subscribed to the Google Groups "symfony users" group.
>> >> To post to this group, send email to symfony-users@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> symfony-users+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/symfony-users?hl=en
>> >> -~--~~~~--~~--~--~---
>> >>
>> >
>> >
>> > >
>> >
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormPropelChoice

2009-08-10 Thread asim nizam
i am newbie can use show me how to right correct code

On Tue, Aug 11, 2009 at 11:29 AM, cokker  wrote:

>
> It takes a criteria option. Look at the docs.
>
> Greets
> Sven
>
> sunny schrieb:
> > How to use criteria
> >  in
> >
> >  sfWidgetFormPropelChoice widget
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormPropelChoice

2009-08-10 Thread asim nizam
also how to display only selected data in dropdown using where clause


thanks

On Tue, Aug 11, 2009 at 11:31 AM, asim nizam  wrote:

> i am newbie can use show me how to right correct code
>
>
> On Tue, Aug 11, 2009 at 11:29 AM, cokker  wrote:
>
>>
>> It takes a criteria option. Look at the docs.
>>
>> Greets
>> Sven
>>
>> sunny schrieb:
>> > How to use criteria
>> >  in
>> >
>> >  sfWidgetFormPropelChoice widget
>> > >
>>
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony forms

2009-08-11 Thread asim nizam
On Tue, Aug 11, 2009 at 3:10 PM, shakir33  wrote:

>
> Hi everybody,
>
> i'm using symfony 1.2, and i have a problem with getting what the
> users wrote in the labels
>
> i try using
> $params = array(
>'name'=> $request->getParameter('nom'),
>'email'   => $request->getParameter('mail'),
>'message' => $request->getParameter('msg'),
>  );
>
>echo $request->getParameter('name');
>
> but i don't get the value of nom, i don't know what is the problem
> i have to get all the values of labels, and send it in mail
> it's very urgent so please somebady have a idea ??
>
>
> > you should use this syntax in your lib/forms


$this->widgetSchema->setLabels(array(
   'name'=> 'Name',
'email' => 'Email',
'message' => 'Message',
));

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: about session handling

2009-08-12 Thread asim nizam
thank you very much!!

On Wed, Aug 12, 2009 at 9:36 PM, Tom Haskins-Vaughan <
t...@templestreetmedia.com> wrote:

>
>
> http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_user_session
>
> sunny wrote:
> > how to creat sessions like $_SESSION['name']="asdasd";
> >
> > in symfony.
> > >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: about session handling

2009-08-15 Thread asim nizam
Can i use some thing like $_SESSION['name']="asim";

in symfony

On Sat, Aug 15, 2009 at 7:06 PM, DEEPAK BHATIA wrote:

>
> Hi,
>
> Below is taken from Symfony Chapter 6
>
>
> http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_user_session
> ===
>
>
> User Session
> Symfony automatically manages user sessions and is able to keep
> persistent data between requests for users. It uses the built-in PHP
> session-handling mechanisms and enhances them to make them more
> configurable and easier to use.
>
> Accessing the User Session
> The session object for the current user is accessed in the action with
> the getUser() method and is an instance of the sfUser class. This
> class contains a parameter holder that allows you to store any user
> attribute in it. This data will be available to other requests until
> the end of the user session, as shown in Listing 6-15. User attributes
> can store any type of data (strings, arrays, and associative arrays).
> They can be set for every individual user, even if that user is not
> identified.
>
> Listing 6-15 - The sfUser Object Can Hold Custom User Attributes
> Existing Across Requests
>
> class mymoduleActions extends sfActions
> {
>  public function executeFirstPage($request)
>  {
>$nickname = $request->getParameter('nickname');
>
>// Store data in the user session
>$this->getUser()->setAttribute('nickname', $nickname);
>  }
>
>  public function executeSecondPage()
>  {
>// Retrieve data from the user session with a default value
>$nickname = $this->getUser()->getAttribute('nickname', 'Anonymous
> Coward');
>  }
> }You can store objects in the user session, but it is strongly
> discouraged. This is because the session object is serialized between
> requests. When the session is deserialized, the class of the stored
> objects must already be loaded, and that's not always the case. In
> addition, there can be "stalled" objects if you store Propel objects.
>
> Like many getters in symfony, the getAttribute() method accepts a
> second argument, specifying the default value to be used when the
> attribute is not defined. To check whether an attribute has been
> defined for a user, use the hasAttribute() method. The attributes are
> stored in a parameter holder that can be accessed by the
> getAttributeHolder() method. It allows for easy cleanup of the user
> attributes with the usual parameter holder methods, as shown in
> Listing 6-16.
>
> Listing 6-16 - Removing Data from the User Session
>
> class mymoduleActions extends sfActions
> {
>  public function executeRemoveNickname()
>  {
>$this->getUser()->getAttributeHolder()->remove('nickname');
>  }
>
>  public function executeCleanup()
>  {
>$this->getUser()->getAttributeHolder()->clear();
>  }
> }The user session attributes are also available in the templates by
> default via the $sf_user variable, which stores the current sfUser
> object, as shown in Listing 6-17.
>
> Listing 6-17 - Templates Also Have Access to the User Session Attributes
>
> 
>  Hello, getAttribute('nickname') ?>
> If you need to store information just for the duration of the
> current request--for instance, to pass information through a chain of
> action calls--you may prefer the sfRequest class, which also has
> getAttribute() and setAttribute() methods. Only the attributes of the
> sfUser object are persistent between requests.
>
>
>
> On Sat, Aug 15, 2009 at 9:52 AM, sunny wrote:
> >
> >
> > Can any body give the right technique how to use session handling
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: style sheet issue

2009-08-17 Thread asim nizam
I have clear cache it still not working

On Mon, Aug 17, 2009 at 5:04 PM, Sid Bachtiar wrote:

>
> symfony cc
>
> On Mon, Aug 17, 2009 at 10:50 PM, sunny wrote:
> >
> > i have file main.css and i have included in view.yml.
> >
> > but the page doesnot display the main.css file.
> >
> > help needed
> > >
> >
>
>
>
> --
> Blue Horn Ltd - System Development
> http://bluehorn.co.nz
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-18 Thread asim nizam
$c = new Criteria();
$c->addSelectColumn(HrTblMarriagesPeer::ID);
$c->addSelectColumn(HrTblMarriagesPeer::HR_TBL_PARTICULARS_ID);
$c->addSelectColumn(HrTblMarriagesPeer::MAR_NAME_OF_SPOUSE);
$c->add(HrTblMarriagesPeer::HR_TBL_PARTICULARS_ID,2);*/

  $this->setWidgets(array(
  'id'=> new sfWidgetFormInputHidden(),

  'hr_tbl_marriages_id'   => new sfWidgetFormPropelChoice(array('model'
=> 'HrTblMarriages', 'add_empty' => true,'criteria'=>$c)),


how can i use in propel select choice it shows undefined index..






On Tue, Aug 18, 2009 at 3:56 AM, Andrei Dziahel wrote:

> Hi.
>
> Here is an excerpt from my blablaForm::setup():
>
>> $this->setWidget('country',
>>   new sfWidgetFormDoctrineSelect(array('model' => 'Country',
>>   'query' => Doctrine::getTable('Country')->
>> createQuery('c')->leftJoin('c.Translation ct')->orderBy('c.order DESC,
>> ct.name ASC';
>>
>
>
> 2009/8/18 afilina 
>
>>
>> Could you please demonstrate how to use this method? I didn't find
>> anything useful in the documentation to help me. Say I want to get a
>> list of products with their names from within my controller.
>>
>> Thanks,
>> Anna
>>
>>
>
>
> --
> With the best regards, Andy.
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how to display image in template

2009-08-21 Thread asim nizam
Yes when i visit  localhost/civil/web/uploads/assets/abc.jpg
i see the image!!



On Fri, Aug 21, 2009 at 7:13 PM, Gábor Fási  wrote:

>
> The /var/www... path is the full path on your server, you cannot
> access it via that one. Assuming your webroot is /var/www the path you
> need is /civil/web/uploads/assets/abc.jpg, this is how you can access
> it via the browser.
> If you visit localhost/civil/web/uploads/assets/abc.jpg do you see the
> image?
>
> On Fri, Aug 21, 2009 at 14:20, sunny wrote:
> >
> > i have image src path
> > /var/www/civil/web/uploads/assets/abc.jpg
> >
> > which doesnot display me the image while when i change it to
> > /civil/web/uploads/assets/abc.jpg
> > it display me the image .
> > i need the path  /var/www/civil/web/uploads/assets/abc.jpg to display
> > my image
> >
> > thanks!
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how to display image in template

2009-08-22 Thread asim nizam
Can any body tell me about file uploading and how to change its absolute
path when saving in DB so i can display image
/civil/web/uploads/assets/abc.jpg

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: illegal offset type

2009-08-26 Thread asim nizam
here is my form code


class HrTblJobApplicationForm extends BaseHrTblJobApplicationForm
{
  public function configure()
  {
 $this->setWidgets(array(
  'application_id'=> new sfWidgetFormInputHidden(),
  'vacancy_id'=> new
sfWidgetFormPropelChoice(array('model' => 'HrTblJobVacancy', 'add_empty' =>
false)),
  'lastname'  => new sfWidgetFormInput(),
  'firstname' => new sfWidgetFormInput(),
  'middlename'=> new sfWidgetFormInput(),
  'street1'   => new sfWidgetFormInput(),
  'street2'   => new sfWidgetFormInput(),
  'city_id'   => new
sfWidgetFormPropelChoice(array('model' => 'Cities', 'add_empty' => true)),
  'country_code'  => new
sfWidgetFormPropelChoice(array('model' => 'Countries', 'add_empty' =>
true)),
  'province'  => new sfWidgetFormInput(),
  'zip'   => new sfWidgetFormInput(),
  'phone' => new sfWidgetFormInput(),
  'mobile'=> new sfWidgetFormInput(),
  'email' => new sfWidgetFormInput(),
  'qualifications'=> new sfWidgetFormInput(),
  'status'=> new sfWidgetFormInput(),
  'applied_timestamp' => new sfWidgetFormDateTime(),
  'emp_number'=> new sfWidgetFormInput(),
  'inter_panel_code'  => new
sfWidgetFormPropelChoice(array('model' => 'HrTblPanels', 'add_empty' =>
true)),
  'created_by'=> new
sfWidgetFormPropelChoice(array('model' => 'Users', 'add_empty' => true)),
  'created_when'  => new
sfWidgetFormInputHidden(array('default' => date('Y/m/d H:i', time(,
  'modified_by'   => new
sfWidgetFormPropelChoice(array('model' => 'Users', 'add_empty' => true)),
  'modified_when' => new
sfWidgetFormInputHidden(array('default' => date('Y/m/d H:i', time(,
  'hr_tbl_app_education_list' => new
sfWidgetFormPropelChoiceMany(array('model' => 'HrTblEducation')),
));
$this->widgetSchema->setLabels(array(
'vacancy_id' => 'vacancy_id',
'lastname'   => 'Last Name',
'firstname'  => 'First Name',
'middlename' => 'Middle Name',
'street1'=> 'Street1',
'street2'=> 'Street2',
 'city_id'   => 'City',
'country_code'   => 'Country',
'province'   => 'Province',
'zip'=> 'Zip Code',
'phone'  => 'Phone',
'mobile' => 'Mobile',
'email'  => 'Email',
'qualifications' => 'Qualifications',
'status' => 'Status',
'applied_timestamp'  => 'Applied_timestamp',
'emp_number' => 'Employee Number',
'inter_panel_code'   => 'inter_panel_code',

));
$this->setValidators(array(
  'application_id'=> new
sfValidatorPropelChoice(array('model' => 'HrTblJobApplication', 'column' =>
'application_id', 'required' => false)),
  'vacancy_id'=> new
sfValidatorPropelChoice(array('model' => 'HrTblJobVacancy', 'column' =>
'vacancy_id')),
  'lastname'  => new
sfValidatorString(array('max_length' => 100)),
  'firstname' => new
sfValidatorString(array('max_length' => 100)),
  'middlename'=> new
sfValidatorString(array('max_length' => 100)),
  'street1'   => new
sfValidatorString(array('max_length' => 100, 'required' => false)),
  'street2'   => new
sfValidatorString(array('max_length' => 100, 'required' => false)),
  'city_id'   => new
sfValidatorPropelChoice(array('model' => 'Cities', 'column' => 'id',
'required' => false)),
  'country_code'  => new
sfValidatorPropelChoice(array('model' => 'Countries', 'column' => 'id',
'required' => false)),
  'province'  => new
sfValidatorString(array('max_length' => 100, 'required' => false)),
  'zip'   => new
sfValidatorString(array('max_length' => 20, 'required' => false)),
  'phone' => new
sfValidatorString(array('max_length' => 20, 'required' => false)),
  'mobile'=> new
sfValidatorString(array('max_length' => 20, 'required' => false)),
  'email' => new
sfValidatorString(array('max_length' => 50, 'required' => false)),
  'qualifications'=> new
sfValidatorString(array('max_length' => 200, 'required' => false)),
  'status'=> new sfValidatorInteger(array('required'
=> false)),
  'applied_timestamp' => new
sfValidatorDateTime(array('required' => false)),
  'emp_number'=> new sfValidatorInteger(array('required'
=> false

[symfony-users] Re: illegal offset type

2009-08-31 Thread asim nizam
Thanks i have solved problem!!

On Mon, Aug 31, 2009 at 3:47 PM, krishan  wrote:

>
> I guess, you will require to create a __toString or __string function
> which will return the name instead of id's for choice menus.
> Additionally check if you tables have some data to show in choice
> menus. the table which is available as choice data to other table
> should have some data or ___string function defined in projectRoot/lib/
> model/***Peer.php  class file.
>
> I believe this will sort-out your problem.
>
> krishan
>
> On Aug 26, 3:57 pm, José Nahuel Cuesta Luengo
>  wrote:
> > Just guessing: are you dealing with complex primary keys on any propel-
> > choice-related table? I think you might be getting an array as an
> > index, when a simple string or number is actually expected.
> >
> > --
> > José Nahuel Cuesta Luengo
> >
> > El 26/08/2009, a las 06:15, asim nizam  escribió:
> >
> > > here is my form code
> >
> > > class HrTblJobApplicationForm extends BaseHrTblJobApplicationForm
> > > {
> > >   public function configure()
> > >   {
> > >  $this->setWidgets(array(
> > >   'application_id'=> new sfWidgetFormInputHidden(),
> > >   'vacancy_id'=> new sfWidgetFormPropelChoice
> > > (array('model' => 'HrTblJobVacancy', 'add_empty' => false)),
> > >   'lastname'  => new sfWidgetFormInput(),
> > >   'firstname' => new sfWidgetFormInput(),
> > >   'middlename'=> new sfWidgetFormInput(),
> > >   'street1'   => new sfWidgetFormInput(),
> > >   'street2'   => new sfWidgetFormInput(),
> > >   'city_id'   => new sfWidgetFormPropelChoice
> > > (array('model' => 'Cities', 'add_empty' => true)),
> > >   'country_code'  => new sfWidgetFormPropelChoice
> > > (array('model' => 'Countries', 'add_empty' => true)),
> > >   'province'  => new sfWidgetFormInput(),
> > >   'zip'   => new sfWidgetFormInput(),
> > >   'phone' => new sfWidgetFormInput(),
> > >   'mobile'=> new sfWidgetFormInput(),
> > >   'email' => new sfWidgetFormInput(),
> > >   'qualifications'=> new sfWidgetFormInput(),
> > >   'status'=> new sfWidgetFormInput(),
> > >   'applied_timestamp' => new sfWidgetFormDateTime(),
> > >   'emp_number'=> new sfWidgetFormInput(),
> > >   'inter_panel_code'  => new sfWidgetFormPropelChoice
> > > (array('model' => 'HrTblPanels', 'add_empty' => true)),
> > >   'created_by'=> new sfWidgetFormPropelChoice
> > > (array('model' => 'Users', 'add_empty' => true)),
> > >   'created_when'  => new sfWidgetFormInputHidden
> > > (array('default' => date('Y/m/d H:i', time(,
> > >   'modified_by'   => new sfWidgetFormPropelChoice
> > > (array('model' => 'Users', 'add_empty' => true)),
> > >   'modified_when' => new sfWidgetFormInputHidden
> > > (array('default' => date('Y/m/d H:i', time(,
> > >   'hr_tbl_app_education_list' => new sfWidgetFormPropelChoiceMany
> > > (array('model' => 'HrTblEducation')),
> > > ));
> > > $this->widgetSchema->setLabels(array(
> > > 'vacancy_id' => 'vacancy_id',
> > > 'lastname'   => 'Last Name',
> > > 'firstname'  => 'First Name',
> > > 'middlename' => 'Middle Name',
> > > 'street1'=> 'Street1',
> > > 'street2'=> 'Street2',
> > >  'city_id'   => '

[symfony-users] Re: illegal offset type

2009-08-31 Thread asim nizam
yes sir it was to __toStrig method and you discusssed below clearly thanks.


On Mon, Aug 31, 2009 at 5:07 PM, krishan  wrote:

>
> how did you solve, share... so that everybody can get to know
>
> On Aug 31, 2:55 pm, asim nizam  wrote:
> > Thanks i have solved problem!!
> >
> > On Mon, Aug 31, 2009 at 3:47 PM, krishan  wrote:
> >
> > > I guess, you will require to create a __toString or __string function
> > > which will return the name instead of id's for choice menus.
> > > Additionally check if you tables have some data to show in choice
> > > menus. the table which is available as choice data to other table
> > > should have some data or ___string function defined in projectRoot/lib/
> > > model/***Peer.php  class file.
> >
> > > I believe this will sort-out your problem.
> >
> > > krishan
> >
> > > On Aug 26, 3:57 pm, José Nahuel Cuesta Luengo
> > >  wrote:
> > > > Just guessing: are you dealing with complex primary keys on any
> propel-
> > > > choice-related table? I think you might be getting an array as an
> > > > index, when a simple string or number is actually expected.
> >
> > > > --
> > > > José Nahuel Cuesta Luengo
> >
> > > > El 26/08/2009, a las 06:15, asim nizam  escribió:
> >
> > > > > here is my form code
> >
> > > > > class HrTblJobApplicationForm extends BaseHrTblJobApplicationForm
> > > > > {
> > > > >   public function configure()
> > > > >   {
> > > > >  $this->setWidgets(array(
> > > > >   'application_id'=> new sfWidgetFormInputHidden(),
> > > > >   'vacancy_id'=> new sfWidgetFormPropelChoice
> > > > > (array('model' => 'HrTblJobVacancy', 'add_empty' => false)),
> > > > >   'lastname'  => new sfWidgetFormInput(),
> > > > >   'firstname' => new sfWidgetFormInput(),
> > > > >   'middlename'=> new sfWidgetFormInput(),
> > > > >   'street1'   => new sfWidgetFormInput(),
> > > > >   'street2'   => new sfWidgetFormInput(),
> > > > >   'city_id'   => new sfWidgetFormPropelChoice
> > > > > (array('model' => 'Cities', 'add_empty' => true)),
> > > > >   'country_code'  => new sfWidgetFormPropelChoice
> > > > > (array('model' => 'Countries', 'add_empty' => true)),
> > > > >   'province'  => new sfWidgetFormInput(),
> > > > >   'zip'   => new sfWidgetFormInput(),
> > > > >   'phone' => new sfWidgetFormInput(),
> > > > >   'mobile'=> new sfWidgetFormInput(),
> > > > >   'email' => new sfWidgetFormInput(),
> > > > >   'qualifications'=> new sfWidgetFormInput(),
> > > > >   'status'=> new sfWidgetFormInput(),
> > > > >   'applied_timestamp' => new sfWidgetFormDateTime(),
> > > > >   'emp_number'=> new sfWidgetFormInput(),
> > > > >   'inter_panel_code'  => new sfWidgetFormPropelChoice
> > > > > (array('model' => 'HrTblPanels', 'add_empty' => true)),
> > > > >   'created_by'=> new sfWidgetFormPropelChoice
> > > > > (array('model' => 'Users', 'add_empty' => true)),
> > > > >   'created_when'  => new sfWidgetFormInputHidden
> > > > > (array('default' => date('Y/m/d H:i', time(,
> > > > >   'modified_by'   => new sfWidgetFormPropelChoice
> > > > > (array('model' => 'Users', 'add_empty' => true)),
> > > > >   'modified_when' => new sfWidgetFormInputHidden
> > > > > (array('default' => date('Y/m/d H:i',

[symfony-users] Re: sfphpExcelPlugin installation problem

2009-09-04 Thread asim nizam
i did same i downloaded it manually and copied in plugin folder and also
enabled in sfconfigurationfile but when i run the example file it says
phpexcel class doesnot exist

>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfphpExcelPlugin installation problem

2009-09-06 Thread asim nizam
Yes i installed sfexcelplugin successfully using new version for symfony1.2

thanks alll

On Sun, Sep 6, 2009 at 7:00 PM, DEEPAK BHATIA wrote:

>
> Did you do
>
> php symfony cc
>
> On Sat, Sep 5, 2009 at 9:51 AM, asim nizam wrote:
> > i did same i downloaded it manually and copied in plugin folder and also
> > enabled in sfconfigurationfile but when i run the example file it says
> > phpexcel class doesnot exist
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
i have installed and donr setting in view.yml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
Any body who used this tiny mce


On Thu, Oct 29, 2009 at 4:39 PM, asim nizam  wrote:

> i have installed and donr setting in view.yml
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
thanks i have used tiny mce using simple way not symfony way.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
i have not get help on google group just wastage of time

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-30 Thread asim nizam
ok thanks for reply

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---