Cookbook cookbook cookbook! Did you read any of it? NO! The answers are in the guide to get all the NEWBIES started! It was written so NEWBIES can read it and start with some idea of how to move forward. Want to get $abc to the controller read the book there is a sections dealing with it and other things. It’s a book written on Cake by the guys who develop Cake so odds are it just might have the answer for you. They did not write the guide simply to test the keys on their keyboards. They wrote it so people read it, help, guide, examples....
Is it just me or people do not want to help themselves anymore? Your going to need to atleast try something on your own. HELP BOARD means help with your problem once you have tried to help yourself! Im going to fix a car but no clue how to so can you help me replace the engine. Also I have no tools can you bring yours and do it for me? K From: [email protected] [mailto:[email protected]] On Behalf Of Shashank Sent: Thursday, March 24, 2011 3:13 AM To: [email protected] Subject: Re: Getting Error ("Call to undefined method UsersController::element()") so then tell me one thing... i have a varibale $abc in my controller... How can i get it in my app/views/elements/left.ctp file?? On Thu, Mar 24, 2011 at 11:10 AM, Jeremy Burns | Class Outfit <[email protected]> wrote: Yes, this is a view function. Think of an element as an include that renders data; so it can only be called in a view. A navigation menu or log in panel are good examples. If you want to have common functions that process data and are accessible from many controllers, use a component. Elements, components and behaviours are blocks of code that can be referenced from anywhere with the following limitations: - Elements => views - Components => controllers - Behaviours => models Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 24 Mar 2011, at 05:36, Shashank wrote: i am calling it in my controller why?? Am i doing it wrong?? I am new to cake php so dont have much idea abt this.. On Thu, Mar 24, 2011 at 11:03 AM, Jeremy Burns | Class Outfit <[email protected]> wrote: Are you calling this in a view or in a controller? Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 24 Mar 2011, at 05:31, Shashank wrote: > I am getting this error while using echo $this->element('left', > array("b" => "current"));.... > > Error i am getting is: > > Call to undefined method UsersController::element() > > Can someone tell me wats the issue here is?? > > -- > Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Shashank Singh B.E.(Computer Science) Software Developer +91-9711882054 +91-9560545085 Skype id: shashank.singh87 Email: [email protected] -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Shashank Singh B.E.(Computer Science) Software Developer +91-9711882054 +91-9560545085 Skype id: shashank.singh87 Email: [email protected] -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
