Re: [symfony-users] Day 1 - jobeet problem
On Tue, Jun 22, 2010 at 11:30 PM, Christian wrote: > Hi! > > my name is christian and i'm new with symfony framework. > > I found this step by step tutorial: > http://www.symfony-project.org/jobeet/1_2/Propel/it/01 > > i have troubles during the apache configuration... > > this is my httpd.conf > > _ > # Be sure to only have this line once in your > #configuration > NameVirtualHost 127.0.0.1:8080 > > # This is the configuration for your project > Listen 127.0.0.1:8080 > > > DocumentRoot "/home/chris/public_html/jobeet/web" > DirectoryIndex index.php > > AllowOverride All > Allow from All > > > Alias /sf /home/chris/public_html/jobeet/web/lib/vendor/symfony/data/ > web/sf > data/web/sf"> > AllowOverride All > Allow from All > > > ___ > > where public_html is my apcahe DocumentRoot in whitch i have a lot of > directory with different site, but when i put this link in my browser: > http://localhost:8080/index.php (as the tutorial say) i can't see > anything...only a blank page... > > can you help me please? > > thanks > Chris > Try this: http://localhost:8080/web/index.php -- -husain- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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] [Propel] How to populate data from an array?
Is there any example how to insert data from an array? Say I have an array: Array ( [0] => Array ( [kode] => FMIPA [name] => Fakultas Matematika dan Ilmu Pengetahuan Alam ) [1] => Array ( [kode] => FSRD [name] => Fakultas Teknologi Industri ) ... ... ... [1000] => Array ( [kode] => FSRD [name] => Fakultas Seni Rupa dan Desain ) ) And my schema: fakultas: _attributes: { phpName: Fakultas } id: ~ kode: { type: VARCHAR, size: '50', required: true } name: { type: VARCHAR, size: '50', required: false } -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Problem with a validator !
On Tue, Jun 3, 2008 at 3:18 PM, Sylver <[EMAIL PROTECTED]> wrote: > > Always a problem... > > So : > my validate/send.yml > methods: > post: [name, mail, body] > > names: > name: >required: true >required_msg: 'Votre nom est requis.' > > mail: >required: true >required_msg: 'Une adresse email est requise.' >validators:emailValidator > > body: >required: true >required_msg: 'Le corps du message est vide.' > > emailValidator: >class: sfEmailValidator >param: > email_error: 'L'adresse email n'est pas valide.' I'm not sure, but try to avoid using quote sign (') in message (required_msg and email_error) value. -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Threaded Lists, Multi level menu, something like that
On Sat, Apr 19, 2008 at 6:19 AM, CX <[EMAIL PROTECTED]> wrote: > > Hello, my name is Pablo and i new to Symfony, not to PHP, but yes to > symfony, i'm starting with it and i want to ask you people a question. > > I user CakePHP framework and in that framework you can set a table > with a field called parent_id and the framework has a method on his > core classes that return you an array with a children key with the > data related. > > something like this: > http://bakery.cakephp.org/articles/view/threaded-lists > > how can i achieve that with Symfony? > > Thanks in advance May be this is what you need: http://trac.symfony-project.com/wiki/sfPropelActAsNestedSetBehaviorPlugin -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Need help connecting SF with MySQL
On Sat, Mar 8, 2008 at 7:34 AM, Eric <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm very new to Symfony and I really want to learn it. I've done my > best to follow along with the tutorials on Symfony's homepage as well > as the SitePoint tutorial, but I keep hitting walls. > > Basically, I have 2 questions: > > 1. What are the steps (specifically) for connecting symfony with a > MySQL DB that already has tables/data? > I've edited my propel.ini files and added the connection parameters > but I can't seem to have SF build the necessary controller/model/view > files based on my database tables. edit database.yml > 2. After I accomplish step 1, then what is the process to update my > controller/model/view files if I make a change to the database schema? to build (or update) the model using propel: php symfony propel-build-model > I know SF recommends writing the YAML files to build the database but > I am more comfortable using phpMyAdmin and I'm also having troubles > connecting the the DB via the command line because my account doesn't > have the proper permissions. > > Thanks for your help in advance. I really, really, really want to get > over this hurdle that has stalled me for weeks... > > Eric -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWebBrowserPlugin via proxy
On Fri, Feb 22, 2008 at 6:31 PM, markus.staab <[EMAIL PROTECTED]> wrote: > > see CURLOPT_PROXY* Options Thank's Markus. -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfWebBrowserPlugin via proxy
To access Internet from my machine, we have to use a proxy. How to use sfWebBrowserPlugin using proxy? I have a proxy server name or IP, a username and a password. But I don't know how to use it. -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] primary key problem: could we use varchar?
How to use PK with type other than integer auto_increment? I got a problem when use varchar. Here is my schema.yml propel: fakultas: kode: type: VARCHAR size: 5 required: true primaryKey: true default: nama: type: VARCHAR size: 30 required: true default: After init or generate ( I try it using propel-init-admin or propel-generate-crud). I couldn't save/add a record. Is there any reference about Primary Key using varchar (for Propel or Doctrine) ? -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Fatal error: Class DBMySQL
I got this error when try to open my application di dev environtment (http://localhost/myapp_dev.php/) Fatal error: Class DBMySQL contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (DBAdapter::applyLimit, DBAdapter::random) in F:\www\sia\lib\vendor\propel\adapter\DBMySQL.php on line 133 I'm using symfony 1.0 from svn and sfPropel13Plugin. This is my first time using sfPropel13Plugin. This is just testing, so what I've done are making a model (propel-13-build-schema, propel-13-build-model), then init-project, init-app, And I do propel-13-init-admin. I edit file web\index.php (change line 5 to define('SF_ENVIRONMENT', 'dev');). (I think it has no effect because I open http://localhost/myapp_dev.php/) There's no more editing. I've try to clear cache but I still got a same result. And now I have no idea what should I do. -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Model: Foreign keys to a table
On 6/15/07, scube <[EMAIL PROTECTED]> wrote: > > use this syntax in your schema.yml > > propel: > user: > id: > name:varchar(255) > document > id: > title:varchar(255) > owner_id: { type: integer, foreignTable: user, > foreignReference: id } > creator_id: { type: integer, foreignTable: user, > foreignReference: id } > modifier_id: { type: integer, foreignTable: user, > foreignReference: id } > > good luck > scube Thanks scube. I am reading the column detail part now. I find it. -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Model: Foreign keys to a table
Hi, I'm a beginner to symfony. I don't know where I could get the reference to my problem. How to make a (propel?) model with more than a foreign key to a table. Let say I have 2 tables, user and document. propel: user: id: name:varchar(255) document id: title:varchar(255) owner_id: creator_id: modifier_id: owner_id, creator_id, modifier_id are foreign keys to id of user table. According to symfony book I should use user_id, cmiiw. But there is only a foreign key. I need another foreign keys, how to make the model? TIA, -- -husain- --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---