--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/wfvieQvaOhMJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
So, thank you for reporting this bug in the example-code and keep up your courage: if you made it 'till nr. 14, you've accomplished quite a lot.
Cheers,
Herman
If you are cleaning up you might notice some deprecated raiseErrors and I am curious about how you replace them. Personally I was just going to use PHP trigger_error instead of throwing exceptions "manually".
BTW: if you have any suggestions of where to change the tutoprial, they are very welcome. You have just been playing around with it, so I bet you came across several things others would overlook. It is also very easy to contribute to the Wiki: just create an account (top right) and go ahead.
<section name="category"><action name="core.create" title="JACTION_CREATE" description="COM_CATEGORIES_ACCESS_CREATE_DESC" /><action name="core.delete" title="JACTION_DELETE" description="COM_CATEGORIES_ACCESS_DELETE_DESC" /><action name="core.edit" title="JACTION_EDIT" description="COM_CATEGORIES_ACCESS_EDIT_DESC" /><action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_CATEGORIES_ACCESS_EDITSTATE_DESC" /><action name="core.edit.own" title="JACTION_EDITOWN" description="COM_CATEGORIES_ACCESS_EDITOWN_DESC" /></section>
<?php echo $this->form->getLabel('rules'); ?><?php echo $this->form->getInput('rules'); ?>
<fieldset name="rules" label="COM_HELLOWORLD_FIELDSET_RULES"><field name="rules" type="rules" label="JFIELD_RULES_LABEL"translate_label="false" class="inputbox" filter="rules" component="com_helloworld"section="message" validate="rules" /></fieldset>
Are you saying the #_helloworld table is incomplete? There is no asset_id (or access for that mater) column in the table.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/aysez86P4nQJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
I am sorry asset_id is necessary if you wish to implement item level ACL.
The need for asset_id is pretty well documented in general, it is the key element of acl.
If you don't want to use categories you need to apply the patch for JAccess that has been applied to the platform and you could also read the related items on the platform list and this list.
ALTER TABLE`#__helloworld` ADD COLUMN `catid` int(11) NOT NULL DEFAULT '0';
<fieldset name="accesscontrol"><field name="asset_id" type="hidden" filter="unset" />
<field name="rules"type="rules"label="JFIELD_RULES_LABEL"translate_label="false"
filter="rules"validate="rules"class="inputbox"component="com_helloworld"section="message"/></fieldset>
<section name="category"><action name="core.create" title="JACTION_CREATE" description="COM_CATEGORIES_ACCESS_CREATE_DESC" /><action name="core.delete" title="JACTION_DELETE" description="COM_CATEGORIES_ACCESS_DELETE_DESC" /><action name="core.edit" title="JACTION_EDIT" description="COM_CATEGORIES_ACCESS_EDIT_DESC" /><action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_CATEGORIES_ACCESS_EDITSTATE_DESC" /><action name="core.edit.own" title="JACTION_EDITOWN" description="COM_CATEGORIES_ACCESS_EDITOWN_DESC" /></section>
public function display($tpl = null){// Assign the Data$this->form = $this->get('Form');$this->item = $this->get('Item');$this->script = $this->get('Script');$this->canDo = HelloWorldHelper::getActions($this->item->id);...
I have done this tutorial up to part 14: http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!2.5_-_Part_14Adding ACL to the Helloworld view fails because the class HelloWorldViewHelloWorld (extends JView) does not have the method 'canDo' defined. The application exits when trying to add or edit a message and gives an undefined method notice and then fatal undefined property of that method as the view calls the get method: 'if ($this->canDo->get('core.admin')):' and so on ( in the admin/views/tmpl/edit.php file, line 59)The tutorial is massive compared to my skill level so I have no idea where the class acquires this method. I think it it supposed to pick it up automagically, but I pretty much feel like I am stumbling around in the dark at the moment. While this is certainly one way to learn, I would prefer if someone in the know took a look.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/0hsrIyHp0vAJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Thanks Herman! That tutorial is really turning into a great collaborative document.
Herman I am going to have sometime next weekend if you want to compare notes. We can set up a time and meet up on Skype.
How do you pronounce your name? For we don't have a å in our alphabeth...
I don't quite understand the role of categories in all this. I don't suppose anyone could explain to me exactly why the com_helloworld would fail without it?
See Elin's posting on https://groups.google.com/forum/?fromgroups#!topic/joomla-dev-platform/1IZPG3Vfyvc
Maybe she can explain some more about what the problem exactly is. And maybe explain something about the changes that have been made in the platform for that. That could save some looking-up time. All links to discussions and code welcome.
As said: we'll get that clear this week.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/Qn4pqyAYlHIJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
Maybe she can explain some more about what the problem exactly is. And maybe explain something about the changes that have been made in the platform for that. That could save some looking-up time. All links to discussions and code welcome.
I don't quite understand the role of categories in all this. I don't suppose anyone could explain to me exactly why the com_helloworld would fail without it?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/Ccpdykj_FTAJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.