Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher Release Candidate 11
#41

[eluser]Majd Taby[/eluser]
try
Code:
display_fields:
    -category_name
form_setup:
    general_information:
        class: FieldSet
        params:
            form:
                category_name:
                    class: TextBox
                category_id:
                    class: TextBox

There seems to be a bug when the only plugin is a fieldset...

If that doesn't fix it, then finally, try

Code:
form_setup:
     category_name:
         class: TextBox
     category_id:
         class: TextBox
#42

[eluser]tylderdurden[/eluser]
[quote author="jTaby" date="1207211545"]try
Code:
display_fields:
    -category_name
form_setup:
    general_information:
        class: FieldSet
        params:
            form:
                category_name:
                    class: TextBox
                category_id:
                    class: TextBox

There seems to be a bug when the only plugin is a fieldset...[/quote]
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined index: class

Filename: libraries/codexforms.php

Line Number: 55

Gives that error.
#43

[eluser]Majd Taby[/eluser]
I just updated my preview post...but are we on the same page? You created a categories table, and you created a categories.yml file...correct? And you're getting the errors when you try to access the categories page...
#44

[eluser]tylderdurden[/eluser]
[quote author="jTaby" date="1207211856"]I just updated my preview post...but are we on the same page? You created a categories table, and you created a categories.yml file...correct? And you're getting the errors when you try to access the categories page...[/quote]

I also have a categories.php controller (see a couple of posts back).
#45

[eluser]cre8tive[/eluser]
[quote author="jTaby" date="1207210418"]cre8tive, This YAML code works for me just fine:

Code:
general_information2:
    class: FieldSet
    params:
        form:
            sessiondata_test:
[/quote]

Sorry for not being more clear. The code works and adds records. The dbdropdowns all work. What does not work is when it goes back to the table view. Each record in the table view shows

Code:
A PHP Error was encountered
Severity: Notice

Message: Undefined index: general_information

Filename: view_modes/table.php

Line Number: 183

Click to edit
A PHP Error was encountered
Severity: Notice

Message: Undefined index: general_information

Filename: view_modes/table.php

Line Number: 183
It is showing it twice as there are two records in the database.
#46

[eluser]tylderdurden[/eluser]
How do we restrict user access to certain forms/info? I tried using the access_levels.php using $config['controller_name'] = access level as per the manual, but it doesn't seem to work?

IE.. I have

$config['articles'] = 0;

On another note, the file and image upload plugins force you to upload to a single dir. Now, on line 12 of the file.php plugin, I can see that the upload path is passed through params. Is it possible to create the upload path based on what is selected in another field?

I see it's possible to set a delete confirmation message - but how do we trigger that?
#47

[eluser]James Pax[/eluser]
[quote author="jTaby" date="1207073932"]Off the top of my head:

- Refactored code (lots of code in codex has been around for months and needs to be updated)
- Interface Builder (A GUI which allows you to drag/drop to create and manage your pages
- A Settings page (To manage the config.php file
- Reworked permissions system (Allowing user groups, more fine-grained access control)
- Ability to setup CRUDS based on models (which allows you to setup callbacks)
- Rewored Docs
- ReBuilt Site
- Add RSS, and Public API support (So that if you make your codex setup public, you can let your users easily plug into it.[/quote]

OMFG! lol... this person is really golike... :gulp:
#48

[eluser]Majd Taby[/eluser]
Haha well with the CodeExtinguisher base a lot of that work is already done
#49

[eluser]cre8tive[/eluser]
This product is actually very good and has tons of work already implemented.

It is great for an admin panel or user control panel and also for rapid prototyping for new clients. At our firm, I have anywhere between 75-100 projects going concurrent and stuff like this really makes it efficient to work out your ideas.

That being said, the only things really missing from the list above are:
Docs
Permission systems (i haven't explored the current one but i will take jTaby's word)
CRUD based on models

You can do alot with this system. It just takes some digging into the code and figuring things out.

jTaby - One thing that might help is several simple examples.
1. Some example yml forms with every option available in the yml syntax
2. Some simple examples involving relationships and implementing those
3. Some examples of calling external events
4. Example of Filtering capability on crud model

Good work!
#50

[eluser]andjules[/eluser]
Quote:Ability to setup CRUDS based on models (which allows you to setup callbacks)
I'm not sure I understand the concept of how it's different than the current iteration... do you mean without having to do .yml definitions of db tables? and how does that affect callbacks? (maybe I'm in over my head...)




Theme © iAndrew 2016 - Forum software by © MyBB