1 answer
4 votes
How do I bake a view for a plugin
Started out plugin development, for some speed I wanted to bake a view that is part of my plugin. But in bake the controllers/models of my plugin do not show, hence I can't bake a corresponding view.
2 answers
4 votes
Find max number of times a tag is used
I have a HABTM tags/post schema.
The data in the table posts_tags table looks like.
post_id tag_id
1 10
2 11
3 11
3 12
4 11
5 13
How can I get the highest number a tag is used? In my...
1 answer
4 votes
Managing big applications
Hey guys!
I have an application here that is growing bigger and bigger. The address is this: www.aquitanda.com [brazilian portuguese].
Basically, it's a website where you can buy and sell stuff on your own, which means people can create their own...
1 answer
4 votes
How can I use components in a shell
How should I include and call components in a shell?
2 answers
3 votes
Query table in views
Hi. I'm learning CakePHP (using the blog app tutorial) and I want to get rid of that stupid table of SQL queries that shows in my views. So far I only found out that the table isn't passed in $content_for_layout variable, because it appends after...
1 answer
3 votes
What is the best way to handle subdomains
I would like to have multiple subdomains pointed to my project. For instance, site1.web.com, site2.web.com, site3.web.com. What is the best way to accomplish this? Potentially, there will be 10,000 subdomains pointing to this project.
2 answers
2 votes
Gallery behavior
Hello, I was building my custom gallery behavior to enable "attaching" images for any other model.
My behavior uses model named 'Photo' as storage for saving uploaded photos. Here's schema:
CREATE TABLE IF NOT EXISTS `photos` (
`id` int(10)... 1 answer
2 votes
User-Agent header
Well, another question:
Is there a posibility to determine by using RequestHandler wheter client uses Internet Explorer (like User-Agent header)? I need it to know if I can send application/xhtml+xml mime type or not.
1 answer
2 votes
Allowing __call in AppController
Hi.
PHP5 has a __call magic method that is triggered when invoking inaccessible methods in an object context. I tried using this function as a catch-all for my missing actions, but realized that the Dispatcher checks controller classes for the...
2 answers
2 votes
CakeSchema documentation?
Hi all,
anybody knows where documentation for cake schema is? For instance what datatypes are supported, keys, indices and so?
How does CakePHP Questions work?
CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!
After you ask your question you just need to wait until you have got some answers and pick the correct answer.
Other users might help you by finding the right answer by voting and giving comments.
