Questions tagged as 'cakephp'

1
answer

using array_push in cakephp 2x

I'm trying to add an array that is a return from a database query, this array is nothing more than an add-on that I want inside my $this->request->data['Curso'] , but the problem is that array_push is similar to% $array[]...
asked by 13.01.2016 / 13:50
0
answers

Working with 3 templates within a 2ph cakephp form

I'm trying to do this, as I work with 3 models inside a form, the form is referring to the main model and the other 2 models are associated with this model. Example: <?php echo $this->Form->create('Escola', array('type' => 'fi...
asked by 06.01.2016 / 20:25
1
answer

controller name with hyphen in cakephp 2x url

I'm working google SEO on my site, and I realized that in word separations, a hyphen is better than an underline, or words together, but I realized that at first cakephp does not accept that it creates controllers in this way curso-no-exterio...
asked by 03.12.2015 / 12:47
0
answers

Failed opening required in cakephp

I'm implementing a plugin in my project in cakephp, but when I make a request for a file that is in the 'webroot/blog/file' folder, it shows me the following message:    Error: require () [http://php.net/function.require'>function.r...
asked by 17.11.2015 / 13:09
1
answer

Save tab-pane active when refreshing the page

I have a two-tab structure, and I need to keep the active tab active when I refresh the page. I thought about doing a click function that saves the session's open tab id, but I need to send a request (ajax) from js to Session. You can do it, but...
asked by 12.11.2015 / 19:11
1
answer

Rule in the model using str_replace () to replace "," with "."

The rule is not working. I get a value in Reals with the "," and I want to replace with "." to save the decimal values in the bank. For example, the value 35.39 reais would be 35.39 in the bank. The rule does not work and the value loses the dec...
asked by 17.12.2015 / 15:58
0
answers

function count brings different amount according to the date parameters passed

I need to get the month and year twice: to check the expenses and calculate the amount of expenses found. In function consultarDespesas , step to the two global variables to later access them in function quantidadeDespesas . The...
asked by 27.01.2016 / 15:55
0
answers

Recursion of folders and files stored in the Database - PHP

I have a system using CakePHP, in one of the pages there is the possibility of registering folders and recursive files, which are saved in the database. Now, I need to query these folders and files, logically with recursion and reproduce somethi...
asked by 06.11.2015 / 13:55
1
answer

Different layouts on cakePHP

My system when the user types the url it will fall into the login screen that has its own layout, after login the user is redirected to an AdminLTE style administration screen, but I do not know how I can separate these two layouts without that...
asked by 28.10.2015 / 13:07
1
answer

Sitemap cakephp with Routes

Instead of doing sitemap in the nail, is it possible to make a method inside my routes, which, all pages that exist in my project, are mapped by the sitemap?     
asked by 07.12.2015 / 19:23