Yii Framework Forum: Theming And Organizing Directories (Discussion) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Theming And Organizing Directories (Discussion) Theming and Organizing directories (Discussion) Rate Topic: -----

#1 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 19 October 2012 - 08:39 AM

I had posted this topic in Miscellaneous by the request of Yii mamber fouss to discuss wiki article Organize directories for applications with front-end and back-end using WebApplicationEnd behavior as he has some question/doubt
Thanks,
Kiran Sharma.
1

#2 User is offline   fouss 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 385
  • Joined: 05-October 10
  • Location:Bamako Mali

Posted 25 October 2012 - 03:59 AM

View Postkiran sharma, on 19 October 2012 - 08:54 AM, said:

waiting for fouss's comment... .. .


I just wanted to say that the way kiskp and hnam descried to create a theme is not like a standard yii theming.
Because if you make like they said it simply move you protected/view folder to theme folder and all your view file should be in this theme folder... that is not a theme.
Do you see what I mean?
Posted Image
0

#3 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 25 October 2012 - 07:33 AM

No fouss,
what they said is just like theming, as kiskp said that are only view files as you can see.
the controller and model files/folder will not change, if you want to use any theme you had to change in config file like 'theme'=>'classic' or 'theme'=>'mytheme' ...
Thanks,
Kiran Sharma.
0

#4 User is offline   fouss 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 385
  • Joined: 05-October 10
  • Location:Bamako Mali

Posted 25 October 2012 - 08:55 AM

View Postkiran sharma, on 25 October 2012 - 07:33 AM, said:

No fouss,
what they said is just like theming, as kiskp said that are only view files as you can see.
the controller and model files/folder will not change, if you want to use any theme you had to change in config file like 'theme'=>'classic' or 'theme'=>'mytheme' ...


You're right about saying "it's like theming" but it is not.
So is there a way to make real theming using this directory organisation?
Posted Image
0

#5 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 25 October 2012 - 09:03 AM

in most of systems we had same structure as different theme folders ( e.g wordpress ) generally on root folder ...

and what is real theming???

Please share if you had better idea...
Thanks,
Kiran Sharma.
0

#6 User is offline   fouss 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 385
  • Joined: 05-October 10
  • Location:Bamako Mali

Posted 25 October 2012 - 09:11 AM

View Postkiran sharma, on 25 October 2012 - 09:03 AM, said:

in most of systems we had same structure as different theme folders ( e.g wordpress ) generally on root folder ...

and what is real theming???

Please share if you had better idea...


When I say "real theming" I mean the way it is made with yii as usual.
Posted Image
0

#7 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 25 October 2012 - 09:24 AM

Yes i got what you want to say,
but i m just saying that plz share if you had any other structure/idea to make theming better
or
plz share why you think to change/update current structure... ..
Thanks,
Kiran Sharma.
0

#8 User is offline   Sebastian K. 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 29-May 11

Posted 22 November 2012 - 07:53 AM

Hi!

Two questions:

1. Did anyone combine this with the rights extension? How do you guys handle identical controller names on different endpoints, but different right access rules?
2. How do you create urls between endpoints? For example a link from back to front?

BR
Sebastian
0

#9 User is offline   eeerlend 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 20-January 13
  • Location:Bergen, Norway

Posted 20 January 2013 - 01:08 PM

Hi!

Thanks for a great article. I'm new to Yii, and have successfully set up a separation between backend/front following your article.

I have one problem.

When I link to internal pages by setting controller/action, they all igonre the backend/-part of the url.

Can I set this up in back.php (config), so that every url generated in backend, routes to backend/controller/action?

If I go to url backend/controller/action, I get correct view, but when links are generated, they are wrong.

No problems when creating the menu, since I just add "backend" to the link, but when I use CGridView (ie), there are a lot of autogenerated urls.

Hope someone can help:) Thanks!
0

#10 User is offline   eeerlend 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 20-January 13
  • Location:Bergen, Norway

Posted 20 January 2013 - 01:26 PM

Hi!

Just got it to work. Had to move the front-routing from main.php to front.php.

My bad:)

View Posteeerlend, on 20 January 2013 - 01:08 PM, said:

Hi!

Thanks for a great article. I'm new to Yii, and have successfully set up a separation between backend/front following your article.

I have one problem.

When I link to internal pages by setting controller/action, they all igonre the backend/-part of the url.

Can I set this up in back.php (config), so that every url generated in backend, routes to backend/controller/action?

If I go to url backend/controller/action, I get correct view, but when links are generated, they are wrong.

No problems when creating the menu, since I just add "backend" to the link, but when I use CGridView (ie), there are a lot of autogenerated urls.

Hope someone can help:) Thanks!

0

#11 User is offline   YiibieJeebi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 15-April 13

Posted 15 April 2013 - 04:21 PM

There a couple of comments on the wiki about problems with urls in the backend but no solution. Everything seems to work until I add the lines to the back configuration file.

'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'backend'=>'site/index',
'backend/<_c>'=>'<_c>',
'backend/<_c>/<_a>'=>'<_c>/<_a>',
),
),
Results in the error Property &quot;CWebApplication.urlManager&quot; is read only.

Any way to fix this?
0

#12 User is offline   avtonom 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-May 11

Posted 24 June 2013 - 05:23 PM

faced with two problems when sharing BackEndController (www.yiiframework.com/wiki/63) and

yii-user-management:

1. I can not close the class RegistrationController extends YumRegistrationController

(github.com/thyseus/yii-user-management/blob/master/user/docs/registration.txt#L42)

2. not connected layout when entering the user/user/admin

(github.com/thyseus/yii-user-management/blob/master/user/docs/install_tutorial.txt#L119)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users