This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

page not found

hello I have a page not found error this is my codes : 

  1. routing 

booking.booking_form:

path: '/booking/{id}'

defaults:

_form: '\Drupal\booking\Form\BookingForm'

_title: 'booking'

requirements:

_permission: 'access content'

booking.liste:

path: '/booking/list'

defaults:

_controller: '\Drupal\booking\Controller\ListeController::getliste'

_title: 'Liste'

requirements:

_permission: 'access content'

2. module 

<?php

Access Node values from

Hi,

Embarking on your first module is a frustrating affair!! Am I right?

So, here's what iv'e got so far:

-----------form types stuff up here, all working nicely ---------

Add form element to hook_node_view

Hello

I would like to add a form to a page view, 

--------myphp_ludo_form declared up here----------

  function myphp_ludo_node_view($node, $view_mode, $langcode) {

    if($view_mode == 'full' && $node->type == 'page') {

        echo 'This is a page';

        $form = drupal_get_form('myphp_ludo_form');

      }

    }

In the node view i see the echo but no form element, any ideas guys?

Custom module inside profile not picked up during profile installation

I am creating a install profile which is supposed to install a custom module(numscroller) while custom profile is being installed.

The location of the module is mysite/profiles/innovation/modules/numscroller

But when I run the installer with 'innovation' profile selected then i get 

Required modules not found.

The following modules are required but were not found. Move them into the appropriate modules subdirectory, such as /modules. Missing modules: 

Standard for joins and taxonomy term nodes

NYON, Thụy Sĩ - Truyền thống hàng thế kỷ xác định chế tạo đồng hồ Thụy Sĩ là một thế giới ngoài blockchain, cuộc cách mạng công nghệ hứa hẹn sẽ thay đổi cuộc sống của chúng ta mãi mãi, ngay cả khi không phải ai cũng hiểu thuật ngữ này thực sự có nghĩa là gì. https://ductinluxury.com

Redirecting from inside of BuildForm

I've got a Drupal 8 application where, under certain conditions, while building a form (in buildForm), I need to redirect instead of continuing to build the form.  What's the best way to do this?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions