1. #21

  2. #22
    Sencha User tjscooper's Avatar
    Join Date
    Jan 2012
    Location
    Guelph, Ontario, Canada
    Posts
    1
    Vote Rating
    0
    tjscooper is on a distinguished road

      0  

    Default Bancha enthusiast!

    Bancha enthusiast!


    Just checking in... I'm really looking forward to some kind of screencast!

    Always best to see/hear it explained in the author's words

  3. #23
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Hey!

    I just updated and extened the documentation. The next two things will be a small 5min screencast and the ability to expose controller methods ;-)

    cheers
    Roland

  4. #24
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    The new release is out!

    Bancha now provides the possibility to expose all controller methods, and has some mayor refactoring in the new build.

    Screencast is comming soon.

    Enjoy!
    Roland

  5. #25
    Sencha User
    Join Date
    Jan 2012
    Posts
    4
    Vote Rating
    0
    klander is on a distinguished road

      0  

    Thumbs up New Release

    New Release


    Great Stuff with the new release.. though me being a noob, ive run into a few issues..
    • I have a Model 'User', but Bancha seems to be trying to get UserController->view instead of UsersController->view
    • Uncaught Ext.Error: Bancha: Tried to call User.read(...), but the server-side has not implemented UserController->view or index(...) ext-all-dev.js:8712
    changing it from Bancha.onModelReady('User') to Bancha.onModelReady('Users') seems to make it go away.

    also, my app is hosted in a sub-dir, and not the webroot. ive changed all the paths accordingly but i get the following error:It needs to pull in http://localhost/bancha/bancha.php instead. I cant seem to find where I can set this?

    Thanks much!

  6. #26
    Sencha User
    Join Date
    Jan 2012
    Posts
    4
    Vote Rating
    0
    klander is on a distinguished road

      0  

    Question further

    further


    OK So i reverted to Bancha.onModelReady('User'), and created an http redirect from http://localhost/bancha.php to http://localhost/bancha/bancha.php, but Now i get the following error:
    • el is null

      --> if (el.insertAdjacentHTML) { ext-all-dev.js (line 11856)


    "You're trying to decode an invalid JSON String":
    sourceClass "Ext.JSON"
    sourceMethod "decode"

  7. #27
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Hi!

    Quote Originally Posted by klander View Post
    • I have a Model 'User', but Bancha seems to be trying to get UserController->view instead of UsersController->view
    We are using the standard ext and cake conventions. So the cake model name is singular, the controller name plural with "Controller" suffix.
    In our example implementation we also have a user model, the model name is "User", the controller "UsersController", the ExtJS model name "User".
    The error must be somewhere else.

    Quote Originally Posted by klander View Post
    • Uncaught Ext.Error: Bancha: Tried to call User.read(...), but the server-side has not implemented UserController->view or index(...) ext-all-dev.js:8712
    Ok, so here the error message is wrong, it should be in plural.. but the dispatcher is definitely looking for UsersController!

    Quote Originally Posted by klander View Post
    changing it from Bancha.onModelReady('User') to Bancha.onModelReady('Users') seems to make it go away.
    Is your cake model really singular!? It should look something like this:
    https://github.com/Bancha/BanchaTest...Model/User.php
    Please always use Bancha.onModelReady('User',callback);


    Quote Originally Posted by klander View Post
    also, my app is hosted in a sub-dir, and not the webroot. ive changed all the paths accordingly but i get the following error
    This was actually an error, please try this controller and tell me if it is working now:
    https://github.com/rolandschuetz/Ban...Controller.php


    Quote Originally Posted by klander View Post
    OK So i reverted to Bancha.onModelReady('User'), and created an http redirect from http://localhost/bancha.php to http://localhost/bancha/bancha.php, but Now i get the following error:
    • el is null

      --> if (el.insertAdjacentHTML) { ext-all-dev.js (line 11856)

    "You're trying to decode an invalid JSON String":
    sourceClass "Ext.JSON"
    sourceMethod "decode"
    Is it somewhere online so I can test it? Otherwise, can you please post the value of /bancha/bancha-api.js and of the last xhr, which created the error.

    best regards
    Roland

  8. #28
    Sencha User
    Join Date
    Jan 2012
    Posts
    4
    Vote Rating
    0
    klander is on a distinguished road

      0  

    Wink bancha

    bancha


    Hi Ronald,

    Thanks for the pointers!

    So using the revised BanchaController.php, It gives me an "You're trying to decode an invalid JSON String:" when loading the page. So it does not load the grid panel. However, it appears to be receiving the JSON data as you can see here in my browser error log: http://pastebin.com/gRgMm59p

    I
    dont seem to have a /bancha/bancha-api.js anywhere in my app. Could this be the problem?

    Here are the contents of my Bancha.js: http://pastebin.com/QmsHdmbt
    sample.js: http://pastebin.com/cWnEnfSy


    Best,
    Klander

  9. #29
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Hi!

    Now I'm seeing where the problem is. My colleague forgot to push his last changes.... sry
    Please just place this new file inside your webroot:
    https://github.com/Bancha/Bancha/blo...oot/bancha.php

    bancha-api.js is created from our plugin, so you can only see it inside your browser, not in the file system ;-)

    best regards
    Roland

  10. #30
    Sencha User
    Join Date
    Jan 2012
    Posts
    4
    Vote Rating
    0
    klander is on a distinguished road

      0  

    Red face :)

    :)


    Hey!

    So it works now

    A minor thing is it tries to pull http://localhost/img/icons/delete.png even though ive set it to icon: '/bancha/img/icons/delete.png' in bancha/app/webroot/js/Bancha.js. I was not able to find this setting in any other file so i got around it temporarily by coping the /img/ directory to my DocumentRoot.

    Otherwise all CRUD functions work perfectly now

    Thanks again for your help! I'm really looking forward to seeing this project mature. Big fan!

    Cheers!

    Klander

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi