On 08/12/2010 01:25 AM, Fabien Potencier wrote:
On 8/12/10 12:24 AM, Brandon Turner wrote:
Is there anyway to load the default configuration for a bundle *without*
a line such as:
#config.yml:
mybundle.config: ~
Yes, it is possible but I don't recommend it. I think it's better to
be more e
On 8/12/10 12:24 AM, Brandon Turner wrote:
Is there anyway to load the default configuration for a bundle *without*
a line such as:
#config.yml:
mybundle.config: ~
in a configuration file? Is it correct to assume that the following
procedure must *always* be done to install a bundle that utiliz
You can certainly run these tasks from within a task, as described
here:
http://www.symfony-project.org/more-with-symfony/1_4/en/13-Leveraging-the-Power-of-the-Command-Line
So, maybe you can create instance of these tasks and run them from
elsewhere in your code.
I think the issue would be how yo
Sounds like you havent generated your Proxy objects based on the Entities.
t
On Thu, Aug 12, 2010 at 08:55, Michael wrote:
> Been trying to create a simple findAll() request:
>
> $users = $this->getEntityManager()
> ->createQuery('Bundle\HelloBundle\Entity\User')
>
That's really good to hear Fabien. The thought had occurred to me of
only having one application, but my mind (and I'm assuming everyone
elses minds) were still lingering in the symfony 1.4 mindset of
multiple apps within projects. This clears a lot up and probably saved
us a lot of pain down the r
saludos consultando por la modificacion de las rutas del proyecto
modifico mi routing.yml
# default rules
homepage:
url: /
param: { module: job, action: index }
# generic rules
# please, remove them by adding more specific rules
default_index:
url: /:module
param: { action: index }
Been trying to create a simple findAll() request:
$users = $this->getEntityManager()
->createQuery('Bundle\HelloBundle\Entity\User')
->findAll();
but keep getting the following error:
Fatal error: Class 'Proxies\BundleHelloBundleEntityProfileProxy' n
saludos consultando por la modificacion de las rutas del proyecto
modifico mi routing.yml
# default rules
homepage:
url: /
param: { module: job, action: index }
# generic rules
# please, remove them by adding more specific rules
default_index:
url: /:module
param: { action: index }
Trying to run this script:
$products = $this->getEntityManager()
->getRepository('Bundle\HelloBundle\Entity
\Product')
->findAll();
But keep getting this error:
Fatal error: Class 'Proxies\BundleHelloBundleEntityCategoryProxy' not
fou
Thanks, I would definitely do that if my actual problem was as simple as my
example, the thing is that I actually have 4 tables each of them having at
least 4 fields, and that I want to browse on those fields.
Like here, I would like to actually see the 'city' field displayed, and be
able to use i
Hi!
Quick question: Is there a way to install and enable a plugin from PHP?
Thanks!
--
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
ApiFrontend and ApiBackend ?
No, I'm kidding
You could have an administration controller in your application, who
requires some credentials to be accessed, and renders different
templates from the frontend controllers.
You could prefix them with your applicative layer : adminController,
ap
Must be others methods to override in bundle class.
The container building is a part of kernel building, but there are other
ways to behave on kernel execution.
Read the bundle sourcecode and find correct method (boot ?), and tell us
Le 12/08/10 00:24, Brandon Turner a écrit :
Is there anywa
Override generated templates, or go back to columns.
Take a look at documentation for overriding generated templates (version
1.4 of documentation if you are using it).
Le 11/08/10 16:24, Wildancer a écrit :
Good afternoon,
I'm a n00b, excuse my question if it's too simple, but I can't find
Alexandre... Alexandre... Not Alexander
Le 11/08/10 13:39, Gustavo Adrian a écrit :
The setting of the notice takes place on the action, not on the form.
And it's generated in every module you create with the admin
generator. So, as Alexander said, you'd need to modify the skeleton of
the gen
There are multiple answers to this problem :
* If it's business question, define this behavior in your model
* If it's action processing, define it in your form (overriding the
doSave() method)
* And if there is no other solution, take a look at generated code.
You have 2 clas
Is there anyway to load the default configuration for a bundle *without*
a line such as:
#config.yml:
mybundle.config: ~
in a configuration file? Is it correct to assume that the following
procedure must *always* be done to install a bundle that utilizes
semantic configuration:
1) Install
On 8/11/10 9:08 PM, Jay wrote:
Each app has different auth requirements and possibly different
configurations. Isn't that why in most of the tutorials you speak of a
"Frontend" app, which kind of implies that there would also be a
"Backend" app? And then if we were to build an api that api might
Hi guys,
I am stucked with a silly problem while I am trying to add a input
file field in Symfony2 Form. to make it more clear I would like to add
an input file field in Symfony2 Form like this:
$form->add(new \Symfony\Components\Form\PasswordField('password'));
$form->add( how can I add an inpu
You can use Doctrine::getTable('RankDomain')-
>findOne or FindOneByXXX
On 11 srp, 12:10, RusAlex wrote:
> First variant returns an object and you can use method.
>
> But second variant returns and array of objects and you must select
> object (ex.$rank_domain[0]) for using methods
>
> On Aug 11,
With option b) we would probably put all the article bundles into
their own directory to be a bit more organized:
Bundle\Article\FrontendArticleBundle
Bundle\Article\BackendArticleBundle
Bundle\Article\ApiArticleBundle
Bundle\Article\CommonArticleBundle
with option b you end up with up to 4 routi
Each app has different auth requirements and possibly different
configurations. Isn't that why in most of the tutorials you speak of a
"Frontend" app, which kind of implies that there would also be a
"Backend" app? And then if we were to build an api that api might have
special auth to deal with va
I don't think that you need embed form filter.
Just add a widget for selecting a school into the person formFilter
Something like:
public function configure() {
$this->widgetSchema['school_id'] = new
sfWidgetFormDoctrineChoice(array(
'model' => $this->getRelatedModelName('School'),
On 8/11/10 8:30 PM, Jay wrote:
In trying to structure our website using three apps and various
bundles, we’ve run into a major architectural fork in the road which
nobody seems to have the right answer for.
I’ll try and paint the picture as clearly and quickly as possible:
Assume 3 applications:
I think it can be done by component.
Look into the sfGuard template and action .. you need to create the
form class (action) then pass it into the component template and show
it.
On 8 srp, 00:31, Psychonetics wrote:
> I'm trying to embed my sfDoctrineGuardPlugin login form on an existing
> page
In trying to structure our website using three apps and various
bundles, we’ve run into a major architectural fork in the road which
nobody seems to have the right answer for.
I’ll try and paint the picture as clearly and quickly as possible:
Assume 3 applications: Frontend, Backend, and Api
Assum
Found a tutorial error:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10
near
---
First, change the "Post a Job" link in the layout to be able to check
changes directly in your browser:
---
You will find a code:
---
Post a Job
---
url_for must have argument job/new for being worked
--
I
This is fixed in the 1.2 branch of the plugin--see this post:
http://groups.google.com/group/symfony-users/browse_thread/thread/8ec3e01e1ef34cac/cc0605f424732fc7?#cc0605f424732fc7
On Aug 11, 12:15 am, Javier Garcia wrote:
> Hi,
>
> sfDoctrineGuardPlugin schema uses the field 'email_address' to
Why don't you directly post your data to the search action? You can
validate and do the search there.
On Wed, Aug 11, 2010 at 18:06, Stef wrote:
> Hello,
> I have a search form which inherits from sfForm. When the form is "post"
> submitted it is validated then redirected to the action executeSea
i find the root of the problem is Windows, i install a old ubuntu 9.04 and
for now dont have trouble, i think for now netbeans is unestable when the
project grows but if you re instasll the problem vanished
2010/8/11 Stéphane
> When I code only PHP, i use eclipse.
> When I have to mix php, js an
I guess so :-)
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Aug 11, 2010 at 6:17 PM, Julian wrote:
> i find the root of the problem is Windows, i install a old ubuntu 9.04 and
> for now dont have
I think I figured out where to setup/create environment variables. I
am using XML for configuration, so YAML users may need to convert the
syntax. Environment variables can be created by using the
tag within the tag. Each has a 'key'
attribute, which is what you use to refer to the value stored
Latest and last update from me:
It seems to be some conflict between the order objects are loaded and
the "black magic" of the exporter.
My solution has been to do the following in the schema.yml:
Article:
tableName: articles
columns:
name: { type: string(255), notnull: true }
relation
Hello,
I have a search form which inherits from sfForm. When the form is "post"
submitted it is validated then redirected to the action executeSearch()
The problem I have is that I don't have access to data in the
executeSearch() method.
I understand that I can use http_query_build when doing th
When I code only PHP, i use eclipse.
When I have to mix php, js and html, I use netbeans as eclipse is buggy when
it is about to mix code languages (even helios) :/
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale
I'm using NetBeans because it has friendly use of shortcut, already,
and if i want use IDE for other language it is there.
In Eclipse it's always problem with compatibility of plugins. NB is
supported by the Oracle.
--
If you want to report a vulnerability issue on symfony, please send it to
sec
Hi,
I extract many things in the example code, for example (I guess the
main...) is that I'm working with an array (or some kind of list...)
and I need a dictionary (key => value). I'm making the changes and
looks good!
Thanks a lot!
On 11 ago, 01:00, Alexandre Salomé wrote:
> Your default va
More information:
When I run the following:
export->exportSql());
var_export(Doctrine_Core::generateSqlFromModels('lib/model/
doctrine'));
(this should run on any symfony/doctrine setup provided you point to
the right doctrine path...)
I get two outputs:
exportSql():
array (
0 => 'CREATE
Good afternoon,
I'm a n00b, excuse my question if it's too simple, but I can't find
nothing in the official distribution.
How I can make a virtual column (
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_sub_virtual_columns
)
with the tabular layout?
Tanks,
Claudio
--
If you
As an added bonus:
I've also confirmed this continues to happen both on php 5.3.1 and php
5.2.9, so it's not a php abnormality, I would assume.
--
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
Le 01/08/2010 14:27, Tarjei a écrit :
Hi, as with my other answer, I've been on vacation so apologies for a
late reply.
On 12 Jul, 10:47, Fabien Potencier wrote:
On 7/11/10 1:17 PM, Tarjei wrote:
Hi, here are my initial questions and comments regarding Symfony2.
Wow, that'
Hi everybody!
I'm hoping someone can help me out here, as I've found myself in quite
a pickle.
Here's the issue:
schema.yml:
Article:
tableName: articles
columns:
name: { type: string(255), notnull: true }
relations:
Areas:
refClass: AreaArticle
class: Area
loc
I'm trying to figure out how to configure a symfony 2 application to
create an sqlite database, but I cannot seem to figure out how to
configure the path. On the Doctrine Configuration webpage (http://
docs.symfony-reloaded.org/guides/doctrine/configuration.html?
highlight=kernel) I see what looks
Thank you a lot.. and if i want to override the behaviour of one
action in the backend?
(I want to save as user attributes a category (it is a module) id and
name when it is saved in the backend, to take trace of what the user
id doing in the menu.
I think the best way is to add this attributes in
Yep I've done it that way, thanks Gustavo!
Also, I've never looked at editing the skeleton before; I'll check
that out to learn some new stuff too
thanks both, guys
cheers
On Aug 11, 9:39 pm, Gustavo Adrian
wrote:
> The setting of the notice takes place on the action, not on the form. And
> it
The setting of the notice takes place on the action, not on the form. And
it's generated in every module you create with the admin generator. So, as
Alexander said, you'd need to modify the skeleton of the generated actions
to add your functionality.
On the other hand, an easier way would be to ju
sorry, I sent the message before finishing write it
so, you have my "php code"
And now my html code (just in case)
"
method="post" enctype="multipart/form-data">
" />
Can someone help me please ?
Thanks !
bye !
(my english might be wrong. Sorry...)
--
If you wa
Hi !!
i'm trying to use an upload file action.
I trie my code without Symfony2, and it works fine.
but, when i'm trying to do this winthin Sf2, with the same code, my
move_uploaded_file() function doesn't works.
I have this error "Warning: move_uploaded_file(/egoodealer/web/uploads/
avatar.PNG) [f
Hi !!
i'm trying to use an upload file action.
I trie my code without Symfony2, and it works fine.
but, when i'm trying to do this winthin Sf2, with the same code, my
move_uploaded_file() function doesn't works.
I have this error "Warning: move_uploaded_file(/egoodealer/web/uploads/
avatar.PNG) [f
First variant returns an object and you can use method.
But second variant returns and array of objects and you must select
object (ex.$rank_domain[0]) for using methods
On Aug 11, 1:31 pm, catchamonkey wrote:
> Hi Rus,
>
> Would you mind posting your solution so it could benefit others in the
>
Hi Rus,
Would you mind posting your solution so it could benefit others in the
future?
Many thanks,
Chris
On Aug 11, 10:29 am, RusAlex wrote:
> SOLVED
>
> On Aug 11, 12:46 pm, RusAlex wrote:
>
>
>
> > 1. $this->rank_domain = Doctrine::getTable('RankDomain')-
>
> > >find(array($request->getP
SOLVED
On Aug 11, 12:46 pm, RusAlex wrote:
> 1. $this->rank_domain = Doctrine::getTable('RankDomain')-
>
> >find(array($request->getParameter('id')));
>
> 2. $q = Doctrine_Query::create()
> ->select('d.*')
> ->where('d.id = ?', $request->getParameter('id'))
> ->from('RankD
SOLVED
On Aug 11, 8:58 am, RusAlex wrote:
> I've edited indexSuccess.php in Jobeet Tutorial project and now
> nothing work. How can i set indexSuccess.php to a base version ?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You recei
1.$this->rank_domain = Doctrine::getTable('RankDomain')-
>find(array($request->getParameter('id')));
2.$q = Doctrine_Query::create()
->select('d.*')
->where('d.id = ?', $request->getParameter('id'))
->from('RankDomain d');
$this->rank_domain = $q->execute();
A fi
I've edited indexSuccess.php in Jobeet Tutorial project and now
nothing work. How can i set indexSuccess.php to a base version ?
--
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 t
thanks, yes i need to see a log folder inside symfony project.
On Aug 11, 2:53 am, Gustavo Adrian
wrote:
> What OS are you developing on? Check permissions on the cache and log dirs.
>
> On Tue, Aug 10, 2010 at 5:11 PM, Alexandre Salomé <
>
>
>
> alexandre.sal...@gmail.com> wrote:
> > The debug b
Hi,
sfDoctrineGuardPlugin schema uses the field 'email_address' to login
users. sfDoctrineApplyPlugin uses the field 'email' to register users.
How do you treat that? Do you sinchronize the values of both fields?
Javi
--
If you want to report a vulnerability issue on symfony, please send i
57 matches
Mail list logo