joomla-3.2-hello-world-component's People
Forkers
anywherecreative vjigouline gunjanpatel jitendra-khatri surjit thachieu martinsky albrechtino atulbhujbal kingyond bwmarkle apiceweb mrleira mdzahedhossain weilhart unixsam webenhanced tithira pepperseed bezouwenr msoto77 bankoferenc meghastha majidsalehani chrisadamsonmcri mdefeo58 antonio782 ngovantinh xvelab patricmutwiri ahmadsobri technosid beingsane grantiago michopoivre joomlla-zz marand313 tjazo daizm2000 kosmosby davidmdawson ramtan trinhdung0911 davidedm marczhermo joomi1945 guychauliac rcuvgd nunolopespt yasirunilan rajeshnanda33 bolivar vitali-korezki warriordev mimicat13 michielvanoeffelen boudpain mihajloracic othman1ma hamidionline fredericsalort anghene zulmiraximenes puneeth2001 iamgogo flocurity ayushaipl aarati-parajuli free2win2 james-wilson-21 lancillot72 mohammadravanddevops1234 salahjaafar isabella232 7dirjoomla-3.2-hello-world-component's Issues
Changes to tutorial
Hi, is the repository code still being maintained here? I made some changes on the tutorial pages to step 12 (Adding Categories) and a little fix to step 11 (Verifications), and was wondering if you were wanting to include them here.
I see that there are branches down to step 10 only here, but there are more on the scionescire repo, so I'm wondering if this repository is still in use.
Step 8 - Basic Backend - checkall not working
When in the backend, clicking on the checkbox to 'select all' does nothing.
Reviewing the source of the rendered page it appears that the core.js is not being included which is where the checkAll function resides.
I added the following to the top of the default.php file and it now seems to work as expected:
JHtml::_('behavior.multiselect');
As I am totally new to Joomla and php, I am just taking a shot in the dark here. It would much appreciated if someone could provide feedback
Thanks!
Peter
Pagination needs js to work
There are views using the pagination component:
$this->pagination->getListFooter();
However, in order to work properly they need the pagination JS script.
So, the views need the pagination should always contain
JHtml::_('behavior.formvalidation'); (which is missing).
For example, in the Step 10
https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_backend_actions
admin/views/helloworlds/tmpl/default.php
should contains
JHtml::_('behavior.formvalidation');
just below
defined('_JEXEC') or die('Restricted Access');
thanks
regards
Francesco
Merges PRs #14 to #19
@wilsonge do you have time to go through these too? I have gone through and they all appear to me to be updated and in sync with docs article on MVC.
Many thanks @scionescire! Lot of excellent work on docs and here submitting all the PRs to bring the docs up-to-date and in sync with this repo.
@scionescire I see you have steps 11 to 15 in your fork too. Are those ready too? Thanks again, you are a rock 🌟
Error installing component
after I followed the tutorial that is in "https://docs.joomla.org/J3.x:Developing_a_MVC_Component/Adding_a_view_to_the_site_part" then I tried to upload component in Joomla extension manager, but I have found an error like this "Warning JInstaller: :Install: File does not exist /opt/lampp/htdocs/joomla/tmp/install_5562822d33400/com_helloworld/site/views Component Install: Failed to copy site files."
please help me.
Hello world maybe an unfortunate name for learning purposes?
I remember the times when I was starting learning Joomla. The Hello World tutorial, while partially useful, it always caused confusion because of MVC components which are named like HelloWorldModelHelloWorld
are really bad examples of the naming conventions in Joomla and don't much help to get a better grasp of them.
Maybe when a general revision is to take place, implementing something closer to the real world and real needs would be beneficial for newcomers.
Like: com_company
, CompanyModelEmployee
.
Fatal error while testing tutorial example (step 2)
Hello,
I'm new in Joomla! components developement.
I'm reading your tutorial to create components for Joomla 3.2 at http://docs.joomla.org/J3.2:Developing_a_MVC_Component/Adding_a_view_to_the_site_part
The example for step 2 (Developing a MVC Component/Adding a view to the site part) is not working.
Steps to reproduce :
- install default joomla 3.2.1 release (french version, but irrelevant in my opinion)
- download archive exemple given in tutorial (bottom of the page)
- install it from backend (install is successfull)
- test the component by accessing http://localhost/index.php?option=com_helloworld
Following error is raised :
Fatal error: Call to undefined method JController::getInstance() in \components\com_helloworld\helloworld.php on line 20
Sql error
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL=
when create new package from changed file and try to install that error showed and install can't complete
Having problems with JToolBarHelper::save // ::cancel
Hello, i'm building a component and in the backend im having this problem.
I'm in the part "Developing a MVC Component/Adding backend actions"; at this moment the buttons "edit", "new" and "delete" from the toolbar works well, but when i want to edit a entry "Save & Close" and "Close" are getting a 404 error, "Save & Close" actually writtes the DataBase, there is not problem with it, but in redirection the buttons fail : View not found [name, type, prefix]: diconos, html, diconoView
I have not a diconos view, the change was "helloworld -> dicono" "helloworlds -> diconov" "com_helloword -> com_dicono" there is maybe a clue some "s" from helloworlds that i miss but i can't find where, I checked more than 5 times. Can someone of you guys, guide me to the right place?
Sorry for my english.
publish checkbox in list not working.
Hi,
I´m lerning with this tutorial and I found something I could not find out. In the list in Admin area we add a published
control:
<?php echo JHtml::_('jgrid.published', $row->published, $i, 'helloworlds.', true, 'cb'); ?>
But when I click on that I get the following error:
Call to undefined method HelloWorldModelHelloWorlds::publish()
could it be that you forgot something to mention in step 10? Because you also write as an header:
Adding a model and modifying the existing one
But you are never modifying the existing one.
Installation not work with Joomla 3.4.4
Page: Developing an MVC Component/Adding language management
I have JLIB_INSTALLER_ABORT_COMP_FAIL_ADMIN_FILES error. Installer not allow to write in:
/admin/language
Solution: move languages files to component path.
Edit helloworld.xml form
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade">
<name>COM_HELLOWORLD</name>
...
<files folder="site">
<filename>index.html</filename>
<filename>helloworld.php</filename>
<filename>controller.php</filename>
<folder>views</folder>
<folder>models</folder>
</files>
<languages folder="site/language">
<language tag="en-GB">en-GB/en-GB.com_helloworld.ini</language>
</languages>
<administration>
<menu link='index.php?option=com_helloworld'>COM_HELLOWORLD_MENU</menu>
<files folder="admin">
<filename>index.html</filename>
<filename>helloworld.php</filename>
<filename>controller.php</filename>
<folder>sql</folder>
<folder>tables</folder>
<folder>models</folder>
<folder>views</folder>
<languages folder="admin/language">
<language tag="en-GB">en-GB/en-GB.com_helloworld.ini</language>
<language tag="en-GB">en-GB/en-GB.com_helloworld.sys.ini</language>
</languages>
</files>
</administration>
</extension>
to
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade">
<name>COM_HELLOWORLD</name>
...
<files folder="site">
<filename>index.html</filename>
<filename>helloworld.php</filename>
<filename>controller.php</filename>
<folder>views</folder>
<folder>models</folder>
<folder>language</folder>
</files>
<administration>
<menu link='index.php?option=com_helloworld'>COM_HELLOWORLD_MENU</menu>
<files folder="admin">
<filename>index.html</filename>
<filename>helloworld.php</filename>
<filename>controller.php</filename>
<folder>sql</folder>
<folder>tables</folder>
<folder>models</folder>
<folder>views</folder>
<folder>language</folder>
</files>
</administration>
</extension>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.