Huh
If it's only a minor difference in the templates, you probably don't really
need 2 templates and could just pass a variable to the template so that from
there you know how you should display it...
On Thu, Nov 4, 2010 at 4:38 AM, Alex Pilon wrote:
> I think both ways are fine..
>
>
> On
This whole thing is messed up for some reason; maybe I should just
start over :/ :(
On Nov 3, 7:29 pm, xpanshun wrote:
> This may be tied to the problem, but its another problem I have
> nonetheless...
>
> When clicking edit for my first few tables, they are being routed
> through the primary key
This may be tied to the problem, but its another problem I have
nonetheless...
When clicking edit for my first few tables, they are being routed
through the primary key field like: admin/1/edit
But my last several tables are being routed through another field
like: product/B0006/edit... Where B00
@ Alex,
I tried it--didn't work :(
Any other ideas?
On Nov 3, 6:46 pm, Alex Pilon wrote:
> Check onDelete: cascade on your relations.
>
> On Nov 3, 2010 6:03 PM, "xpanshun" wrote:
>
> Hi all,
>
> I have my backend set up and was testing out the functions (i.e. edit,
> delete, new, etc.). All w
the 2nd questión its with addCredential() when your user is authenticated
example:
$user = $this->getUser();
if($r->getNivelId() == 1){
$user->addCredential('basic');
}
On Wed, Nov 3, 2010 at 9:52 AM, Javier Garcia wr
Check onDelete: cascade on your relations.
On Nov 3, 2010 6:03 PM, "xpanshun" wrote:
Hi all,
I have my backend set up and was testing out the functions (i.e. edit,
delete, new, etc.). All was well until I tried to modify a table that
is connected to a couple other tables. I was not even attempt
Hi all,
I have my backend set up and was testing out the functions (i.e. edit,
delete, new, etc.). All was well until I tried to modify a table that
is connected to a couple other tables. I was not even attempting to
change the value of a fk field--I was editing a different field that
was rather f
I think both ways are fine..
On Wed, Nov 3, 2010 at 16:33, Martin Ibarra Cervantes <
ibarra.cervan...@gmail.com> wrote:
> you can use partitials for the view
>
> and in the acction pass the myvar
>
>
> include_partitial('name', array('myvar'=>$myvar));
>
>
> On Wed, Nov 3, 2010 at 1:29 PM, Parija
There's a setTemplate method on controller. Find the best between
setTemplate and include_partial for your case
Le 3 nov. 2010 21:46, "Gareth McCumskey" a écrit :
Erm .. why not just use the same action instead of having two actions that
are exactly the same? If you are not sure what I mean plea
Erm .. why not just use the same action instead of having two actions that
are exactly the same? If you are not sure what I mean please give me an
example of what you are doing and I can explain better, but you don't need
to create seperate actions if they are exactly the same
On Wed, Nov 3, 2010
you can use partitials for the view
and in the acction pass the myvar
include_partitial('name', array('myvar'=>$myvar));
On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia wrote:
> Hey guys,
> I have 2 very identical templates which have only a minor difference to
> them. Their action is exactly t
Hey guys,
I have 2 very identical templates which have only a minor difference to
them. Their action is exactly the same. So instead of retyping code or
wasting precious space (LOL), here is what my genius conjours:
private function privateAction()
{
// do some amazing coding
}
public function
Well Gareth is right though, you can use symfony to generate your schema
based on the data model you have, and then configure the doctrine mapping
stuff to conform the schema to whatever standard or new schema you want.
I looked at cakePHP a while ago as well. Its lack of command line tools and
su
Thanks guys,
I certainly wasn't asking you to create my data model ;) my question
was really a conceptual/strategical one.
ATM I ran into pretty fundamental issues with CakePHP because it's a
lot more strict/limited about field names (I mean you can use whatever
names you want but you cannot easi
You can use symfony to export your current schema to a schem.yml file.
However, before you build models from that schema file, you can add php name
attributes to each table and column. This way the tables and columns with
horrid names can all be referred to be more understandable and consitant
name
@Enojust to point out, your solution was not what I wanted, I got it
through Alex, and Gareth chipped in with some information as well. The
problem is symfony, you clearly have not read through carefully about what I
faced.
Please read it again.
As Alex pointed earlier, the issue is over.
On
Good point regarding associations.
On Wed, Nov 3, 2010 at 13:37, Gareth McCumskey wrote:
> From my experience it is always best to have the Primary Key field be an
> auto-incrementing field. If you have additional fiekds wich might be some
> kind of serial number or something thats fine, that ca
>From my experience it is always best to have the Primary Key field be an
auto-incrementing field. If you have additional fiekds wich might be some
kind of serial number or something thats fine, that can be a column with a
unique index, but a lot of searches tend to happen on Primary Key's and
inte
No problem.
On Wed, Nov 3, 2010 at 13:28, xpanshun wrote:
> I'll probably go ahead and do that Alex, thanks for the response :)
>
> On Nov 3, 1:20 pm, Alex Pilon wrote:
> > I'm not sure.. I don't have a lot of experience customizing generators..
> > however I would suggest that simply adding a
I'll probably go ahead and do that Alex, thanks for the response :)
On Nov 3, 1:20 pm, Alex Pilon wrote:
> I'm not sure.. I don't have a lot of experience customizing generators..
> however I would suggest that simply adding a column to hold the user entered
> value would be easier than trying to
You can configure Doctrine models with a high degree of flexibility.. if you
check out the documentation for Doctrine (specifically
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#columns:column-aliases)
you can see that you can pretty well map columns to field names
I'm not sure.. I don't have a lot of experience customizing generators..
however I would suggest that simply adding a column to hold the user entered
value would be easier than trying to manipulate symfony to use a different
kind of primary key. Primary keys are database constructs meant to uniquel
@ Alex,
I guess that is possible, but I was hoping for an easier way like
making some type of change in the generator.yml or something of that
nature...
On Nov 3, 1:04 pm, Alex Pilon wrote:
> I've only ever used the default.. but would it be a sufficient solution to
> add an extra column to your
I've only ever used the default.. but would it be a sufficient solution to
add an extra column to your model that holds this admin typed in key? You
can use indices to mark them as unique..
On Wed, Nov 3, 2010 at 12:56, xpanshun wrote:
> Also, is there a way to make it so that primary key fields
Also, is there a way to make it so that primary key fields are even
viewable on the edit front? It seems they are hidden by default...
On Nov 3, 12:31 pm, xpanshun wrote:
> Hi all,
>
> I've seen this question asked before a lot but from years ago--so
> there wasn't any working response. I am hopi
Also, is there a way to make it so that primary key fields are even
viewable? It seems they are hidden by default...
On Nov 3, 12:31 pm, xpanshun wrote:
> Hi all,
>
> I've seen this question asked before a lot but from years ago--so
> there wasn't any working response. I am hoping now that its 20
Hi,
we want to manage the credentials of the actions of the backend from
the backend.
How to get the list of the actions of an app? After that we could show
the credential of each one through getCredential().
2nd question: i found the function to get the credential of an action
(getCredential())
Hi,
I have to integrate a very bad legacy database and I'd have to specify
things in the model extensively. There are fields (like contact_id)
that are named inconsistently all through the database for example
(like contact, contactid, Contact, Kontakt, KontaktID etc.) also there
are fields with r
Hi all,
I've seen this question asked before a lot but from years ago--so
there wasn't any working response. I am hoping now that its 2010, that
there is a solution...
I am using Symfony 1.4. I am currently working with the admin
generator and I have some primary key fields that are NOT numeric
M. Pozzato, No worries, just wanted to give you a heads up and to help you
improve your English. Glad my explanation helped.
Cheers
On Wed, Nov 3, 2010 at 10:49, Marcio Pozzato wrote:
> Alex,
> Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
> About Models your concept
Alex,
Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
About Models your concepts are quite for me.
M. Pozzato
2010/11/3 Alex Pilon
> Hey,
>
> First off, the appropriate spelling is "hi guys" not "hi gays". In some
> circles you'll be sodomized for that sort of talk (any
Hey,
First off, the appropriate spelling is "hi guys" not "hi gays". In some
circles you'll be sodomized for that sort of talk (anyone??).
Secondly, the term models is used to refer to the code representation of
database tables. So it means that there is a php class that maps to a
database tables
Hi gays,
Please, in Day 3-Jobeet Tutorial, what exactly means Models?
After creating the Jobeet Database, they said at the ORM Section "*create
the database tables"*, but, next, they said "build your *models*":
"The ORM
Thanks to the database description from the schema.yml file, we can use some
Eno, I think you need to review the thread. The problem was that Parijat was
calling
textarea_tag('hint-box','','size=70x4',array('onclick'=>'javascript:alert("yo")'));
So as you can see there are four arguments here. Parijat stated that the
onclick attribute was not being rendered. Why not? Beca
On Tue, 2 Nov 2010, Parijat Kalia wrote:
> Oh guys, please chill out, none of that was for either of you, it was for
> Mr.Eno, because he typically comes up with "smart ass " sentences like those
> way too often.
I haven't posted here for months.
I agree with the smart part - I had the correct a
His one concern is having javascript included in the middle of HTML isntead
of all at the end of the html. This tactic would still insert the javascript
in the middle of everything.
On Wed, Nov 3, 2010 at 12:57 PM, Alex Pilon wrote:
> You could also put that js into external js files and use use
You could also put that js into external js files and use use_javascript to
have each partial include the related external js file when it loads into
the template.
On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey wrote:
> Forgot the link:
> http://www.symfony-project.org/gentle-introduction/1_4/en
Forgot the link:
http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots
On Wed, Nov 3, 2010 at 11:55 AM, JoJo wrote:
> Hello everyone,
>
> I have a question not very technical but quite structural.
>
> In my modules, I use some partials to complet
We have used slots as a way to do that so that you can create a slot at the
end of your layout (just before ) and your partials can then load the
javascript it needs into that slot.
On Wed, Nov 3, 2010 at 11:55 AM, JoJo wrote:
> Hello everyone,
>
> I have a question not very technical but quite
Hello everyone,
I have a question not very technical but quite structural.
In my modules, I use some partials to complete the layout. And in these
partials, I use some javascript functions. So when page loaded, these
javascript functions are added in the middle of template.
I think that it is no
Hi, I have an answer to your question in
http://forum.symfony-project.org/viewtopic.php?f=22&t=30678&start=0
Regards, RAPHAEL
--
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
41 matches
Mail list logo