i use @ in front of getimagesize() etc and test on === false
afterwards
saves me a warning or some trycatch stuff
but for $this->params['controller'] this is just totally unnecessary!
if (!empty($this->params['controller'] )) {...} is way cleaner
On 17 Sep., 10:19, Andrei Mita <[email protected]> wrote:
> Did you actually tried searching for: @ sign in front of php ???
>
> First result:http://php.net/manual/en/language.functions.php
> CTRL + F: @, second find:
>
> You can preface a (builtin php ?) function call with an @ sign, as in:
>
> @foo();
>
> This will supress the injection of error messages into the data stream
> output to the web client. You might do this, for example, to supress the
> display of error messages were foo() a database function and the database
> server was down. However, you're probably better off using php
> configuration directives or error handling functions than using this
> feature.
>
> See the section on error handling functions.
>
>
>
> On Fri, Sep 17, 2010 at 10:56 AM, Joshua Muheim <[email protected]> wrote:
> > So telle me how you would search for this? Try enter
>
> > @ sign in front of php
> > at sign in front of php
>
> > ...not too many results... I'd be happy if you could tell me how to
> > search for such special chars, if there's a way to.
>
> > On Thu, Sep 16, 2010 at 5:50 PM, Andrei Mita <[email protected]>
> > wrote:
> > > Do you ever try a google search before asking a question?
>
> > > On Thu, Sep 16, 2010 at 6:27 PM, psybear83 <[email protected]> wrote:
>
> > >> Hi all
>
> > >> I haven't done PHP coding for several years now, and I wonder what's
> > >> the "@" in front of some statements I found in the view of our web
> > >> application:
>
> > >> @$this->params['controller']
>
> > >> Thanks a lot for help
> > >> Josh
>
> > >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> > others
> > >> with their CakePHP related questions.
>
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "CakePHP" group.
> > >> To post to this group, send email to [email protected]
> > >> To unsubscribe from this group, send email to
> > >> [email protected]<cake-php%[email protected]
> > >> om>For more options, visit this group
> > >> athttp://groups.google.com/group/cake-php?hl=en
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> > others
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<cake-php%[email protected]
> > > om>For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en