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

Added <?php #6247

Merged
merged 1 commit into from
Nov 1, 2019
Merged

Added <?php #6247

merged 1 commit into from
Nov 1, 2019

Conversation

jones139
Copy link
Contributor

@jones139 jones139 commented Nov 1, 2019

The instructions say "create HelloCommand.php. Put the following code inside it::" but the code below does not include a <?php headder so when you run it it just echoes the contents of the file to the console rather than executing it. As someone who is well out of practice with php, it took me several hours to work out why and I only solved it by using cake/bake to create the skeleton. I appreciate that to those familiar with php it is probably obvious that you need that though!

The instructions say "create **HelloCommand.php**. Put the following code inside it::"  but the code below does not include a <?php headder so when you run it it just echoes the contents of the file to the console rather than executing it.   As someone who is well out of practice with php, it took me several hours to work out why and I only solved it by using cake/bake to create the skeleton.   I appreciate that to those familiar with php it is probably obvious that you need that though!
@dereuromark dereuromark merged commit 17ebd22 into cakephp:3.0 Nov 1, 2019
@dereuromark
Copy link
Member

For most it is usually quite clear as basic PHP knowledge is required for CakePHP development.
But this one line on top doesnt hurt :)

@jones139
Copy link
Contributor Author

jones139 commented Nov 1, 2019

Thanks - it was one of those 'doh!' moments when I realised what the problem was!

@jones139 jones139 deleted the patch-1 branch November 1, 2019 13:34
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

Successfully merging this pull request may close these issues.

2 participants