Re: Validate fields

2010-01-05 Thread frmdstryr
you set the validation rules in the Model of whatever your using (i'm guessing users model) /app/models/user.php search for cakephp validation in google and look in the cakephp manual, it should be what you need. On Jan 5, 6:53 pm, kicaj wrote: > How validate field only we entered some value int

Make objects from model data

2010-01-05 Thread frmdstryr
When I was learning php classes we made a model object for each type of data we had. Each model would have crud from another class and then model specific functions & attributes. For example i would have: class Person extends Crud { var $first_name; var $last_name; static function getpe

Submitting form though a controller.

2009-12-17 Thread frmdstryr
I have a cake app running and I have installed a site statistics application in my webroot (piwik). I want to be able to make it so when an admin logs in on my site, they can click on a link to the piwik site and it will log in to piwik automatically. When you go to the mysite.com/piwik/ it prompt

Re: How to include a view in another view

2009-12-16 Thread frmdstryr
what you want is the requestAction('controoler/view/to/include') function it grabs the url in requestAction and can be echoed out in a view.ctp On Nov 3, 11:34 pm, abc wrote: > Hi all, > > I have an add.ctp file, which will enable the user to add new entries, > there is another view.ctp file whic