All talks > Talks tagged with string

 
icanhaz dynamic template name

You can make icanhaz engine render a template, passing a dynamic template name. This can be achieved since in javascript you may access object property using array notation (following statements are equivalent): object.propertyobject['property'] Thanks to it you can built any string to be the [...]

dynamic attribute values with apache tiles

Many people ask the question: how to pass dynamic value to a child view (in other words, how to override a base value). Often this is used in html/head/title tag, since different pages should have different titles. What is sad, it's really difficult to find a good answer. The problem lies in t[...]

General Symfony 2 discussion • Goutte form post w/ empty query string variable

I'm having some issues when attempting to post a form that requires a query string variable (valida[...]

General Symfony 2 discussion • Array to string conversion error in dynamic date field

In a form class with an Event Subscriber that adds a date field, the error Notice: Array to string [...]

General Symfony 2 discussion • preg_match regular expression in twig

Hi all,I want to check if a given string from an entity has my defined format. If yes then I would [...]

General Symfony 2 discussion • about the doctrine orm?

i have two table that are user and rolein user table:Code:     /**     * @var string $userRole[...]

Custom Symfony 2 class constraint validator NotEqualTo

I need to create a Symfony 2 custom class constraint validator, to validate that a property is not equal to another (i.e. password can't match username). My first question is: do I need to implement method getDefaultOption() and what's is used for? /** * @Annotation */ class [...]

Symfony2/Doctrine One-To-Many: Class integer does not exist

I have a one-to-many self referencing entity. Everything works fine as long as the parent value is set to null. When I set the parent item to something actually in the list, I get the error: *Class integer does not exist 500 Internal Server Error - ReflectionException* Her[...]

Dynamic timestamp for assetic?

Right now I have : templating: engines: ['twig'] assets_version: ~ assets_version_format: %%s?%%s And My javascripts tag assetic: debug: false use_controller: false read_from: %kernel.root_dir%/../web write_to: %kern[...]

Argument 1 passed to?

I tries to submit form in symfony2.1 but i got following error, i create form student registration and try to submit it, i reviewed may forums for this but can't got any proper solution. Error:Catchable Fatal Error: Argument 1 passed to Frontend\EntityBundle\Entity\StudentRegistra[...]

 
 
 
 
Want to support this service?