Questions tagged as 'namespace'

1
answer

NoReverseMatch at / accounts / register u'cuentas' is not a registered namespace

I'm working with Django 1.10 and I just created a user registry but when I click save it does not redirect me to the cuentas:home page: User registration <form method="post"> {% csrf_token %} {{ form.as_p }} <but...
asked by 20.02.2018 / 16:03
4
answers

Is there an equivalent of C ++ using namespace for Java?

Well, my question is very simple. In C ++ I do this: using namespace std; Then I can use the strings. What I would like to know is, if there is something in Java to import all the functions of a class. Now, what I do is call the functi...
asked by 27.11.2016 / 16:01
1
answer

Psr-4 Laravel Namespace

I am working with Laravel 5.1 in an app that is already running, but I am changing from modules to the repository pattern. "psr-4": { "app\": "app/", "Cms\": "app/cms" } The first one is the default namespace and the second is what...
asked by 13.09.2016 / 15:13
1
answer

problem when getting the class name

In my code I have a method that uses get_class to get the name of the class. For example, if you had the User class, you would store that class name in a variable. I recently started using the namespace with psr-4, but now that function get_c...
asked by 21.03.2018 / 21:20
3
answers

Ruby on Rails helps with models, namespace and many-to-many reactions

I have problems managing the namespace , I have the following models: class Administradora::Owner < ApplicationRecord has_many :owner_mails, foreign_key: :administradora_owner_id has_many :junta_mails, through: :owner_mails end class...
asked by 27.06.2017 / 18:15
0
answers

Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) in ".. \ index.php" on line 6

First of all thanks for your answers, my problem is this. I am trying to create a file with classes to perform some simple operations, the project folder contains an index and two files contained in a nested folder, but when executing my code...
asked by 30.05.2018 / 05:21
0
answers

Remove Spacename from the classes generated by the WSDL client

I have a problem generating the classes of a wsdl in JAVA, in the XML response I do not want the namespace to be generated: Output: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:consu...
asked by 20.02.2018 / 17:59