Re: Full support for PHP 5.3

2010-08-24 Thread Zippoxer
I heard CakePHP 2.0 will support PHP 5.2 and up.. So it means it won't use the new features I mentioned :\ On Aug 24, 10:29 pm, "j.blotus" wrote: > in cakephp version 2 > > version 1 will be the last to support php4 > > On Aug 24, 2:13 pm, Zippoxer wrote: >

Full support for PHP 5.3

2010-08-24 Thread Zippoxer
PHP 5.3 has lots of new features like namespaces, annonymous functions... And performance is much better than old versions. Can you see CakePHP supporting PHP 5.3 in the near future? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Re: Function in the controller that will be executed before any action is executed.

2010-08-19 Thread Zippoxer
Yeah but will I have a connection to the database in beforeFIlter()? On Aug 19, 9:05 pm, Jeremy Burns | Class Outfit wrote: > What, you mean like beforeFilter()? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 19 Aug 2010,

Function in the controller that will be executed before any action is executed.

2010-08-19 Thread Zippoxer
Let's say I have a little game that when you're sleeping, you lose access to a specific controller. But this controller has like 7 actions and I don't want to write the "if($this->is_sleeping()) return;" code in each action. So I need to create a function in the controller that will run before any

Re: Strange problem with form helper...

2010-08-17 Thread Zippoxer
Okay it works, the problem was that I wrote: print_r($this->data) in an action instead of in beforeFilter()... On Aug 17, 7:57 pm, Zippoxer wrote: > Tried more tons of things, nothing works... :\ > > On Aug 17, 2:47 pm, Zippoxer wrote: > > > > > Still the same. &g

Re: Strange problem with form helper...

2010-08-17 Thread Zippoxer
Tried more tons of things, nothing works... :\ On Aug 17, 2:47 pm, Zippoxer wrote: > Still the same. > After submiting the login form with test_username/test_password, here > is print_r($this->data): > Array ( [Player] => Array ( [name] => test_username [password] => ) )

Re: Strange problem with form helper...

2010-08-17 Thread Zippoxer
the same (with 'password' field). On Aug 17, 2:08 pm, Brendan Farquharson wrote: > Try enabling 'Session' component as well in your app_controller.php > > On 17 August 2010 12:01, Zippoxer wrote: > > > > > No that's not the problem. The Auth component

Re: Strange problem with form helper...

2010-08-17 Thread Zippoxer
No that's not the problem. The Auth component is enabled. Please what's the problem? I'm waiting two days and can't keep working with CakePHP... On Aug 16, 9:37 pm, Zippoxer wrote: > Ohh, I think that's the problem. It looks enabled, but when I don't > all

Re: Strange problem with form helper...

2010-08-16 Thread Zippoxer
t; 'name', 'password' => 'password' ); } } On Aug 16, 9:13 pm, Miles J wrote: > Do you have the Auth component enabled? > > On Aug 16, 2:04 am, Zippoxer wrote: > > > > > This is the form code in the view:

Re: Strange problem with form helper...

2010-08-16 Thread Zippoxer
That's how my app_controller.php begins: class AppController extends Controller { var $components = array('Auth'); On Aug 16, 9:13 pm, Miles J wrote: > Do you have the Auth component enabled? > > On Aug 16, 2:04 am, Zippoxer wrote: > > > >

Re: Strange problem with form helper...

2010-08-16 Thread Zippoxer
x27;); ?> And in the controller I just do: print_r($this->data); Then I see an array with the username and password, but the password is always empty. On Aug 16, 6:16 am, Sam wrote: > We need more info... can you paste your view, and perhaps your > controller action? > > On

Strange problem with form helper...

2010-08-15 Thread Zippoxer
I've created a simple authentication form with username and password input fields. The problem is that the password is always empty through $this->data in the controller, but username is not empty. What's the problem? Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Any browser game powered by CakePHP?

2010-08-09 Thread Zippoxer
t; Regards, > Miro > > On 8 Sie, 16:44, Zippoxer wrote: > > > > > I'm trying to create a browser game for few months already. A big > > journey between the languages made me understand that PHP is the best > > choice for creating very dynamic systems (like

Any browser game powered by CakePHP?

2010-08-08 Thread Zippoxer
I'm trying to create a browser game for few months already. A big journey between the languages made me understand that PHP is the best choice for creating very dynamic systems (like a browser game). One of the best browser games ever is powered by Symfony, this game called eRepublik. But Symfony i

Re: Creating more global controller like AppController.

2010-08-04 Thread Zippoxer
if that is what you are trying to > do) would use GamesComponent. > > On Aug 4, 1:16 pm, Zippoxer wrote: > > > > > How can I create another controller called "GameController" and put it > > to be global? > > (so all another controllers can extend th

Creating more global controller like AppController.

2010-08-04 Thread Zippoxer
How can I create another controller called "GameController" and put it to be global? (so all another controllers can extend this) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed