Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix routing on elements and cells possible? #3912

Closed
SplicePHP opened this issue Jul 9, 2014 · 3 comments
Closed

Prefix routing on elements and cells possible? #3912

SplicePHP opened this issue Jul 9, 2014 · 3 comments
Milestone

Comments

@SplicePHP
Copy link
Contributor

Just a quick question.
Is it currently possible to have separate cell or element directories for prefixes just like admin controllers and templates, or should I stick my admin and frontend cell logic into the same file?

By the way. Have to say you have done a magnificent job with 3.0. I am loving the new system.

@ADmad
Copy link
Member

ADmad commented Jul 9, 2014

Thank you, we really appreciate your interest in 3.0.

It's currently not possible to have separate directories for cells and elements for prefixes (apart from creating sub directories under Element folder yourself and specifying element name accordingly). If you want separate directories it would be best if you use a plugin which provides total separation for all template/class files. If we were to provide this ability for prefixes, we would still have to provide fallback to normal directories and searching under too many paths would slow things down.

P. S. For general questions please use the google group instead of the issues tracker.

@rchavik rchavik closed this as completed Jul 9, 2014
@markstory markstory added this to the 3.0.0 milestone Jul 9, 2014
@markstory
Copy link
Member

I don't think having cells be aware of prefixes. If you need different templates in prefixes, you can render specific templates with a cell.

Having themes, plugins and prefixes gets pretty complicated quickly.

Edit: finished my thoughts.

@SplicePHP
Copy link
Contributor Author

Thanks, will use google groups instead if i am stuck and only post bug reports here if I have thoroughly tested a problem and am sure I found an bug. Don't want to waist your highly valuable time. I have a firm grasp on all the major changes and concepts now. I am creating some amazing plugins this side and will share them with the community once done. Keep up the good work.

simkimsia pushed a commit to simkimsia/cakephp that referenced this issue Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants