Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Posts posted by spiderwell

  1. i run wamp on my laptop, and have just started an attempt at an MVC styled website, and had got myself to a point were I was ready to run a test page with a simple view page showing my $_GET array just to test it all worked.

    I was for the first time using buffering like this, which was in a class called via the page:

    <?php
                    ob_start();
    	require_once('../ph-admin/views/sample.php');
    	$txtDisplay = ob_get_contents();
    	ob_end_clean();
    ?>
    

     

    I then echoed $txtDisplay in the page to show the final out put of sample.php. all it would do though was show the actual php code in sample and in the main page.

    3 days of endless jigging around and hairpulling I finally worked out it was because those 2 bits of scripts had short tags and my dev environment had them turned off!!

    sad but true!! lols

    I was convinced it was to do with the buffering since I was my first attempt at trying that, and didn't even think to check short tags!!

     

    Anyone else want to confess to something stupid like this?

     

  2. your post is hard to understand unfortunately, but what is the problem with creating a class in css to apply to all the labels?

    you would do it like any other class you have.

     

    <label class="someclass" >Name</label><input  class="inputname" type="text" name="name" value="" /><input class="inputsurname" type="text" name="surname" value="" /> 
            				
    

  3. hey all,

     

    have got a real odd one here, and just wondered if anyone had come across something like this themselves.

     

    I have a prduct list, and each <li> has a product with its info and an image. however in IE 7/8, the text shrinks a little bit, so within 4 <li> its barely readable!!!

     

    I dont have the css to show right now but here is a screeny of the issue, and looking on line hasn't given me much in google. thought I'd just wave it under everyone's nose to see if they had come across it before.

     

     

     

    [attachment deleted by admin]

  4. I want to have a edit content thing; for a site of mine; I want one... kinda pre-made so all I gotta do is change the little coding around; I don't want to go through databases and huge configurations, like ckeditor wants me to; however, that is something that I want. How can I do this?

    either you want it or you don't? lol

    ckeditor isn't hard to 'install' into a page to edit content. but if you don't want to do any coding, which it sounds like, why not just take an 'out the box' solution like wordpress?

  5. I would use ajax, or jquery to implement such a change, and if you google either subject with things like edit in place you can find an example very easily

     

    the way i do it is that there are no input boxes on show by default, and they replace the existing text, when you double click the text (under value column for instance).

  6. personally i pass it all into a long string as shown by mjdamato, and would only pass it to another array if I needed to do other things with that data again later in the page/script. I have rarely done this, only really in MVC where the display is seperated from the database functions (MVC is Model View Controller, its an method of application design, applicable to any programming language, in case you didn't know)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.