Log message #3149874

# At Username Text
# 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?
# Jan 30th 2014, 10:58 arnis how is that possible?
# Jan 30th 2014, 10:58 arnis lol
# Jan 30th 2014, 10:57 mini-me since some loser decided to use smarty with cakephp 1.3, now I have to deal with this crap
# Jan 30th 2014, 10:57 arnis mini-me: since when this is a smarty channel? :-)
# Jan 30th 2014, 10:54 mini-me so how can I check if a helper exists? (or was loaded correctly)
# Jan 30th 2014, 10:53 mini-me but I need to test if a helper exists before loading it, else it throws a blank page error (instead of me throwing an exception telling me whats wrong),
# Jan 30th 2014, 10:53 mini-me I'm using smarty and trying to construct my helper methods, so I can use "{$form->create()}" (for example)
# Jan 30th 2014, 10:52 mini-me is there anyway to check if a helper exists?
# Jan 30th 2014, 10:39 Vikky i got pissed off in sending mails
# Jan 30th 2014, 10:39 Vikky ok let me try this again
# Jan 30th 2014, 10:38 Neon1024 If you are using find('first') it will, yes, as it will only return a single user, rather than a collection of users
# Jan 30th 2014, 10:38 Vikky and in new_lead.ctp will it work $user['User']['username']
# Jan 30th 2014, 10:37 Neon1024 Then perhaps your user is not logged in, the AuthComponent not loaded properly, or the component is not attached to the correct controller
# Jan 30th 2014, 10:36 Neon1024 $this->User->find('first', array('conditions' => array('id' => $this->Auth->user('id'))))
# Jan 30th 2014, 10:36 Vikky i did this but was not able to get the current user
# Jan 30th 2014, 10:36 Neon1024 If the user is logged in using the AuthComponent you can get the user id from there
# Jan 30th 2014, 10:36 Vikky how to point to current user
# Jan 30th 2014, 10:35 Neon1024 If you are just after a single user just do find('first')
# Jan 30th 2014, 10:35 Vikky ?
# Jan 30th 2014, 10:35 Vikky so what should i do/
# Jan 30th 2014, 10:35 Neon1024 findAll returns a numerically indexed array
# Jan 30th 2014, 10:35 Neon1024 Vikky: This is because you are using a findAll and then trying to access a single user
# Jan 30th 2014, 10:26 Vikky any help http://bin.cakephp.org/view/1143653424