Questions tagged as 'require'

1
answer

Import functions from another file (node.js)

I have a bot.js file that would be my "main" project and inside the same folder where the bot.js is, I have Call.js and Somar.js which are just functions [call ()] and [add () ]. Is it possible to "import" these functions into bot.js and just us...
asked by 05.07.2018 / 20:00
1
answer

Problem validating form fields as required

asked by 01.09.2017 / 22:43
1
answer

require in component of vue.js

Good afternoon, I can not use the "axios" require in the vue component file. How to solve this? the file in question is home.js: const axios = require('axios'); Vue.component('home-page', { template: ' <div> <in...
asked by 02.08.2018 / 18:44
0
answers

Namespaces and Require

I have my Index.php Knowing that Folder and Folder are namespaces. How do I extend Sql Register class? and how do I use Register methods in index.php; Thank you from now     
asked by 14.06.2018 / 07:23
1
answer

PHP require () giving 500 error

I have a system recently developed in PHP7 on Windows, and I decided to migrate to Debian9. At the moment everything works, however the autoload (psr-4) located in vendor has problems requesting the classes, returning error 500 in the browser....
asked by 08.05.2018 / 16:53
2
answers

Require and include

Hello, I have a question on the following: Class: "Test1.php" <?php class Teste1{}... ?> Ex1- include 'Test1.php' Ex2- include_once 'test1.php' Ex3- require_once 'Test1.php' Is it possible to call test1 (in minuscule), as i...
asked by 17.04.2018 / 17:22
0
answers

Require is not getting the file

Hello, please do not require this error: Warning: require(./funcs/FuncSQL.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/Lucktor/pages/home.php on line 42 Fatal error: require(): Failed opening required './funcs/F...
asked by 16.02.2017 / 22:55
1
answer

No data was submitted by server

When I try to access my default route in the browser it is shown the error of the browser itself, in this case Opera:    The local dev page is not working       No data was sent by dev.local In case, dev.local is my local server. I...
asked by 23.10.2016 / 00:20
2
answers

Why requires and includes can not add files that are in directories above the call file?

I noticed that require and includes can not include files that are above the directory of the calling file. Why does this occur? Example: This works: <?php require_once('inc/configs.php'); ?> This does not wor...
asked by 10.01.2016 / 17:46
1
answer

Menu does not appear in the mobile version

Hello everyone, I'm trying to include a page that has an external menu, requested in PHP with require, but I still tried the include, but it still has the same problem, as the screenshot below the menu only appears in the desktop version, in the...
asked by 07.06.2018 / 13:14