[Flow] How to set the default package in flow3 framework?
Siva
sivaprasad at pitsolutions.com
Mon Sep 29 08:24:56 CEST 2014
HI All,
Ok that was pretty straight forward !!!
In order to set your custom package as default package just change the Routes.yaml file add these lines on top of it. -
<pre>
`name: 'Welcome screen'
uriPattern: '' //Set the URL Pattern as empty to load the custom package as index.
defaults:
'@package': 'TYPO3.Index'
'@controller': 'coffeebean'
'@action': 'index'
'@format': 'html'
-
name: 'Welcome screen'
uriPattern: 'testproject/new'
defaults:
'@package': 'TYPO3.Index'
'@controller': 'coffeebean'
'@action': 'new'
'@format': 'html'`
</pre>
On Monday, September 29, 2014 11:17 AM, Siva <sivaprasad at pitsolutions.com> wrote:
HI All,
I am new to Flow3 . I have successfully managed to install
the flow3 2.2 version and I have managed to implement a custom package
as well. But thing is, I am unable to change the default package from
Typo3.Welcome to my custom package.
Steps I performed
./flow package:deactivate TYPO3.Welcome
Changed Routes.yaml files
- name: 'Welcome screen' uriPattern: 'testproject/index' defaults: '@package': 'TYPO3.Index' '@controller': 'coffeebean' '@action': 'index' '@format': 'html' - name: 'Welcome screen' uriPattern: 'testproject/new' defaults: '@package': 'TYPO3.Index' '@controller': 'coffeebean' '@action': 'new' '@format': 'html'
But still when try to access http://tutorial.local/ from my local machine it is pointing to Typo3.Flow . Can any one please tell me how can override this ?
Any help would be appreciated .
Best regards,
Sivaprasad S
Lead Software Engineer
PIT Solutions Pvt. Ltd.
L7 & L8, Floor (-1), Thejaswini, Technopark
Thiruvananthapuram, Kerala, India, PIN 695 581
Tel: +91 (0) 471 270 0615 / 0715 / 0915, Extn -2044
Fax: +91 (0) 471 252 7117
Mob: +91 (0) 934 909 3089
Web: www.pitsolutions.com
Blog: http://blog.pitsolutions.com
Disclaimer:This message is intended only for the individual or entity to which it is addressed.It may contain privileged, confidential information which is exempted from disclosure under applicable laws.If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.If you have received this communication in error, please notify us immediately by return email.Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company.Finally, the recipient should check this email and any attachments for the presence of viruses.The company accepts noliability for any damage caused by any virus transmitted by this email.
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list