Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[FIXED] Won't run in sandbox (model missing) 03 Sep 2012 11:18 #3361

Hi,

I am trying to run my application in the sandbox and it won't run. I get a blank screen when I try to access the site side and I do not see any view from the admin side.

I tried to download and install my application on my development site, but I get the same results there. It seems that cook does not build appropriately the sql script. The script is missing one or more "create table" statements.

Thanks,

José

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:08 #3376

Anyone has got a similar problem?

I have three applications in cook, the other 2 do appear in the sandbox. Any idea on what could be the problem?

Thanks,

José

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:17 #3377

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you tried to flush the dataset ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 16:42 #3379

Yes, I did try flushing the dataset. But I still get that blank screen when I try to go to the site side.

José

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:02 #3380

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Wich project ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:09 #3381

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, I got it.

Downloaded, checked PHP errors, ...

Your table 'groupes' is not saved.

Good catch, I definitifly need a validator that controls if the tables are saved before to generate.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Won't run in sandbox (wrong sql script) 04 Sep 2012 17:51 #3382

Wow you are pretty good. I had more than one unsaved tables. I never really paid attention to it. It does show the site side now.

Thanks,

José

Please Log in or Create an account to join the conversation.

No save nor new function generated 04 Sep 2012 18:53 #3383

Hi again,

Don't know if I should open a new topic, but as it may be related to the previous problem, I will post here.

There is no code generated for the "New" nor for the "Save" functions neither in the controllers nor in the view.html.php files even if the buttons appear in cook.

I tried :
  1. Removing the buttons and reinserting them in the toolbar
  2. Removing the toolbar from the layout and reinserting it
  3. Deleting and rebuilding the view
without success.

So I downloaded the component and looked through the code. The functions save() and new() do not exist.

Have you seen this before?

Thanks again

Please Log in or Create an account to join the conversation.

Re: No save nor new function generated 06 Sep 2012 10:16 #3389

Is anyone facing a similar issue?

Even if the tasks ("Save" and "New") are present in the toolbar, the code is not generated neither in the view.html.php file nor in the controller. Only the code for tasks "Delete" and "Cancel" is generated.

This is true for every view (or table in Cook). Here is a list of the generated functions in all of my controllers (there is 9 controllers in my component):
  • function __construct($config = array())
  • function display( )
  • function delete()
  • function cancel()
  • function publish()
  • function unpublish()
  • function orderup()
  • function orderdown()
  • function saveorder()

Is this a know symptom?

Do I have to begin my project over again?

Thanks,

José

Please Log in or Create an account to join the conversation.

Re: No save nor new function generated 06 Sep 2012 10:24 #3391

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Please give me some time to solve this.

V2.0 is on the corner, I have to finish it.
It will solve all this because almost 100% rewritted.

After that, for those who wants to stay on 1.5 for a while, I will have a look on this issue.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: No save nor new function generated 24 Sep 2012 13:28 #3950

Hello admin,

I tried to generate my project with the version 2, but I get the same forms, without the possibility of adding any record. There is only one button available: Delete.

Why is that?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started