I have an order and catalog processing system created in CakePHP. He manages orders, products, packages, invoices, etc. (Everything you need for an e-commerce store is basically).
Now I want to make a βpanelβ -type page that will show recent orders, products that need to be updated, recent reviews, etc. I was about to create a page for PagesController, but I did not know how to access the models in PagesController.
Is there a way to access multiple unattached models on the same page?
" " CakePHP.
PagesController, , PagesController.
PagesController . PagesController, pastebin.
PagesController, , requestAction . , , requestAction , , . Cake-y, MVC.
requestAction
: , , requestAction. , , , , , .
Source: https://habr.com/ru/post/1778862/More articles:Cannot call user-defined JS function after returning AJAX content - javascriptConvert custom field image to become favorite in WordPress? - imageHow can an incorrect XML header (encoding) be changed on the fly in IIS before being processed by the WCF class? - xmlJava themes: find out which threads are still running - javaGetting "Unable to use undefined as ARRAY error" in my KRL code - krlIn Django, how can I save the value of the File input after returning it through an error? - javascriptLinq to SQL VS Entity Framework - c #How can I track line creation in Ruby? - ruby ββ| fooobar.comblocking object in asynchronous operation - multithreadingmotion detection and object extraction in C #? - c #All Articles