Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina
Hi Wayne After I made my last post I could see that the changes probably should be made in the view.ctp file. I put in the code you sugested, (I'm 99.9% sure I did it correctly) but the job listings pages come up completely blank. Is it becuase the syntax (is that what you call it?) has a

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay
This is unfortunately something you will have to solve yourself, or with the assistance of a local PHP expert. Perhaps you can find a decent PHP IDE/editor that will highlight mistakes. Or you could try right-clicking and view source on the HTML to see the error. Or check the logs of your

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina
Oh wow, I seemed to of corrected it to make it work, it seems to work fine now with the following adjusted on the first line: ?php if ($job['Job']['information_doc'] != null) { ? ?php echo $html-image('pdf-icon.gif', array('alt'='', 'style'='vertical-align: bottom; margin-right: 5px')) ??php

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay
Good to hear you made it work. As for the healthy code bit, I don't like the ?php ... ? all over the place personally, but if it works, this is simply an issue of style preference. This would be my preference: ?php if ($job['Job']['information_doc'] != null) { echo

Re: Check out this CakePHP Job Board - Small Problem

2008-09-07 Thread kujina
Wayne, I just worked out how to remove not null in the information_doc entry in the DB, so that you dont have to attach a file. But as I said previously I dont really know any thing about cakephp/ php. How can I make the Information download link only appear if there is a file uploaded for it,

Re: Check out this CakePHP Job Board - Small Problem

2008-09-07 Thread Wayne Fay
Yes, you would alter the view.ctp file. Something along these lines... Wayne AND THE FOLLOWING IS THE view.ctp FILE fieldset legendApplication Pack/legend ?php if ({$job['Job']['application_form_doc] != null) { ? ?php echo $html-image('pdf-icon.gif', array('alt'='',

Re: Check out this CakePHP Job Board - Small Problem

2008-09-04 Thread kujina
Ok' I'll donate to the project. The school job board is nearly useable now! The last thing I need to do is make it so the Information download in the application pack section only apears if you upload a file for it. If I get the jobs_controller.php and view.ctp available (or the relevant code)

Re: Check out this CakePHP Job Board - Small Problem

2008-09-04 Thread Wayne Fay
I would have a db entry that indicates if Information (and the other PDF files) has been uploaded with a true/false indicator stored in the db. Then you simply show or hide the link depending on the indicator. This should be super simple for you to implement. Wayne On Thu, Sep 4, 2008 at 8:20

Re: Check out this CakePHP Job Board - Small Problem

2008-09-02 Thread kujina
The $5 goes to AD7six!!! On Sep 2, 12:11 am, AD7six [EMAIL PROTECTED] wrote: On Sep 2, 12:47 am, kujina [EMAIL PROTECTED] wrote: Thanks for the reply. I'm at a losss really, as I didnt put this together and I have no familiarity with cakephp. Can give me more detail? I'll paypal

Re: Check out this CakePHP Job Board - Small Problem

2008-09-02 Thread AD7six
On Sep 2, 1:50 am, kujina [EMAIL PROTECTED] wrote: The $5 goes to AD7six!!! $kujina-donate('http://www.cakephp.org'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread kujina
Please check out my simple job board here: http://82.34.51.7/jobboard My problem is with the Application Pack documents, the url path to the file is not complete! When you click to open a file, this error displays Error: The requested address '/uploads/App-Form_010908-202743.doc' was not found

Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread spub
look at previous posts on routing. You need to either use some rule in .htaccess or add some custome routes. cakephp is expecting to see a controller called uploads.. On Sep 1, 8:36 pm, kujina [EMAIL PROTECTED] wrote: Please check out my simple job board here: http://82.34.51.7/jobboard My

Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread kujina
Thanks for the reply. I'm at a losss really, as I didnt put this together and I have no familiarity with cakephp. Can give me more detail? I'll paypal $5 if somebody can lead me to sorting this ; ) --~--~-~--~~~---~--~~ You received this message because you are

Re: Check out this CakePHP Job Board - Small Problem

2008-09-01 Thread AD7six
On Sep 2, 12:47 am, kujina [EMAIL PROTECTED] wrote: Thanks for the reply. I'm at a losss really, as I didnt put this together and I have no familiarity with cakephp. Can give me more detail? I'll paypal $5 if somebody can lead me to sorting this ; ) move uploads alongside css and js in