I also wonder what the real impact would be of just creating your own pages 
controller? I always cut my own anyway and there is nothing to stop you 
creating your own actions in it. It might be worth just giving it a go - create 
a model and a view in the pages folder and see what happens. You could always 
retain the 'default' display action anyway and change the routing to avoid 
conflicts if really necessary.

I could be talking out of my backside and it all might fall down in a horrible 
heap, but if it were me I'd try it.

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 25 Sep 2010, at 16:31, j.blotus wrote:

> Couldn't you just name it BookPages?
> 
> On Sep 24, 4:51 pm, lado77 <[email protected]> wrote:
>> Dear Cake Bakers,
>> 
>> In my app (currently being designed) I want to have "pages" database
>> table, simply because it is the most suitable name for it (Page
>> belongsTo Book, Book hasMany Pages). But this is of course in conflict
>> with Cake's default static content serving with its PagesController. I
>> really don't want to mix database entity "Page" with static content
>> "Page" into the common "PageController" as these 2 are totally
>> different things. So I see 2 possible solutions here. One would be to
>> rename(refactor) cake's PagesControler to something like
>> StaticController and all occurrences in URL from /pages/ to /static/.
>> But this seems to me quite stupid e.g. regarding future Cake's release
>> updates. Another solution would be to rename "Pages" table to
>> something different. But I don't like to complicate obvious and easy
>> things such as clear naming conventions. My question is: Have anybody
>> had experiences with such situation and what was your solution?
>> 
>> Ladislav
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to