Sylius: Change design of Sylius front end - php

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

Related

Combining downloaded html template with php laravel

Pls Honourables I need help, I am new to laravel. I am done with setting up the laravel environment and having done some basic routing. I have this template which I downloaded with it files(css,js etc) the issue is I am not certain on which folder I should put it in order to access its css and js file aside from predefined laravel styles and bootstrap. Pls help me
You should put this to your resources directory, and use Laravel Mix to copy it to the public directory. Put this code in the webpack.mix.js file:
mix.copyDirectory('resources/template', 'public/template');
If you are not using Laravel Mix, then you can put it into the public directory.
For more info, follow this link,

How to set up references between twig file and assets files(CSS, Js) in Silex?

Before I start I want to say that I am new to working with this framework and some of its features I do not fully understand.
So, I have the following structure:
Desired assets folder location:
web
assets
css
file.css
Current twig views location:
src
App
views
file.html.twig
So the "web" and "src" are on the same level. Now how can I link the CSS for the "file.html.twig"? I also read the Silex cookbook (http://silex.sensiolabs.org/doc/cookbook/assets.html) but I don't quite understand where do I have to write every step presented there. Thank you.
The app.request.basepath is a link the base path of your application, e.g. the public (accessible) php file where you instanciate and run you Silex application.
Mine is an index.php in /web, so writing {{ app.request.basepath }}/assets/css/file.css is OK and leads to 'web/assets/css/file.css', but my guess is thaht you did not put your main index.php file in /web directory (maybe in a sub-directory). You should check that first.
I'm quite new to Silex as well so you should take my words with caution, but taking a look at it doesn't cost anything after all ;)

Bypass Symfony framework to display folder content

First of all. I haven't got any knowledge about Symfony. I just have to do a few modifications to an existing site quick and dirty. Now here is the case.
I need to "bypass" the Symfony framework to access static content in a folder e.g. (domain.com/folder).
This folder contains index.html and all the needed images, css, js etc. It also contains sub pages like (domain.com/folder/sub.html, domain.com/folder/sub2.html etc.). These sub pages are accessible thourgh domain.com/folder/index.html.
How can I do this?
SOLVED: (by user3749178)
Put you folder under /web. And a note for anyone else -> you also have to reference the file name.
domain.com/folder/ -> does not work
domain.com/folder/index.php -> works
Put you folder under /web. Everything what is in your /web directory is visible via http.

magento 1.9 signup form

I have been cracking my head about this for two days on. I inherited some magento 1.9 Multi vendor website and just need to bolden some text on the customer create account field. I have searched every where in my template directory Customer/form/register.phtml and Persitent/form/register.phtml yet I am not successfully able to identify the line that prints
'wants to become a vendor?'
Here is a link to the form please.
http://store.min-trade.com/index.php/customer/account/create/
Could someone point me in the right direction. I pretty much understand the project structure of Magento I do believe. Please help!
Are you sure you are looking in the correct template folder?
You are using the rwd/default template, so have a look here;
app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml
If there isn't a file called register.phtml in that location, then Magento will fall back to the base folder, so try;
app/design/frontend/base/default/template/persistent/customer/form/register.phtml
If you still cannot find the text, it could be a custom login form using another template. Login to your server with ssh/putty and run this command;
grep -nr 'Wants to become a Vendor?' /path/to/magento/*
Just make sure you set the correct path.
You can easily check by enabling path hints from magento admin.
If you dont know how to enable file path hint then refer this link enter link description here
second thing that if you have installed any vendor extension then register form will be displayed from that module.
You can also install this path hint module for check file.

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