Re: Whats up with prototype and Cake 1.2?
You can add an app_controller.php file to your app directory and add the helpers there. ?php class AppController extends Controller { var $helpers = array('Html', 'Javascript'); ? Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Whats up with prototype and Cake 1.2?
Do you have the Javascript helper on whatever controller you're using? Ed Drain wrote: I get the following error: Line 31 is the one with the javascript-link part. Whats wrong with this? *Notice* (8) javascript:void(0);: Undefined variable: javascript [*CORE\cake\libs\view\layouts\default.ctp*, line *31*] Code javascript:void(0); | Context javascript:void(0); $___viewFn= C:\wamp\www\gradebook\cake\libs\view\layouts\default.ctp $___dataForView = array( page = home, subpage = null, title_for_layout = Home, content_for_layout = h2Release Notes for CakePHP 1.2.0.7296 RC2./h2 a href=https://trac.cakephp.org/wiki/notes/1.2.x.x;Read the release notes and get the latest version /a p span class=notice successYour tmp directory is writable./span/p p span class=notice successThe emFileEngine/em is being used for caching. To change the config edit APP/config/core.php /span/p p span class=notice successYour database configuration file is present./span/p p span class=notice successCake is able to connect to the database./span/p h3Editing this Page/h3 p To change the content of this page, edit: APP/views/pages/home.ctp.br / To change its layout, edit: APP/views/layouts/default.ctp.br / You can also add some CSS styles for your pages at: APP/webroot/css./p h3Getting Started/h3 p a href=http://book.cakephp.org;strongnew/strong CakePHP 1.2 Docs/a a href=http://book.cakephp.org/view/219/the-cakephp-blog-tutorial;The 15 min Blog Tutorial/abr / /p h3More about Cake/h3 p CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC./p p Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility./p br / ul lia href=http://www.cakefoundation.org/;Cake Software Foundation /a ulliPromoting development related to CakePHP/li/ul/li lia href=http://live.cakephp.org;The Show /a ulliThe Show is a weekly live internet radio broadcast where we discuss CakePHP-related topics and answer questions live via IRC, Skype, and telephone./li/ul/li lia href=http://bakery.cakephp.org;The Bakery /a ulliEverything CakePHP/li/ul/li lia href=http://astore.amazon.com/cakesoftwaref-20/;Book Store /a ulliRecommended Software Books/li/ul/li lia href=http://www.cafepress.com/cakefoundation;CakeSchwag /a ulliGet your own CakePHP gear - Doughnate to Cake/li/ul/li lia href=http://www.cakephp.org;CakePHP /a ulliThe Rapid Development Framework/li/ul/li lia href=http://manual.cakephp.org;CakePHP Manual /a ulliYour Rapid Development Cookbook/li/ul/li lia href=http://api.cakephp.org;CakePHP API /a ulliDocblock Your Best Friend/li/ul/li lia href=http://www.cakeforge.org;CakeForge /a ulliOpen Development for CakePHP/li/ul/li lia href=https://trac.cakephp.org/;CakePHP Trac /a ulliFor the Development of CakePHP (Tickets, SVN browser, Roadmap, Changelogs)/li/ul/li lia href=http://groups-beta.google.com/group/cake-php;CakePHP Google Group /a ulliCommunity mailing list/li/ul/li lia href=irc://irc.freenode.net/cakephp http://irc.freenode.net/cakephpirc.freenode.net http://irc.freenode.net #cakephp/a ulliLive chat about CakePHP/li/ul/li /ul, scripts_for_layout = , cakeDebug = , html = HtmlHelper HtmlHelper::$tags = array HtmlHelper::$base = /gradebook HtmlHelper::$here = /gradebook/ HtmlHelper::$params = array HtmlHelper::$action = display HtmlHelper::$data = NULL HtmlHelper::$_crumbs = array HtmlHelper::$__docTypes = array HtmlHelper::$helpers = NULL HtmlHelper::$webroot = /gradebook/ HtmlHelper::$themeWeb = NULL HtmlHelper::$plugin = NULL HtmlHelper::$namedArgs = NULL HtmlHelper::$argSeparator = NULL HtmlHelper::$validationErrors = NULL HtmlHelper::$__tainted = NULL HtmlHelper::$__cleaned = NULL HtmlHelper::$_log = NULL, form = FormHelper FormHelper::$helpers = array FormHelper::$fieldset = array FormHelper::$__options = array FormHelper::$fields = array FormHelper::$requestType = NULL FormHelper::$base = /gradebook FormHelper::$webroot = /gradebook/ FormHelper::$themeWeb = NULL FormHelper::$here = /gradebook/ FormHelper::$params = array FormHelper::$action = display FormHelper::$plugin = NULL FormHelper::$data = NULL FormHelper::$namedArgs = NULL FormHelper::$argSeparator = NULL FormHelper::$validationErrors = NULL FormHelper::$tags = array FormHelper::$__tainted = NULL FormHelper::$__cleaned = NULL FormHelper::$_log = NULL FormHelper::$Html = HtmlHelper object, session = SessionHelper SessionHelper::$helpers = NULL SessionHelper::$__active = true
Re: Whats up with prototype and Cake 1.2?
Is it correct to put the Javascript helper in page_controllers.php? It seems that's the only way to get the helper loaded and available to home.ctp and default.ctp layout. On Nov 7, 10:24 am, Bernardo Vieira [EMAIL PROTECTED] wrote: Do you have the Javascript helper on whatever controller you're using? Ed Drain wrote: I get the following error: Line 31 is the one with the javascript-link part. Whats wrong with this? *Notice* (8) javascript:void(0);: Undefined variable: javascript [*CORE\cake\libs\view\layouts\default.ctp*, line *31*] Code javascript:void(0); | Context javascript:void(0); $___viewFn = C:\wamp\www\gradebook\cake\libs\view\layouts\default.ctp $___dataForView = array( page = home, subpage = null, title_for_layout = Home, content_for_layout = h2Release Notes for CakePHP 1.2.0.7296 RC2./h2 a href=https://trac.cakephp.org/wiki/notes/1.2.x.x;Read the release notes and get the latest version /a p span class=notice successYour tmp directory is writable./span/p p span class=notice successThe emFileEngine/em is being used for caching. To change the config edit APP/config/core.php /span/p p span class=notice successYour database configuration file is present./span/p p span class=notice successCake is able to connect to the database./span/p h3Editing this Page/h3 p To change the content of this page, edit: APP/views/pages/home.ctp.br / To change its layout, edit: APP/views/layouts/default.ctp.br / You can also add some CSS styles for your pages at: APP/webroot/css./p h3Getting Started/h3 p a href=http://book.cakephp.org;strongnew/strong CakePHP 1.2 Docs/a a href=http://book.cakephp.org/view/219/the-cakephp-blog-tutorial;The 15 min Blog Tutorial/abr / /p h3More about Cake/h3 p CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC./p p Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility./p br / ul lia href=http://www.cakefoundation.org/;Cake Software Foundation /a ulliPromoting development related to CakePHP/li/ul/li lia href=http://live.cakephp.org;The Show /a ulliThe Show is a weekly live internet radio broadcast where we discuss CakePHP-related topics and answer questions live via IRC, Skype, and telephone./li/ul/li lia href=http://bakery.cakephp.org;The Bakery /a ulliEverything CakePHP/li/ul/li lia href=http://astore.amazon.com/cakesoftwaref-20/;Book Store /a ulliRecommended Software Books/li/ul/li lia href=http://www.cafepress.com/cakefoundation;CakeSchwag /a ulliGet your own CakePHP gear - Doughnate to Cake/li/ul/li lia href=http://www.cakephp.org;CakePHP /a ulliThe Rapid Development Framework/li/ul/li lia href=http://manual.cakephp.org;CakePHP Manual /a ulliYour Rapid Development Cookbook/li/ul/li lia href=http://api.cakephp.org;CakePHP API /a ulliDocblock Your Best Friend/li/ul/li lia href=http://www.cakeforge.org;CakeForge /a ulliOpen Development for CakePHP/li/ul/li lia href=https://trac.cakephp.org/;CakePHP Trac /a ulliFor the Development of CakePHP (Tickets, SVN browser, Roadmap, Changelogs)/li/ul/li lia href=http://groups-beta.google.com/group/cake-php;CakePHP Google Group /a ulliCommunity mailing list/li/ul/li lia href=irc://irc.freenode.net/cakephp http://irc.freenode.net/cakephpirc.freenode.net http://irc.freenode.net #cakephp/a ulliLive chat about CakePHP/li/ul/li /ul, scripts_for_layout = , cakeDebug = , html = HtmlHelper HtmlHelper::$tags = array HtmlHelper::$base = /gradebook HtmlHelper::$here = /gradebook/ HtmlHelper::$params = array HtmlHelper::$action = display HtmlHelper::$data = NULL HtmlHelper::$_crumbs = array HtmlHelper::$__docTypes = array HtmlHelper::$helpers = NULL HtmlHelper::$webroot = /gradebook/ HtmlHelper::$themeWeb = NULL HtmlHelper::$plugin = NULL HtmlHelper::$namedArgs = NULL HtmlHelper::$argSeparator = NULL HtmlHelper::$validationErrors = NULL HtmlHelper::$__tainted = NULL HtmlHelper::$__cleaned = NULL HtmlHelper::$_log = NULL, form = FormHelper FormHelper::$helpers = array FormHelper::$fieldset = array FormHelper::$__options = array FormHelper::$fields = array FormHelper::$requestType = NULL FormHelper::$base = /gradebook FormHelper::$webroot = /gradebook/ FormHelper::$themeWeb = NULL FormHelper::$here = /gradebook/ FormHelper::$params = array FormHelper::$action = display FormHelper::$plugin = NULL FormHelper::$data = NULL FormHelper::$namedArgs = NULL FormHelper::$argSeparator = NULL FormHelper::$validationErrors = NULL FormHelper::$tags = array