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.

learn more… | top users | synonyms

2
votes
2answers
40 views

CakePHP view with interleaved PHP and HTML

It's CakePHP, though I'm more interested in what people think about the layout of the indentation, the mark-up, position of logic etc. Any feedback that relates to the subject of writing CakePHP ...
2
votes
2answers
90 views

Can I make this admin method in CakePHP more streamlined?

I have a VenuesController and an EventsController. My venues controller has an admin_add ...
1
vote
1answer
115 views

Need your opinions on my database normalization attempt [closed]

I'm working on a project with CakePHP where it will allow users to log their drug use. Be it alcohol, caffeine, or whatever else. When people add a log, they select the substance from a drop down, ...
1
vote
1answer
118 views

CakePHP Ticket Component

I have the following code that allows easy creation, pulling, and deletion of Tickets in a CakePHP application. ...
3
votes
3answers
177 views
1
vote
1answer
81 views

How to optimize the pagination query?

This is completely optimization question, I have a pagination query like that ...
1
vote
1answer
374 views

CakePHP return url validator

I have the following snippet of code that redirects a user to a specific page on successful login to the application. ...
2
votes
0answers
285 views

CakePHP Best strategy for getting HABTM data in multiple ways within the same tool

School HABTM AthleticDirector I am building a tool for assigning athletic directors (ADs) to schools. The tool has a school menu/filter which, when selected, shows a list of ADs already assigned to ...
1
vote
1answer
254 views

Is there a better way to loop through records and call an api?

I have a CakePHP function here that gets info for a twitter screen_name from the twitter api and writes it to a mysql db. I'm just looking for feedback about other ways to accomplish this that might ...
4
votes
1answer
295 views

CakePHP 2.x Custom PagesController & Routing

I want to direct all requests that haven't got a valid controller action to my custom page controller. I.e. I want /pages/new & ...
0
votes
2answers
80 views

methods in the class so close in what they do

I have this class that has these two methods that are so closely related to the each other. I do not want to pass the flags so I kept them separate. I was wondering if there is a way to rewrite it so ...
1
vote
2answers
571 views

Flexible and modular CMS with user management in CakePHP

Please review my database design: I think it is quite self-explanatory, but to be absolutely clear: My goal is to make an application which has a super flexible user management (which is why the ...
1
vote
1answer
3k views

new to cakephp - saving data into table [closed]

I've been trying to learn cakephp recently but I'm struggling to find any tutorials that deal with storing data into a table after it's been modified. I thought a good first experiment would be to ...
1
vote
3answers
347 views

Using CakePHP models/controllers properly

I'd like to know if I'm doing this properly. Basically, I have 3 models: Student, Course, ...