valan Posted June 22, 2018 Posted June 22, 2018 I'd like to use ProcessWire CMS capabilities in existing project which runs on popular PHP framework (Yii2). Specifically, I'd like to handle requests in Yii and call PW if necessary, plus create/modify pages in ProcessWire admin. Is it possible? If yes - how to setup such combination?
dragan Posted June 23, 2018 Posted June 23, 2018 It's most definitely possible. Good to know: PW uses PHP namespaces since version 3. https://processwire.com/blog/posts/processwires-roadmap-in-2015/#pw-3.0-changes-namespaces https://processwire.com/api/coding-style-guide/#3-namespaces
valan Posted June 24, 2018 Author Posted June 24, 2018 Hi! Thank you for responses. It's clear how to access PW from external PHP script. What's not clear yet is what would be a right setup in my case. As far as I understand, first, PW should be included in vendor directory via "composer require processwire/processwire"; second, it should be installed (e.g. direct some subdomain like pw.mydomain.com to index.php). Correct?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now