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

error reporting is on by default #1

Open
ahb360 opened this issue Jan 27, 2017 · 2 comments
Open

error reporting is on by default #1

ahb360 opened this issue Jan 27, 2017 · 2 comments

Comments

@ahb360
Copy link
Member

ahb360 commented Jan 27, 2017

By setting the error reporting in the index.php. It is on by default. I think it should be on if we are on development environment.

@hesna
Copy link
Member

hesna commented Jan 27, 2017

by default this git repo in supposed to be used by developers for developing purposes. it would be harder if after each pull one has to make it enable again.
on the deployment server, it's better to move files via FTP and occasionally push needed updates (as you always said).

that being said, one solution is having a dev.php file only being included on development environments. how does that sound?

@ahb360
Copy link
Member Author

ahb360 commented Jan 27, 2017

I mean something like this

if (YII_DEBUG == true) {
	ini_set('display_errors', 1);
	error_reporting(E_ALL | E_STRICT);
}

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