Yii Framework Forum: Handle the data in extension - Yii Framework Forum

Jump to content

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

Handle the data in extension Rate Topic: ***** 1 Votes

#1 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 04 July 2010 - 12:41 PM

Hi to all!

I write the extension for cropping the images. Yes, I no doubt such extension already wrote by someone except me, but I want to create one myself.

Anyway... All code for the client side I have already carry out in extension, but I don't know what to do with the back end. If I create the folder controllers in my extension folder, and put my controller for handle the cropping into one - it doesn't works, because yii couldn't find this controller. Maybe the back end part should be placed not in the controller, but in the extension file directly. But in this case I don't know how to handle it all the more.

Do you guys have any ideas? :)
0

#2 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 04 July 2010 - 08:30 PM

comment deleted
0

#3 User is offline   mech7 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 220
  • Joined: 26-March 09

Posted 04 July 2010 - 09:37 PM

If you have a extension with a controller create a module ;)
0

#4 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 04 July 2010 - 10:50 PM

hmmm ???

Can I place that module in the other module?

For example:
protected/modules/admin/modules/crop

0

#5 User is offline   mech7 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 220
  • Joined: 26-March 09

Posted 04 July 2010 - 11:46 PM

yes you can :) see the docs.. just put

'admin' => array(
'modules'=>array(
'crop',
)),

But only a crop function does not need a entire module i think ;) But a filemanager or / media manager could have some crop function.

If only for cropping you are probably better of making an image helper.
0

#6 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 05 July 2010 - 02:24 PM

This extension just include the Jcrop plugin, some html and the cropping at the backend. Yes I think you are right about the module, but what is the image helper I really don't know. Could you explain please?
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