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
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
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
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
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,
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'='',
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)
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
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
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
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
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
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
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
14 matches
Mail list logo