All Questions

RSS

1 answer

5 votes

Asked by pzwiers, on 10/11/09 in Shells

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

Asked by powtac, on 13/11/09 in Models

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

Asked by eberfreitas, on 23/11/09 in Installation / Configuration

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

Asked by powtac, on 26/11/09 in Components

How can I use components in a shell

How should I include and call components in a shell?

2 answers

3 votes

Asked by JakubLedl, on 14/11/09 in Views

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

Asked by Roborino, on 24/11/09 in Installation / Configuration

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.

3 answers

3 votes

Asked by andy, on 10/6/10 in Installation / Configuration

How to use cake PHP in Netbeans?

I am developing web application on Netbean Framework. I want to use PHP framework along with Netbeans is there any way I can make CakePHP as plugin in Netbean?

Thank you.

Andy

6 answers

2 votes

Asked by trevorsg, on 30/10/09 in Models

What do you think of my Validation tool?

I got frustrated with long complicated validation rules in my models, and the limited functionality of Bake's validation generation, so I made my own tool. If I get enough support I will clean it up, make it pretty, and probably get it its own...

2 answers

2 votes

Asked by DmitriySpb, on 10/11/09 in Behaviors

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)...

2 answers

2 votes

Asked by Sukhwinder, on 13/11/09 in Behaviors

Containable behaviour, it causes multiple queries, instead of one big query

Cakephp containable behavior causes multiple queries to fetch required data, which causes a very much performance degradation.

See This Example

Is there any work around for this? if no, then there is no use of containable.

Thanx & regards

<< previous 1   2   3   4   5   6   7   8   9

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.