Joomla 3 - Uploading components - php

I will be building a component that allows me to override the user registration page. The question is, when I try to upload the custom component upon finishing the task, where does Joomla place the uploaded component? Will it be at the current templates folder(templates/mytemplate/html/) or in the components folder (root/components)?

If you are creating a new component you have to define the path of your files in the xml installation package.
All component files are placed at components/*component_name/ folder.
If you just want to make a template override of an existing component you have to copy the file that will be overriden from:
components/*component_name/views/*view_category/tmpl/*tmpl_name.php
to:
templates/*template_name/html/*component_name/*view_category/*tmpl_name.php.
Hope this helps

Related

PrestaShop 1.7 override src file in own module

I create own module and I want to override some file so in views folder I create folder PrestaShop and in it I add complete path to file like Admin/Catalog/Product/List/somefile.php and this override works, but when I want override file from src folder there is nothing happend. For example I want to override file public_html/src/Adapter/Product/PriceCalculator.php so in my module I have public_html/modules/mycustommodule/views/PrestaShop/src/Adapter/Product/PriceCalculator.php and this is not work. There is any possibility to override those files?
I think that is not possible to override this folder, you can't overrides of other things than classes/controllers/modules with /override/ directory is not available anymore.
You can reed informations about that in their post : planned to ovverride

Can't find protected folder in Yii2 Basic Package

I'm new to Yii2 and I was wondering where the protected/config/main.php sitting? Is web.php the main config file?
Respect to yii1 the (in part) configuration is in
basic\config\web.php
and part is in
basic\config\db.php
There is also an advanced template where you have frontend and backend application soon available with proper separated config area ..

Sylius: Change design of Sylius front end

I am new to Symfony as well as Sylius. Can anyone guide me how can I change design of Sylius front end. I want to use the Kuteshop template in it?
I want to change the front end UI of the Sylius project.
What I did is:
I copied my css, js, images etc files in web directory in a separate folder with name template (template/asstes/css/, template/assets/js/ and so on). Then I created a folder app/resources/SyliusWebBundle/Views/frontend/Homepage and also I created a file app/resources/SyliusWebBundle/Views/frontend/layout.html.twig. I defined the assets and other components but no result.
My template assets was not showing up, also I was not getting any information in it.
Does it help to get some solution to me?
Thanks so much.
The path must be app/Resources/SyliusWebBundle/views/Frontend/Homepage

Which file of those files install a Joomla templates?

I'm trying to install new free Joomla template called gk_magazine. In the download page, I found three links to three zip files for Joomla 3.x:
gk_magazine_rest_files_J!3.zip
gk_magazine_quickstart_J!3.zip
gk_magazine_J!3.zip
I downloaded the three files to my computer and I tried to install them one by one in the following order:
gk_magazine_J!3.zip: it is installed correctly and Gk_magazine template becomes listed in the template manager and it has been set as default as the screen shot shows.
gk_magazine_quickstart_J!3.zip: it is installed correctly too, but there is no any additional items appeared in the template manager.
gk_magazine_rest_files_J!3.zip: It does not installed - Warning JInstaller: :Install: Cannot find XML setup file
I saw similar situations with other Joomla templates and I need to know what are the rules of each file described above in the installation of the new templates? are all of them are important? or just the first file only?
From the file structure you can tell what it is!
gk_magazine_rest_files_J!3.zip:
This one is as the name says it 'rest files' means: plugins, notes for a module and a few photoshop images (*.psd)
gk_magazine_quickstart_J!3.zip:
This one is a Joomla Site with the gk_magazine_J!3.zip Template which you can find in the folder templates
gk_magazine_J!3.zip:
This one is a template
EDIT:
Also what's Joomla Site with gk_magazine template mean too?
It means that this is a basic Joomla site which you can copy into your server root folder (e.g. htdocs on XAMPP)
You can see the templates in the templates folder here:
beeze3, protostar and system are some Joomla standard templates which are all in a new basic Joomla site. There also beeze5 or beeze20 as an example, but these are not automatically included in the basic Joomla site

How to configure internal url's content on Symfony

I am new to Symfony and I am trying to understand how a Symfony project works. Right now I am trying to change the content of an internal url. For example, in the layout.php file, I can put a sentence like:
Suecia
This works fine, when I press 'Suecia' "Button" it changes the content, and it adds viajesDeusto/new to the url. My question is, where can I change the content that the "viajesDeusto/new' url displays?
Thanks a lot
If you split the url in your url_for() function it breaks out to MODULE/ACTION
So go into your app (%SF_ROOT_DIR%/apps/%APP_NAME%)
inside that folder you have a modules folder
inside that you have the module name
inside that you have an actions folder and a templates folder
the actions folder is where your code to retrieve/process data resides
the templates folder is where the presentation code resides
For instance, if your app is called frontend the location of the code is:
%SF_ROOT_DIR%/apps/frontend/modules/viajesDeusto/actions
%SF_ROOT_DIR%/apps/frontend/modules/viajesDeusto/templates
This is the standard setup for syfony 1.x apps

Categories