Log message #3150113

# At Username Text
# 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
# Jan 30th 2014, 15:09 mini-me no ideas guys? http://bin.cakephp.org/saved/115132
# Jan 30th 2014, 15:00 Giampaolo_ Hello. I am creating an API (through querystring token authentication) for my application however I have a little problem. If the authentication is not successful the user is redirected to the login page of the form authentication, but instead I want to show in the API page through JSON that the authentication was failed. Is that possible?
# Jan 30th 2014, 14:54 mini-me why is it being "reset" to 0?
# Jan 30th 2014, 14:54 mini-me view the bin for the code and issue, basically, when I debug error_reporting at the start, its set as 24575, then when I do it within the core lib file, its "returning false" (i.e. error_reporting() === 0), whats happening?
# Jan 30th 2014, 14:53 mini-me http://bin.cakephp.org/saved/115132
# Jan 30th 2014, 14:53 mini-me in cake
# Jan 30th 2014, 14:53 mini-me hey guys, having a small issue with "error_reporting();"
# Jan 30th 2014, 14:44 mini-me !bin
# Jan 30th 2014, 13:40 halim g0ng, wouldn't it be easier to save the language information in the session context and presenting the user a link on the page where he can switch language and redirected back to where the request came from?
# Jan 30th 2014, 13:09 g0ng My cake url is like: localhost/eclipse/ProjectName/news/view/2 eclipse is an alias in apache. I want to have a language altering link to direct my in localhost/eclipse/ProjectName/ell/news/view/2. How can I take /eclipse/ProjectName and news/view/2 seperatelly? I believe /eclipse/ProjectName is $this->request->base. What about the other?
# Jan 30th 2014, 12:25 Fida Thanks dear it works now
# Jan 30th 2014, 12:24 Fida 2.x