Questions tagged as 'include'

1
answer

if only execute else

Hello everyone, I have this function if it collects a variable coming from login.php and does a check to choose between two menus. But it does not matter the result inside the variable $permt it always chooses else. Someone can poi...
asked by 09.06.2016 / 02:23
1
answer

How can I find out which file includes the other in PHP?

I would like to know in PHP how I can find out which is the parent file, in an inclusion, through the child file. Example: avo.php pai.php hijo.php In the avo.php file I have: include_once 'pai.php'; And in the file...
asked by 04.08.2015 / 20:22
2
answers

Include EntityFrameWork

I'm working with Entity Framework 6, I made all the necessary settings. I have a Person Class that owns a Property of the Type Address, inside address I have a property Municipio that by the end has a property of Type UF. I have a function that...
asked by 27.06.2014 / 21:43
1
answer

Include gets wrong path from url

I have the following structure: Iwouldlikethefileinsideviews/usuarios/usuarios-view.phptoincludethefile_layout.htmlthatisinthepath:views/_template/_layout.html,I'mdoingsoinusuarios-view.php:<?phpinclude("../_template/_layout.html"); ?>...
asked by 27.04.2016 / 22:08
1
answer

Is there inclusion mapping for '#include' cmylib ''?

Reading this question , we are talking about adding headers to #include <filename> , the author speaks the following:    It is common to have these names that map to other files (eg, cstring -> string.h ). Then th...
asked by 28.09.2017 / 00:36
2
answers

What is the best way to call files?

Well, I use codeigniter (but not specifically in it, anyone who is MVC). I wanted to know the best way to call my files, css, js, fonts, etc. I think the best way is to call the controller method, but let's assume that for each page (method) I w...
asked by 06.03.2017 / 22:25
1
answer

Changing the xml by java

I wanted to know if there is a way I can change layout="@layout/app_bar_main" of <include> by java <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.androi...
asked by 05.03.2018 / 03:17
1
answer

About the inclusion of headers (.h) and the proper compilation

Assuming I create a .h file for the specification of a function func.h #ifndef FUNC_H #define FUNC_H int xPy(int x, int y); #endif //FUNC_H Then I created the implementation of this function in a .c file, like: func.c...
asked by 01.01.2019 / 21:01
2
answers

PHP include with characters problem

I'm using include in two files. One file usually includes, however, the other one comes with problems in the characters, the " " character appears in the accents. But by opening the two files in notepad++ , they are normal, with acce...
asked by 18.05.2015 / 20:41
1
answer

Import multiple libs into a single include in c

Is there a way to import all libs from my program into just include like in other languages: import re, datetime, math (Python)? After reading about preprocessing directives here (Little is said about the include on thi...
asked by 16.06.2017 / 18:16