Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 91058

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It uses commonly known design patterns like MVC and ORM within the convention over configuration paradigm.

2 votes
1 answer
117 views

Using Cache::remember for banners and stores

I'm using Cache::remember to cache 3 results in my action, 2 in the same call to Cache::remember. It works, but I have 2 questions about how I can join this Cache::remember call: Could I use two Cac …
Ricardo's user avatar
  • 265
1 vote
1 answer
2k views

CakePHP image upload component

'CakePHP-ImageTool-Component' . DS . 'ImageTool.php'); and use ImageTool; 2nd: in method saveFileLFS I'm using true or false to flag OK. <? … 'CakePHP-ImageTool-Component' . DS . …
Ricardo's user avatar
  • 265
4 votes
1 answer
147 views

CakePHP change 'miniMap' action and respect template

I have some questions on how I can improve this "action" (method) in "controller": My template has a navbar with dynamic content (if the user is logged in a special button appears, his name appears …
Ricardo's user avatar
  • 265
1 vote
1 answer
1k views

CakePHP login action returning json

I have some questions on how I can improve this "add action" (method) in "controller": I'm using the add action only if post request. Is it correct? This action doesn't have views ($this->autoRender …
Ricardo's user avatar
  • 265
1 vote
Accepted

CakePHP login action returning json

If you have another point to improve, please comment or answer, I will change the accepted answer To put in CakePHP pattern I remove both lines: $this->autoRender = false; $this->response->type(' …
Ricardo's user avatar
  • 265
0 votes
Accepted

CakePHP image upload component

/vendor/CakePHP-ImageTool-Component" ] } I don't use require now. In saveFileLFS method now I'm using Exception if something don't work. …
Ricardo's user avatar
  • 265
4 votes
2 answers
2k views

CakePHP static pages (without entity) but with dynamic content

Detailed description: In CakePHP, when you want to have a static page (such as index for example), you should use the PagesController (not connected to any entity). …
Ricardo's user avatar
  • 265
2 votes
0 answers
141 views

Controller method to add a product, stored across three database tables

I have some questions on how I can improve this "add" action method in a controller. Using a single form, the user can upload a product to be displayed on the site. A Product is composed of three en …
Ricardo's user avatar
  • 265
4 votes
1 answer
2k views

Change the limit from CakePHP 3 Paginator by click in link inside an <option>

I'm using the CakePHP 3.0 to paginate some content, but I can't find a way to change the limit (user on browser choose the limit of content displayed on screen) using Paginator built-in method (like sort … Qustion: Exist any way to do this in cakephp style ? …
Ricardo's user avatar
  • 265