HABTM View Question

2010-01-22 Thread bradmaxs
Having trouble getting all of my tables info in my view. I am trying to get both portfoios and powerdbies table info in there. Right now I can sucessfully get my portfolio info in there like this: portfolios_controller: function currentprojects() { $Portfolio = $this-paginate('Portfolio',

Re: HABTM View Question

2010-01-22 Thread Amit Rawat
hello use this ?php foreach($Portfolio as $Portfolio): ? div class=boxgrid captionfull img src=../img/?php echo $Portfolio['Portfolio']['img']; ? width=190 height=152 / div class=cover boxcaption h2a href=http://www.?php echo $Portfolio['Portfolio']['url']; ? target=_blank?php echo

Re: View question

2007-08-10 Thread Geoff Ford
Suppress the error message generated by input() with $form-input('Project.proj_start', array('div'=false,'id'='ProjectProjStart','label'=false,'size'=15,'type'='text', 'error' = false)); Then add the error after the image with $form- error(Project.proj_start); Geoff --

Re: View question

2007-08-09 Thread pbland
Is anyone displaying an image or some text after an input field in a view? And what happens if there's an error for this input field? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

View question

2007-08-08 Thread pbland
I'm using 1.2 and I'm wondering how to fix a minor issue I have. I have a form with a date field and after the input box I'm displaying a calendar image that when clicked displays a date picker. This all works, but if I leave the field blank and hit submit I get the This field cannot be left