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

$this->loadModel('Page') always passes #4

Open
mikedigital opened this issue Apr 9, 2014 · 1 comment
Open

$this->loadModel('Page') always passes #4

mikedigital opened this issue Apr 9, 2014 · 1 comment

Comments

@mikedigital
Copy link
Contributor

https://github.com/houseoftech/Meta/blob/master/Controller/MetaController.php#L187 (from revision 13) checks to see if it can load the Page model, which it always can regardless if you are using one.

In the case that you are just using static pages, like I typically am, this shouldn't pass. Out of the box, you don't use anything to control your pages but static *.ctp pages.

If you need to use something like this in order to use this plugin, that's fine, but there is nothing specifying as much.

@houseoftech
Copy link
Owner

There should probably be a better way to add meta for database records anyway. May a configuration variable for which models to search through when initializing: searchModels = array('Page', 'Post', ....

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

2 participants