Re: hasMany question

2008-01-26 Thread WebSpin.Biz
Did you even attempt to READ the manual section on findAll parameters before posting this?? Or the API? Go back to manual, do not pass go.. do not collect $200. Model Methods, Retrieving your data: http://tempdocs.cakephp.org/#TOC66452 On Jan 26, 1:12 am, bob [EMAIL PROTECTED] wrote: i

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread WebSpin.Biz
a client just wants to get away with placeholder tags in the view like {{field:contactname}} and is very demanding about it. WebSpin.biz On Jan 24, 10:24 am, hydra12 [EMAIL PROTECTED] wrote: I'll have to agree. I confess that, when I first started using cake, I hated using php in my views. I had

Re: variables in views

2008-01-23 Thread WebSpin.Biz
Have you tried: foreach ($user['Place'] as $place); ?php echo $place['name']; ? what are your model associations like? On Jan 23, 2:43 am, mcphisto [EMAIL PROTECTED] wrote: maybe this is a stupid question, but I don't understand a thing. I've a table of users (columns: id, name), one of

Re: How to setting the field type of a condition statement?

2008-01-23 Thread WebSpin.Biz
Try 'Post.added' =-!CURRENT_DATE or 'Post.added' =-!SYS_DATE The -! symbol tells cake 1.2 to not try to parse the oracle function in the condition as a string. Raphael Spindell http://www.webspin.biz On Jan 22, 10:45 pm, Chris [EMAIL PROTECTED] wrote: I am using CakePHP 1.2

Re: regarding thtml variables

2008-01-23 Thread WebSpin.Biz
First, you'll have to load the helper into your controller (has to be a really good reason why you would want to do this) App::import('Helper', 'HtmlHelper'); Then, make sure AUTO_OUTPUT is set to false in your core config file (/app/config/core.php), then, capture the output of the helper, and

Re: How do I add a helper to an element

2008-01-07 Thread WebSpin.Biz
I've been trying for a few hours to sort this thing out but I can't make one of my helpers accessible to the element. try within the element: loadHelper('Html'); $Html = new HtmlHelper(); --~--~-~--~~~---~--~~ You received this message because you are