Log message #3150125

# At Username Text
# Jan 30th 2014, 16:32 mini-me @Neon1024 - thanks!, I just found it!: http://api.cakephp.org/2.2/function-env.html
# Jan 30th 2014, 16:32 Neon1024 mini-me: env()
# Jan 30th 2014, 16:31 mini-me how do I access $_SERVER using a cakephp function (rather than using the super global)
# Jan 30th 2014, 16:30 mini-me I'm getting an error "Do not Access Superglobal $_SERVER Array Directly."
# Jan 30th 2014, 16:30 mini-me quick question, i'm using code sniffer to make sure my code is to standards,
# Jan 30th 2014, 16:25 mini-me just fyi incase anyone else has this issue in the future!
# Jan 30th 2014, 16:25 mini-me $smarty->error_reporting = null;
# Jan 30th 2014, 16:25 mini-me I had to set the following (smarty had set it to NULL)
# Jan 30th 2014, 16:24 mini-me hey guys, I found my issues, again its with SMARTY!!!
# Jan 30th 2014, 16:04 halim np
# Jan 30th 2014, 16:01 Neon1024 I don't understand, sorry
# Jan 30th 2014, 16:00 halim Neon1024, using Model::find()
# Jan 30th 2014, 15:59 halim what i meant was that, rather than passing fields that should be included whether you could pass fields that will be ignored and all the other fields will be included in the query
# Jan 30th 2014, 15:59 halim in an action
# Jan 30th 2014, 15:56 Neon1024 halim: Pass from where?
# Jan 30th 2014, 15:50 mini-me i've tracked down my bug in the cake php core code, I find its failing in /lib/Cake/View/View.php -> _render()
# Jan 30th 2014, 15:48 halim is there a way to pass fields that should not be included in the query?
# Jan 30th 2014, 15:44 Neon1024 $this->User->Lead->find()
# Jan 30th 2014, 15:44 Vikky )
# Jan 30th 2014, 15:44 Neon1024 Or if your models are related you could find the leads added by that User
# Jan 30th 2014, 15:44 Vikky oh
# Jan 30th 2014, 15:44 Neon1024 You'll want to lookup the lead I should think
# Jan 30th 2014, 15:44 Neon1024 Then I would be doing your job for you :p
# Jan 30th 2014, 15:44 Neon1024 Of course not
# Jan 30th 2014, 15:44 Neon1024 No
# Jan 30th 2014, 15:43 Vikky Neon1024: can u tell what to write there
# Jan 30th 2014, 15:42 Vikky $this->Auth->user('Lead.account_id')
# Jan 30th 2014, 15:41 Vikky what should i replace with
# Jan 30th 2014, 15:39 Neon1024 Because Lead.account_id is not a variable
# Jan 30th 2014, 15:39 Neon1024 You are looking for something which will not be found
# Jan 30th 2014, 15:39 Neon1024 Line 12
# Jan 30th 2014, 15:39 Vikky user has many leads and acoount has many leads
# Jan 30th 2014, 15:36 Vikky its <?php echo $account['Account']['account_name']; ?>
# Jan 30th 2014, 15:35 Neon1024 I think it is as you are not passing in an id to your $account find
# Jan 30th 2014, 15:34 Neon1024 Is $account empty?
# Jan 30th 2014, 15:33 Vikky Neon1024:Undefined index: Account [APP/View/Emails/html/new_lead.ctp,
# Jan 30th 2014, 15:32 Neon1024 Oh, perhaps echo $account['Account']['name']
# Jan 30th 2014, 15:32 Neon1024 Unless Account is a related model
# Jan 30th 2014, 15:32 Neon1024 I would guess echo $user['User']['account_name'] perhaps
# Jan 30th 2014, 15:31 Neon1024 Vikky: What errors?
# Jan 30th 2014, 15:16 Vikky hey i want to fetch current logged in user account name im CakeMail but i am getting errors plz help me with this http://bin.cakephp.org/view/403884094