Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:22:48+00:00 2026-05-22T23:22:48+00:00

when I have created my page indexSuccess.php, i used an instruction like : <?php

  • 0

when I have created my page indexSuccess.php, i used an instruction like :

    <?php echo $form['titre']->render();?>

it gives me an error when executing like :

    Notice: Undefined variable: form in C:\wamp\www\MyProject\apps\frontend\modules\addAnnonce\templates\indexSuccess.php on line 84

    Fatal error: Call to a member function render() on a non-object in C:\wamp\www\MyProject\apps\frontend\modules\addAnnonce\templates\indexSuccess.php on line 84

what can I doas solution for that problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:22:49+00:00Added an answer on May 22, 2026 at 11:22 pm

    When you auto-generate a doctrine model, the form is created as a partial and embedded in the new & edit templates. If you check your newSuccess, createSuccess, editSuccess, updateSuccess actions, you will find the assignment of the form variable as mentioned by prodigitalson, so this error wont appear there.

    However, the form is not automatically made available on indexSuccess, as that page by naming convention is supposed to be used for listing out the objects. Breaking the convention might lead to some confusion later.

    One more tip: if you want to create a screen similar to the symfony admin backend, where you list all objects along with a form to add/edit objects, you can use generator.yml to automatically generate your views. Be sure to include css,js&images from web/sf folder in the symfony directory

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a html page in php and upon submission i validates that
I have created a page index.php with a lot of divs and I need
I have created a page in PHP, in that i need to load a
I have created view page in MVC like <%using (Html.BeginForm()) { %> <%=LabelHelpers.Label(firstname, FirstName:)%>
I have created a PHP page, whereby having the page to send automatically to
I have created a custom page named 'products' <?php /* Template Name: Products */
I have created a page called profile.php that gets a value from mainpage.php, by
So I am using the facebook-php-sdk and I have created a page tab On
I have created css page called style.php and included this the top: <?php header(Content-type:
I have created a page on my site where users can post directly to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.