CodeExtinguisher Release Candidate 11 |
[eluser]cre8tive[/eluser]
Also, if you can explain the relationships a little in the yml form. I created a yml form with 3 dbdropdowns, but when it goes back to the table view, it is erroring out. I am assuming I need to create the 3 relationships in the yml file also. This is the error I receive after I add a new record and it goes back to the table view for that area: A PHP Error was encountered Severity: Notice Message: Undefined index: general_information Filename: view_modes/table.php Line Number: 183 My yml file is: Code: rules:
[eluser]Majd Taby[/eluser]
could you edit your last post and wrap the code in [CODE] tags? I can't help you much if I can't see the structure of your file...
[eluser]tylderdurden[/eluser]
[quote author="jTaby" date="1207208772"]tylderdurden, well, before, during, and after a record is edited, an event is triggered. If you would like to do something special, then write your own event. I suggest you check out the Khaos :: Event Manage thread for more information. I don't understand what you mean by the last line, could you expand?[/quote] With the time class, you can use onupdate or oninsert to trigger a value to insert into the db. Just doing through the code of date, it doesn't seem like anything like that exists. Code: A PHP Error was encountered I'm getting this error when clicking "Add New" to a manytomany field. The tables are set up articles -> article_id, article_content categories -> category_id, category_name articles_categories -> id, categories_id, articles_id Code: categories: Ideally, I'd like to use article_id and category_id in the relationship table, but it doesn't seem to work that way?
[eluser]Majd Taby[/eluser]
cre8tive, This YAML code works for me just fine: Code: general_information2:
[eluser]Majd Taby[/eluser]
@tylderdurden, Line 201 of manytomany.php is: $config = $this->config['form_setup']; That line gets executed only if you have a yaml file whose name corresponds to categories.yml If the plugin finds that file, it assumes that you define your custom form there, and attempts to load it. Could you paste the contents of categories.yml here? (in [CODE] tags)
[eluser]tylderdurden[/eluser]
Code: general_information: Also, if I have the follow yml file Code: general_information: and the following categories.php controller Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); The list will show click to edit instead of the category name.
[eluser]Majd Taby[/eluser]
Change to: Code: form_setup:
[eluser]tylderdurden[/eluser]
[quote author="jTaby" date="1207210941"]Change to: Code: form_setup: If I do that, it breaks my categories page.
[eluser]Majd Taby[/eluser]
Does it give you a "A PHP Error was encountered Severity: Notice Message: Undefined index: general_information Filename: view_modes/table.php Line Number: 183" Error?
[eluser]tylderdurden[/eluser]
[quote author="jTaby" date="1207211336"]Does it give you a "A PHP Error was encountered Severity: Notice Message: Undefined index: general_information Filename: view_modes/table.php Line Number: 183" Error?[/quote] using the yml file you provided and the controller I have above, it generates this error: Code: A PHP Error was encountered I should also mention that the javascript doesn't work quite right (on the manytomany on the articles page) - if you click add after filling out the forms, it just adds another form to the page. |
Welcome Guest, Not a member yet? Register Sign In |