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

The name "Default" as namespace makes a fatal error. #184

Closed
taophp opened this issue Mar 18, 2014 · 1 comment
Closed

The name "Default" as namespace makes a fatal error. #184

taophp opened this issue Mar 18, 2014 · 1 comment

Comments

@taophp
Copy link

taophp commented Mar 18, 2014

I've just create a project using the Phalcon DevTools (1.2.6):

phalcon project --type=modules

Well, the .htaccessfile was missing but this was easily fixed. But there is another problem. When I tried to access the page, I got a fatal error:

PHP Parse error:  syntax error, unexpected 'Default' (T_DEFAULT), expecting identifier (T_STRING)                                                  or \\\\ (T_NS_SEPARATOR) or '{' in /var/www/projects/formation2/default/apps/frontend/Module.php on line 3, referer: http://localhost/projects/formation2/

It seems that the word 'Default' cannot be used as namespace.

By the way, it should be great to have a command to easily create a new module...

@sergeyklay
Copy link
Contributor

Thanks! Fixed in 2.0.x

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