Welcome Guest, Not a member yet? Register   Sign In
Planning a rejuvination of CodeExtinguisher...interested?
#21

[eluser]got 2 doodle[/eluser]
Ya thanks, I was looking at it last night.

doodle
#22

[eluser]dippy[/eluser]
for some reason when i try and make my own definition file using the .yml format i get this error:


Quote:A PHP Error was encountered

Severity: Notice

Message: Uninitialized string offset: 0

Filename: libraries/codexforms.php

Line Number: 53
A PHP Error was encountered

Severity: Notice

Message: Uninitialized string offset: 0

Filename: libraries/codexforms.php

Line Number: 55
An Error Was Encountered

Could not find proper plugin.


here is my code:
Code:
city:
    class: TextBox
state:
    class: TextBox


But when i copy and paste from the example .yml code and change the name of the fields it works fine?? i don't know why i can't get it working with my own typing?? they look identical to me...

I tried using 3 different editors (Zend PHP, Notepad2, Regular Notepad)

here is the working .yml code:


Code:
city:
                class: TextBox
        state:
                class: TextBox


Any ideas why i cant get it working with my own typing?
#23

[eluser]Majd Taby[/eluser]
The only thing I can say about that is, make sure you use spaces instead of tabs. spyc is a pretty weak library and I don't plan on using it anymore.
#24

[eluser]dippy[/eluser]
Ahhhh yes. i was using the tab.

spaces work.

Thanks
#25

[eluser]dippy[/eluser]
how do i make a dropdown show the option that is in the database field. but i want to have 2 options.

for example.

approved
disapproved

this is what i have in the definition:

Code:
status:
    class: DropDown
    params:
        list:
           1:approved
           2:disapproved

and i have the default value disapproved set in the database.

this is what i get when i look at all the records:

Code:
A PHP Error was encountered
Severity: Notice

Message: Undefined index: disapproved

Filename: plugins/dropdown.php

Line Number: 13

and under that status field i am trying to use the dropdown with shows this:


Code:
A PHP Error was encountered
Severity: Notice

Message: Undefined index: status

Filename: view_modes/table.php

Line Number: 88


when i click to edit the user it shows the corrct dropdown with no errors. but the default value set in the database does not show up.


i tried to use a dbdropdown but it only shows whats in that field.

i just want to have a dropdown with the approved, disapproved and have it set in the dropdown when the correct option is set. if i set disapproved it sets it in the db fine but when i edit the user approved shows up

any ideas??
#26

[eluser]got 2 doodle[/eluser]
This is the YAML that allows the user to select one of eight zones on a page where the data will show up.
Code:
location:
                class: DropDown
                params:
                    list:
                        cc_main: Center Column Main
                        cc_news: Center Column News
                        cc_tag: Center Column Tag
                        lc_main: Left Column Main
                        lc_tag: Left Column Tag
                        rc_main: Right Column Main
                        rc_tag: Right Colunm Tag
                        misc:Miscellaneous
                value: cc_main
The field name is location and the default location is cc_main, "Center Column Main" is the text that shows up in the dropdown control.

Hope this helps.
doodle
#27

[eluser]dippy[/eluser]
thank you very much.
#28

[eluser]jaswinder_rana[/eluser]
Are you still looking for some PHP developers?
Thanks
#29

[eluser]got 2 doodle[/eluser]
Hey Jtaby,
Still there?

I've been working a lot lately with CodeExtinguisher and I am really starting to understand it.

I learned that you can save a lot of time by avoiding YAML like the plague. I know about the spaces and the formatting but sometimes it just doesn't seem to work. Although the PHP controller option is slightly more difficult to define the form_setup array ultimately PHP gives you more control and options. Some things I tried with ManyToMany for example just would not work in YAML but works like a charm with PHP controller.

I modified the image plugin so that it will resize the uploaded file and then watermark the file if desired, in addition to the default create thumbnail functionality. The controller that calls the image library pulls default watermark string, image sizes etc from a table so that when I want to do a similar web app (I seem to be doing a lot of sites for artists) I can change preferences globally.

I created my own backend layout file and I have configured permissions and navigation based on user levels. By giving my customer restricted access levels I can have a backend that is more difficult to break.

So much can be done with this application but I think a lot of folks who used it were just happy to have an auto-crud system and that is how it has been percieved.

Anyway, I am hoping that you are still interested in moving the app forward and although I think your coding skills are way beyond mine, I might be able to help.

You can PM me if you think I can help

Keep us posted!
doodle
#30

[eluser]got 2 doodle[/eluser]
Hey Jtaby, I got your pm but your mailbox was full so I couldn't reply but I'm interested.




Theme © iAndrew 2016 - Forum software by © MyBB