# |
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 |
# |
Jan 30th 2014, 12:23 |
Neon1024 |
The helpers are part of the view |
# |
Jan 30th 2014, 12:23 |
Neon1024 |
If you are in 2.x, it should be $this->Html->link() |
# |
Jan 30th 2014, 12:23 |
Neon1024 |
Fida: Are you in 1.3? |
# |
Jan 30th 2014, 12:23 |
Fida |
I have write this line of code. |
# |
Jan 30th 2014, 12:23 |
Fida |
<?php echo $html->link($post['Post']['title'], array('action'=>'view',$post['Post']['id'])) |
# |
Jan 30th 2014, 12:20 |
halim |
Fida, more details please |
# |
Jan 30th 2014, 12:19 |
Fida |
Call to a member function link() on a non-object |
# |
Jan 30th 2014, 11:58 |
halim |
all the values are correct |
# |
Jan 30th 2014, 11:58 |
halim |
i also checked the settings in the controller action receiving the POSTed information. i used ini_get() on all the settings that were configured in .htaccess and php.ini |
# |
Jan 30th 2014, 11:56 |
halim |
i've tested uploading a 10 MB file and it works without any trouble |
# |
Jan 30th 2014, 11:56 |
halim |
hello, i've still got the same problem from yesterday: when uploading a file with 20 MB i get an error (http://pastebin.com/CGHnSPth). the server is a debian virtual machine running in virtualbox with 1 GB RAM |
# |
Jan 30th 2014, 11:00 |
mini-me |
lol |
# |
Jan 30th 2014, 11:00 |
mini-me |
why does php use a "$"?.. I'm in the uk... surley £variable = 'test'; would work just as well?! |
# |
Jan 30th 2014, 10:59 |
mini-me |
hmmm, so i'd have to hardcode all the helpers in cakephp and check it against $this->helpers |
# |
Jan 30th 2014, 10:59 |
arnis |
check $this->helpers maybe |
# |
Jan 30th 2014, 10:58 |
mini-me |
how it what possible? |
# |
Jan 30th 2014, 10:58 |
mini-me |
and its not really smarty related, (I just mentioned it to give an idea what I'm doing), the question was, is there anyway to check if a helper exists, or is loaded corectly? |