Post by HAO » Sat Jan 07, 2017 5:31 am

我想要透過 ocmod 來「搜尋並取代」的指令,只是我看了官方的範例,我還是不了解。

如果說我要針對整段的程式碼,執行「搜尋並取代」的動作,請問有具體的範例可以教我怎麼做嗎?

例如:
upload/catalog/view/theme/*/template/account/address_form.tpl

我想要拿掉:

Code: Select all

          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-lastname"><?php echo $entry_lastname; ?></label>
            <div class="col-sm-10">
              <input type="text" name="lastname" value="<?php echo $lastname; ?>" placeholder="<?php echo $entry_lastname; ?>" id="input-lastname" class="form-control" />
              <?php if ($error_lastname) { ?>
              <div class="text-danger"><?php echo $error_lastname; ?></div>
              <?php } ?>
            </div>
          </div>
整段的程式碼,我該如何去做 ocmod 的修改呢?

HAO

Posts

Joined
Fri Jun 03, 2011 2:52 pm
Who is online

Users browsing this forum: No registered users and 5 guests