Your welcome.

Theming isn't really the issue here. But you're correct that it's a
CSS thing. The reason why width="400px" didn't work is that the width
attribute should be the number only, unlike with CSS where you should
include the 'px'. And you're right that this would best be handled by
a CSS class.

On Fri, Jul 6, 2012 at 7:50 PM, Kevin Mitchell <[email protected]> wrote:
> OK. I'm not sure what I was doing wrong when I tried this before, but I got
> it to work using:
>
> <td style="text-align: right; font-family: 'Ezra SIL';
> font-size:150%;"><?php echo h($clause['Clause']['hebrew']); ?>&nbsp;</td>
>
> Obviously I can do the same thing by creating a class and using css. So I
> assume I need to next learn more about Theming.
>
> Thank you, again, Cricket. You were very helpful.
>
>
> On Friday, July 6, 2012 4:16:10 PM UTC-7, Kevin Mitchell wrote:
>>
>> Hi Cricket:
>>
>> Thank you, again.
>>
>> When I perform the bake, it creates the basic view files: add.ctp,
>> edit.ctp, view.ctp, and index.ctp. So, when I open my browser to a page,
>> e.g., http://localhost/cakebible/clauses, I get a table with all my fields.
>> Some of the fields are not wide enough to best display my right-to-left
>> text. So, I want to change the html or the css to make that column wider.
>> I'm trying to manually change the index.ctp file, adding a width property,
>> e.g.: <th width="400px"><?php echo $this->Paginator->sort('hebrew');
>> ?></th>. But that does not seem to work. So, I'm wondering what my next step
>> is in learning how to format the pages that have been baked.
>>
>> Kevin
>>
>> On Friday, July 6, 2012 2:51:43 PM UTC-7, cricket wrote:
>>>
>>> I'm sorry, I don't understand the question. You want to know how to
>>> deal with some text being wider?
>>>
>>> On Fri, Jul 6, 2012 at 2:47 PM, Kevin wrote:
>>> > It works!
>>> >
>>> > Thank you ... very, very, VERY much.
>>> >
>>> > So, somehow it knows that the Hebrew is right-to-left without being
>>> > explicitly told. That's great.
>>> >
>>> > I guess, next, I'll have to learn how to make some of the fields that
>>> > display wider, and perhaps, have a different Hebrew and Greek fonts.
>>> >
>>> > If you could help, is that something I change in the layout page, where
>>> > it
>>> > has:
>>> >
>>> > <dt><?php echo __('Hebrew'); ?></dt>
>>> > <dd>
>>> > <?php echo h($clause['Clause']['hebrew']); ?>
>>> > &nbsp;
>>> > </dd>
>>> >
>>> > Or, do I change all of that by learning about Themes and using css?
>>> >
>>> > You were very helpful: very clear. Thank you!
>>> >
>>> > Kevin
>>> >
>>> >
>>> > On Friday, July 6, 2012 10:36:12 AM UTC-7, cricket wrote:
>>> >>
>>> >> You need to ensure that all parts of the application are using the
>>> >> same character encoding. UTF-8 is a good choice.
>>> >>
>>> >> When you create the database specify the encoding. For MySQL:
>>> >>
>>> >> CREATE DATABASE foo DEFAULT CHARACTER SET utf8;
>>> >>
>>> >> If you've populated the DB with a file full of data, first make sure
>>> >> that the file uses UTF-8. On a linux box:
>>> >>
>>> >> file --mime-encoding foo.sql
>>> >>
>>> >> Next include these two lines at the top of your import file to tell
>>> >> the DB how to treat the text:
>>> >>
>>> >> SET NAMES 'utf8';
>>> >> SET CHARACTER SET 'utf8';
>>> >>
>>> >> Then you need to include the following in database.php so that when
>>> >> Cake connects it tells the DB to respond with the correct encoding:
>>> >>
>>> >> 'encoding' => 'utf8'
>>> >>
>>> >> In core.php:
>>> >>
>>> >> Configure::write('App.encoding', 'UTF-8');
>>> >>
>>> >> In your layout(s):
>>> >>
>>> >> <?= $this->Html->charset() ?>
>>> >>
>>> >> The latter will include this in the head:
>>> >>
>>> >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>>> >>
>>> >> ... which tells the browser how to treat the content.
>>> >>
>>> >> On Thu, Jul 5, 2012 at 11:01 PM, Kevin wrote:
>>> >> > I am new to CakePHP, having just learned how to bake a table to
>>> >> > create
>>> >> > Model, Controller, and View. One of the fields in my database is
>>> >> > Hebrew
>>> >> > (with diacritics) and one is Greek; the remainder of the fields are
>>> >> > English.
>>> >> > How do I get the Hebrew and Greek to show up correctly? As is, I
>>> >> > just
>>> >> > see a
>>> >> > bunch of question marks, e.g.: ????? ???.
>>> >> >
>>> >> > Thank you, so very much, for you expertise and time.
>>> >> >
>>> >> > Kevin
>>> >> >
>>> >> > --
>>> >> > Our newest site for the community: CakePHP Video Tutorials
>>> >> > http://tv.cakephp.org
>>> >> > Check out the new CakePHP Questions site http://ask.cakephp.org and
>>> >> > help
>>> >> > others with their CakePHP related questions.
>>> >> >
>>> >> >
>>> >> > To unsubscribe from this group, send email to
>>> >> > [email protected] For more options, visit this
>>> >> > group
>>> >> > at
>>> >> > http://groups.google.com/group/cake-php
>>> >
>>> > --
>>> > Our newest site for the community: CakePHP Video Tutorials
>>> > http://tv.cakephp.org
>>> > Check out the new CakePHP Questions site http://ask.cakephp.org and
>>> > help
>>> > others with their CakePHP related questions.
>>> >
>>> >
>>> > To unsubscribe from this group, send email to
>>> > [email protected] For more options, visit this
>>> > group at
>>> > http://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to