Tagged Questions
82
votes
21answers
14k views
PHP Framework Decision - Analysis paralysis [closed]
I've spent ages reading about the pros and cons of all the major PHP Frameworks (i.e. Zend, CakePHP, Symfony, CodeIgniter, etc., etc.). I've also read most of the questions and answers already posted ...
5
votes
5answers
5k views
Best way to parse bbcode
I'd like to work on a bbcode filter for a php website. (I'm using cakephp, it would be a bbcode helper)
I have some requirement.
Bbcodes can be nested. So something like that is valid.
[block]
...
26
votes
12answers
8k views
To Use a PHP Framework or Not?
I've started writing a few applications in PHP, and I'm becoming more familiar with the language. Someone told me about CakePHP, and CodeIgniter. I wanted to get a better understanding of how these ...
1
vote
4answers
2k views
How to “Validate” Human Names in CakePHP?
I have a PHP script that is supposed to check for "valid" human names, but recently cracked against a name with a space, so we added spaces to our validator.
Rather than doing this, is there a way to ...
47
votes
19answers
15k views
Which PHP framework is closest to Ruby on Rails? CakePHP? CodeIgniter? [closed]
I'm going to be switching back and forth between Ruby on Rails projects, and some as-of-yet undecided PHP MVC framework projects. Which of the PHP MVC frameworks out there (CakePHP, CodeIgniter?, ...
8
votes
4answers
8k views
Creating a REST API with CakePHP
I am creating an API so that the iPhone application we are developing can communicate with our web server. We have recently (within the last week) adopted the CakePHP framework for our web ...
2
votes
4answers
986 views
How to change the sequence of 'joins' in CakePHP?
I have the problem with the sequence of joins. The similar problem was in another question http://stackoverflow.com/questions/3343348/manipulating-order-of-joins-in-cakephp. The answer was to use ...
10
votes
1answer
15k views
CakePHP find method with JOIN
Hi,
I need to do the following query using the CakePHP find method:
SELECT *
FROM `messages`
INNER JOIN users ON messages.from = users.id
WHERE messages.to = 4
ORDER BY messages.datetime DESC
...
5
votes
2answers
5k views
UNION syntax in Cakephp
Anyone knows a good way to make UNION query in CakePHP? I would like to avoid using $this->query();.
With two tables t1, t2:
SELECT * FROM t1
LEFT JOIN t2 ON t1.id = t2.id
UNION
SELECT * FROM t1
...
10
votes
6answers
6k views
Can I use Facebook's hiphop with frameworks like Zend Framework, cakephp, symfony
Yesterday Facebook launched HipHop, a sourcecode-converter from php to c++. The set of php functions and constructions is more limited than in standard php.
Are the current popular php frameworks ...
6
votes
4answers
9k views
How to eliminate php5 Strict standards errors?
After upgrading my PHP to 5.4.3 (WAMP server 2.2), my web app made in CakePHP 1.3, is showing the following errors in my index:
Strict standards: Redefining already defined constructor for class ...
21
votes
5answers
14k views
Set Response Status Code
I have an API call for which I need to be able to run some checks and potentially return various status codes. I don't need custom views or anything, I just need to return the proper code. If the user ...
19
votes
1answer
22k views
CakePHP ACL Database Setup: ARO / ACO structure?
I'm struggling to implement ACL in CakePHP. After reading the documentation in the cake manual as well as several other tutorials, blog posts etc, I found Aran Johnson's excellent tutorial which has ...
22
votes
3answers
15k views
Asynchronous processing or message queues in PHP (CakePHP)
I am building a website in CakePHP that processes files uploaded though an XML-RPC API and though a web frontend. Files need to be scanned by ClamAV, thumbnails need to be generated, etcetera. All ...
24
votes
3answers
5k views
Speeding up CakePHP
I've been a keen fan and user of CakePHP for about 2.5 years now, but the main bugbear that most fellow developers level at the framework is that it's slow, and the dispatch cycle takes too long to ...