Bok, Ja sam iz Varaždina, HR pa nemoramo ne engleškom :) Javi ako zapne. Pozdrav!
2009/4/3 stain <stai...@gmail.com> > Thanks for reply > Must be some typo there, it was 2 am here in Belgrade when i worked on > that, must have been too tired to notice error, anyway my fix was (and i > think i'll keep to that in future) makig a plugin, so i can have my specific > code isolated and as far as i know there should be no performance hits when > using plugins, but like thousadns and thousands times before someone will > prove me wrong on that :) > > Cheers, > Miroslav > > > > On Fri, Apr 3, 2009 at 10:51 AM, majna <majna...@gmail.com> wrote: > >> Hi, >> You can paste me code, I can check... >> You have tipo or so. All classes in Cake can be extended. It is still OOP >> in PHP. >> There is very little things that you can not do because of cake fw. >> BR, >> majna >> >> 2009/4/2 stain <stai...@gmail.com> >> >> >>> @majna Sorry i accidently emailed you my post >>> >>> I have a similar problem, i need to create some base controller but >>> only for a number of controller , not a general application-wise like >>> AppController but something like SomeBaseControler that contains >>> methods and custom before filter() >>> so i tried to make it work but without success >>> 1. i just put SomeSpecificController extends SomeBaseController and >>> got the error that class SomeBaseController cannot be found.... >>> >>> 2 i tried to add App::import('Controller', 'SomeBase'); but also got >>> fatal error Call to undefined method stdClass::find() and notice of >>> course Undefined property: stdClass::$alias [CORE\cake\libs\controller >>> \controller.php, line 952] >>> >>> btw SomeBaseController extends AppController, i tried to put it in app/ >>> controllers folder , in app folder..all the same >>> >>> so my question is : Is there a way to make it work as i intended or >>> should i stick with AppController >>> >>> >>> On Mar 25, 2:44 pm, majna <majna...@gmail.com> wrote: >>> > You can create admin folder inside controllers folder: >>> > controllers/admin. Cake will find it. >>> > >>> > You canextendcontrollerwith admincontrollerlike this. >>> > >>> > controllers/users_controller.php: >>> > class UsersController extends AppController >>> > { >>> > >>> > } >>> > >>> > controllers/admin_users_controller.php: >>> > App::import('Controller', 'Users'); >>> > class AdminUsersController extends UsersController >>> > { >>> > >>> > } >>> > >>> > Consider using cake Admin routing feature. >>> http://book.cakephp.org/view/544/Prefix-Routing >>> > >>> > You can use additional MVC path as described in config/bootstrap.php >>> > to regroup files in folders >>> > >>> > On Mar 25, 2:33 am, Graham Weldon <gra...@grahamweldon.com> wrote: >>> > >>> > > The only reasnon I can think you would want to so this is to either >>> > > group functionality or to make your URL's look pretty. >>> > >>> > > In the case you at trying to group functionality, look into creating >>> >>> > > plugins for your controllers. >>> > >>> > > If you are simply trying to control URL presentation, then you need >>> to >>> > > look into routing. >>> > >>> > > Cheers >>> > > Graham >>> > >>> > > On 25/03/2009, at 12:21 PM, Ranju <hello.ra...@gmail.com> wrote: >>> > >>> > > > Hello >>> > >>> > > > I want to create subcontrollerlike create admin panel.within >>> > > >controllerfolder create admin folder then create admincontroller. >>> > > > which type possible this. >>> > >>> > > > thanks >>> > >>> > >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---