Questions tagged as 'php'

3
answers

Problems with the structure of links in MVC

I'm working on an MVC project and I'm having trouble redirecting pages. The project is based on controllers and actions , which have the proper functions that call these files and call their methods, in this case actions. This is the HTML...
asked by 11.11.2014 / 14:09
2
answers

Get directory from the server

How can I get the directory where the server is located using PHP? The directory of the server and not the file where the script will be run     
asked by 09.03.2015 / 15:46
3
answers

Check if there is a tag within the site [closed]

I generate a specific tag from my system, my clients need to add this tag inside the body of their index, my problem is: How to identify if this tag is inside the site, only by your url, without informing the name of the file, for example...
asked by 21.01.2017 / 14:15
2
answers

Check Empty Fields - Laravel 5.3

I have an integer field and a date field that are not required and are programmed to accept NULL, but when I send the form data without filling in, my controller receives the empty value instead of ignoring the field, which generates the error:...
asked by 02.12.2016 / 13:51
3
answers

Function explode () in a vector

I get a variable like this: $VAR = "joao.silva/jose.ferreira/maria.jose/carlos.eduardo/"; I need to store it this way: $VET = array('joao.silva', 'jose.ferreira', 'maria.jose', 'carlos.eduardo'); Could someone help me manipulate this i...
asked by 13.03.2017 / 17:49
3
answers

Count how many times a string appears in an Object

I have an Object returned from the Facebook API and would like to "react" to the reactions of a post. I have this snippet of code: // Descodificando o JSON $objeto = json_decode($userNode['reactions']); // Percorrendo dados foreac...
asked by 31.03.2017 / 16:11
1
answer

Using ACL in CakePHP

After searching a lot, I did not find a satisfactory answer. I would like your opinion and / or hint about using ACL in CakePHP. I've seen some plugins that "help" this issue, but I do not find it dynamic enough. Some say that doing "on han...
asked by 05.01.2015 / 20:34
0
answers

The Content Model appears in my index when using cakephp [closed]

My index.cpt and Layout.cpt are empty. But in the browser, my index appears with the contents of my Model: <?php class Post extends AppModel { public $validate = array('title' => array('rule' => 'notEmpty'), 'body'...
asked by 17.01.2015 / 03:48
2
answers

Encrypt ini files

I need a script that compiles a .ini to avoid an easy reading. The file should be read with PHP. It seems that C # has a similar feature. The question is how do I do this and then I read .ini with PHP. Example of file .ini...
asked by 10.12.2014 / 22:01
1
answer

Change the operation of the myCRED Gravity Forms hook

I have a site with a scoring system using the WordPress plugin for myCRED and Gravity Forms. MyCRED provides a hook to give pre-defined points automatically to users each time they send messages via Gravity Forms, and as an additional option,...
asked by 02.02.2015 / 04:05