Why not just setup a centralised CDN? This way your templates can just
include the html content for things like header blocks with logo's etc in a
consistent way and also create a centralised point that if edited will
automagically update all related sites using it?
On Tue, Nov 2, 2010 at 12:52
Hi everyone,
The app we're working on will need to be I18N, and it will need this under
different conditions:
- The app may be installed for clients in different countries (one
install per client)
- In one country they might need multiple languages (multicultural teams)
However let's
Hi, I have an answer to your question in
http://forum.symfony-project.org/viewtopic.php?f=22t=30678start=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
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
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 /body) and your partials can then load the
javascript it needs into that slot.
On Wed, Nov 3, 2010 at 11:55 AM, JoJo jojoyangd...@gmail.com wrote:
Hello everyone,
I have a question not
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 jojoyangd...@gmail.com wrote:
Hello everyone,
I have a question not very technical but quite structural.
In my modules, I use some
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 gmccums...@gmail.com wrote:
Forgot the link:
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 alex.pi...@gmail.com wrote:
You could also put that js into external
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
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?
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
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
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 alex.pi...@gmail.com
Hey,
First off, the appropriate spelling is hi guys not hi gays. In some
circles you'll be sodomized for that sort
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 mspozz...@gmail.com wrote:
Alex,
Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
About
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
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
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
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 srhen...@gmail.com 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
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 srhen...@gmail.com wrote:
Hi all,
I've seen this question asked before a lot but from years ago--so
there wasn't any working
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 srhen...@gmail.com wrote:
Also, is there a way to make it so that
@ 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 alex.pi...@gmail.com wrote:
I've only ever used the default.. but would it be a sufficient solution to
add an
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
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
I'll probably go ahead and do that Alex, thanks for the response :)
On Nov 3, 1:20 pm, Alex Pilon alex.pi...@gmail.com 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
No problem.
On Wed, Nov 3, 2010 at 13:28, xpanshun srhen...@gmail.com wrote:
I'll probably go ahead and do that Alex, thanks for the response :)
On Nov 3, 1:20 pm, Alex Pilon alex.pi...@gmail.com wrote:
I'm not sure.. I don't have a lot of experience customizing generators..
however I
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
Good point regarding associations.
On Wed, Nov 3, 2010 at 13:37, Gareth McCumskey gmccums...@gmail.com 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
@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.
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
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
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
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
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 kaliapari...@gmail.com wrote:
Hey guys,
I have 2 very identical templates which have only a minor difference to
them. Their
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
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 gmccums...@gmail.com a écrit :
Erm .. why not just use the same action instead of having two actions that
are exactly the same? If you are not
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, Parijat Kalia
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
Check onDelete: cascade on your relations.
On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com 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
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
@ Alex,
I tried it--didn't work :(
Any other ideas?
On Nov 3, 6:46 pm, Alex Pilon alex.pi...@gmail.com wrote:
Check onDelete: cascade on your relations.
On Nov 3, 2010 6:03 PM, xpanshun srhen...@gmail.com wrote:
Hi all,
I have my backend set up and was testing out the functions (i.e.
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
This whole thing is messed up for some reason; maybe I should just
start over :/ :(
On Nov 3, 7:29 pm, xpanshun srhen...@gmail.com 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
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 alex.pi...@gmail.com wrote:
I think both ways
43 matches
Mail list logo