Friday, June 22, 2012

Re: getting javascript helpers missing error.

Yeah then in your articles controller, you should use helper as Js.Also in index.php you should change $Javascript to $this->Js

On Fri, Jun 22, 2012 at 11:12 AM, shamsuddin mohammed <mdshamsuddin.mca@gmail.com> wrote:
yes i am using cakephp2. what should i do? shall i write Js inside of javascript.


with Regards,

       SHAMSUDDIN MOHD
                                            MCA
                                    Hyderabad
Cell: +91- 9642955952, 8985188330




On Fri, Jun 22, 2012 at 2:38 PM, Raj Dudi <rajender120@gmail.com> wrote:
What is the version of cakephp ? cakephp 2 do not have javascript helper. cakephp2 has Js helper

On Friday, 22 June 2012 11:00:40 UTC+2, shamsuddin mohammed wrote:
i have written a controller ArticlesController.php with the following code


<?php
class ArticlesController extends AppController {
var $uses=null;
var $name = 'Articles';
var $helpers = array('Html','Form','Javascript');

 function index() {

          $this->set('page_heading', 'Jquery Tab');      

       }

}
?>

is it the right or not. if not how to include.


with Regards,

       SHAMSUDDIN MOHD
                                            MCA
                                    Hyderabad
Cell: +91- 9642955952, 8985188330




On Fri, Jun 22, 2012 at 1:54 PM, Raj Dudi <rajender120@gmail.com> wrote:
Also to include the Javascript library, you can use
echo $html->script("jquery);

On Friday, 22 June 2012 10:22:27 UTC+2, Raj Dudi wrote:
Hello,

Which version of cakephp are you using ? If you are using cakephp2, then javascript helper is no more there and you should use Js helper.
Also in your controller, you need to include these helpers. Your error indicates that you have not included the Js helper.

// In controller
public helpers = array('Js');




On Friday, 22 June 2012 08:22:31 UTC+2, shamsuddin mohammed wrote:
i have downloaded jqueryui from the site and pasted javascript files in js folder and css files in css folder next i have created a folder called "article" in View and their i created index.php with the following code.

<?php
$javascript->link('jquery-ui-1.8.21.custom.min.js', false);
$javascript->link('jquery.ui.tabs.js', false);
?>
<link rel="stylesheet" href="<?php //echo $this->webroot . 'css/'; ?>/jquery-ui-1.8.21.custom.css" type="text/css" media="screen" />

 <script type="text/javascript">
           $(function() {
               $("#tabs").tabs();
           });
    </script>

<div id="tabs" class="ui-tabs-nav">

    <ul>
        <li><a href="#tabs-1">tabs-1</a></li>
        <li><a href="#tabs-2">tabs-2</a></li>
        <li><a href="#tabs-3">tabs-3</a></li>
    </ul>
    <div id="tabs-1">

        <p>Tab 1. This is demo text. This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.</p>
    </div>
    <div id="tabs-2">
        <p>Tab 2. This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.</p>
    </div>
    <div id="tabs-3">

        <p>Tab 3.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.This is demo text.</p>
    </div>
</div>


when i run this i am getting the following error:

Missing Helper

Error: JavascriptHelper could not be found.

Error: Create the class JavascriptHelper below in file: app\View\Helper\JavascriptHelper.php

<?php  class JavascriptHelper extends AppHelper {    }  

Notice: If you want to customize this error message, create app\View\Errors\missing_helper.ctp

Stack Trace


what i have to do. please tell me.


On Thursday, 21 June 2012 18:37:43 UTC+5:30, Raj Dudi wrote:
@Shamsuddin : Posting a tutorial is not possible....please specify, what you have done and where you are getting problem

On Thursday, 21 June 2012 06:53:39 UTC+2, shamsuddin mohammed wrote:
hi all  i am new to cakephp, i am getting an error while using jqueryui tabs. could any one please tell me how to use jqueryui tabs in cakephp.




Thanks in advance.
--shamsuddin

--
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
cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate