Log message #1109706

# At Username Text
# Oct 22nd 2009, 09:13 NoReGreT thanks
# Oct 22nd 2009, 09:13 Phally NoReGreT: here is the concept: http://thechaw.com/bakery/wiki/spec/users/Group_permissions
# Oct 22nd 2009, 09:13 jcrawford see this comment cake_newbie http://us2.php.net/manual/en/language.oop5.decon.php#94003
# Oct 22nd 2009, 09:12 jcrawford yes to make it work in php 4 you need to create a method with the same name as the class and have that call the __construct method. It is what you have to do in order to make applications backwards compatable with php 4
# Oct 22nd 2009, 09:12 Phally NoReGreT: yeah, you wish :p
# Oct 22nd 2009, 09:12 NoReGreT Phally: let me take a peak at your awesome code :)
# Oct 22nd 2009, 09:11 Phally NoReGreT: i pull out my awesome reusable code and make it happen :)
# Oct 22nd 2009, 09:11 jcrawford cake_newbie: well yea __construct will not work in php 4 as it was introduced in php 5
# Oct 22nd 2009, 09:11 NoReGreT Phally: what you do if you have 3 groups and each group has certain permissions/things to do ?
# Oct 22nd 2009, 09:08 cake_newbie this makes to work php4
# Oct 22nd 2009, 09:08 cake_newbie }
# Oct 22nd 2009, 09:08 cake_newbie $this->__construct();
# Oct 22nd 2009, 09:08 cake_newbie function DATABASE_CONFIG() {
# Oct 22nd 2009, 09:08 cake_newbie found a solution :)
# Oct 22nd 2009, 09:01 cake_newbie __constructor doesnt works
# Oct 22nd 2009, 09:00 cake_newbie i use __construct
# Oct 22nd 2009, 09:00 Phally isn't it the other way around?
# Oct 22nd 2009, 08:58 jcrawford __constructor is what should work
# Oct 22nd 2009, 08:58 jcrawford cake_newbie do you have __construct or __constructor?
# Oct 22nd 2009, 08:57 cake_newbie PhpNut: but it does not works
# Oct 22nd 2009, 08:56 Horror maybe with some hacks to pagination or over-riding it would do
# Oct 22nd 2009, 08:55 Horror yeah - i'm trying to figure it out
# Oct 22nd 2009, 08:55 jcrawford Horror still no resolution eh? When you do find out please let me know I don't have the need currently but when I do it would be nice to know how :D
# Oct 22nd 2009, 08:54 Horror need a little help on combining 2 models into pagination - they have no assoications with each other
# Oct 22nd 2009, 08:54 PhpNut cake_newbie __constructor in cake should work php 4 or 5
# Oct 22nd 2009, 08:45 cake_newbie thanks anyway :)
# Oct 22nd 2009, 08:45 markstory at least the same major version.
# Oct 22nd 2009, 08:45 markstory cake_newbie: you are in for a world of pain.
# Oct 22nd 2009, 08:44 Phally NoReGreT: you need prefix routing
# Oct 22nd 2009, 08:44 NoReGreT Phally: ah.. I thought i could create _several_ admin routes...
# Oct 22nd 2009, 08:43 Phally NoReGreT: duh, the second overwrites the first..
# Oct 22nd 2009, 08:41 cake_newbie i'm fucked up :) function _construct() works for php5
# Oct 22nd 2009, 08:40 liaogz82 that is what i need! thanks
# Oct 22nd 2009, 08:40 NoReGreT I have configured admin routing as so: http://pastebin.ca/1637217 but i can't seem to go to /admin/users , it's treating admin as a controller and complaning thta it doesn't exist.
# Oct 22nd 2009, 08:39 liaogz82 oic elements!
# Oct 22nd 2009, 08:38 cake_newbie localhost PHP Version 5.2.8
# Oct 22nd 2009, 08:38 cake_newbie server PHP Version 4.3.9
# Oct 22nd 2009, 08:37 cake_newbie ok, it works for me on localhost, but then i upload it to web it shows this error
# Oct 22nd 2009, 08:36 cake_newbie cake
# Oct 22nd 2009, 08:36 TehTreag cake_newbie: For php?
# Oct 22nd 2009, 08:35 cake_newbie 1.2.5